Documentation ¶
Index ¶
- type Cache
- func (_m *Cache) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (_m *Cache) GetInformer(ctx context.Context, obj client.Object) (cache.Informer, error)
- func (_m *Cache) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind) (cache.Informer, error)
- func (_m *Cache) IndexField(ctx context.Context, obj client.Object, field string, ...) error
- func (_m *Cache) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *Cache) Start(ctx context.Context) error
- func (_m *Cache) WaitForCacheSync(ctx context.Context) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is an autogenerated mock type for the Cache type
func NewCache ¶ added in v1.24.0
func NewCache(t mockConstructorTestingTNewCache) *Cache
NewCache creates a new instance of Cache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Cache) Get ¶
func (_m *Cache) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error
Get provides a mock function with given fields: ctx, key, obj, opts
func (*Cache) GetInformer ¶
GetInformer provides a mock function with given fields: ctx, obj
func (*Cache) GetInformerForKind ¶
func (_m *Cache) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind) (cache.Informer, error)
GetInformerForKind provides a mock function with given fields: ctx, gvk
func (*Cache) IndexField ¶
func (_m *Cache) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error
IndexField provides a mock function with given fields: ctx, obj, field, extractValue
func (*Cache) List ¶
func (_m *Cache) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
Click to show internal directories.
Click to hide internal directories.