Documentation ¶
Index ¶
- type ClusterReader
- 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 ¶
This section is empty.
Types ¶
type ClusterReader ¶
type ClusterReader struct { NoopClusterReader GetResource *unstructured.Unstructured GetErr error ListResources *unstructured.UnstructuredList ListErr error SyncErr error }
func (*ClusterReader) Get ¶
func (f *ClusterReader) Get(_ context.Context, _ client.ObjectKey, u *unstructured.Unstructured) error
func (*ClusterReader) ListNamespaceScoped ¶
func (f *ClusterReader) ListNamespaceScoped(_ context.Context, list *unstructured.UnstructuredList, _ string, _ labels.Selector) error
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.