Documentation ¶
Index ¶
- func NewFakeRESTMapper(gvks ...schema.GroupVersionKind) meta.RESTMapper
- func YamlToUnstructured(t *testing.T, yml string) *unstructured.Unstructured
- type NoopClusterReader
- func (n *NoopClusterReader) Get(_ context.Context, _ client.ObjectKey, _ *unstructured.Unstructured) error
- func (n *NoopClusterReader) ListClusterScoped(_ context.Context, _ *unstructured.UnstructuredList, _ labels.Selector) error
- func (n *NoopClusterReader) ListNamespaceScoped(_ context.Context, _ *unstructured.UnstructuredList, _ string, ...) error
- func (n *NoopClusterReader) Sync(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeRESTMapper ¶
func NewFakeRESTMapper(gvks ...schema.GroupVersionKind) meta.RESTMapper
func YamlToUnstructured ¶
func YamlToUnstructured(t *testing.T, yml string) *unstructured.Unstructured
Types ¶
type NoopClusterReader ¶
type NoopClusterReader struct{}
func NewNoopClusterReader ¶
func NewNoopClusterReader() *NoopClusterReader
func (*NoopClusterReader) Get ¶
func (n *NoopClusterReader) Get(_ context.Context, _ client.ObjectKey, _ *unstructured.Unstructured) error
func (*NoopClusterReader) ListClusterScoped ¶
func (n *NoopClusterReader) ListClusterScoped(_ context.Context, _ *unstructured.UnstructuredList, _ labels.Selector) error
func (*NoopClusterReader) ListNamespaceScoped ¶
func (n *NoopClusterReader) ListNamespaceScoped(_ context.Context, _ *unstructured.UnstructuredList, _ string, _ labels.Selector) error
Click to show internal directories.
Click to hide internal directories.