Documentation ¶
Index ¶
- type FakeClient
- func (c *FakeClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error
- func (c *FakeClient) GetInformer(ctx context.Context, obj client.Object) (cache.Informer, error)
- func (c *FakeClient) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind) (cache.Informer, error)
- func (c *FakeClient) IndexField(ctx context.Context, obj client.Object, field string, ...) error
- func (c *FakeClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (c *FakeClient) Start(ctx context.Context) error
- func (c *FakeClient) WaitForCacheSync(ctx context.Context) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { Client client.Client Cache *informertest.FakeInformers }
FakeClient implement cache.cache
func (*FakeClient) GetInformer ¶
func (*FakeClient) GetInformerForKind ¶
func (c *FakeClient) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind) (cache.Informer, error)
func (*FakeClient) IndexField ¶
func (c *FakeClient) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error
func (*FakeClient) List ¶
func (c *FakeClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*FakeClient) WaitForCacheSync ¶
func (c *FakeClient) WaitForCacheSync(ctx context.Context) bool
Click to show internal directories.
Click to hide internal directories.