Documentation ¶
Index ¶
- type MockCache
- func (_m *MockCache) EXPECT() *MockCache_Expecter
- func (_m *MockCache) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (_m *MockCache) GetInformer(ctx context.Context, obj client.Object, opts ...cache.InformerGetOption) (cache.Informer, error)
- func (_m *MockCache) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind, ...) (cache.Informer, error)
- func (_m *MockCache) IndexField(ctx context.Context, obj client.Object, field string, ...) error
- func (_m *MockCache) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *MockCache) RemoveInformer(ctx context.Context, obj client.Object) error
- func (_m *MockCache) Start(ctx context.Context) error
- func (_m *MockCache) WaitForCacheSync(ctx context.Context) bool
- type MockCache_Expecter
- func (_e *MockCache_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockCache_Get_Call
- func (_e *MockCache_Expecter) GetInformer(ctx interface{}, obj interface{}, opts ...interface{}) *MockCache_GetInformer_Call
- func (_e *MockCache_Expecter) GetInformerForKind(ctx interface{}, gvk interface{}, opts ...interface{}) *MockCache_GetInformerForKind_Call
- func (_e *MockCache_Expecter) IndexField(ctx interface{}, obj interface{}, field interface{}, extractValue interface{}) *MockCache_IndexField_Call
- func (_e *MockCache_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockCache_List_Call
- func (_e *MockCache_Expecter) RemoveInformer(ctx interface{}, obj interface{}) *MockCache_RemoveInformer_Call
- func (_e *MockCache_Expecter) Start(ctx interface{}) *MockCache_Start_Call
- func (_e *MockCache_Expecter) WaitForCacheSync(ctx interface{}) *MockCache_WaitForCacheSync_Call
- type MockCache_GetInformerForKind_Call
- func (_c *MockCache_GetInformerForKind_Call) Return(_a0 cache.Informer, _a1 error) *MockCache_GetInformerForKind_Call
- func (_c *MockCache_GetInformerForKind_Call) Run(run func(ctx context.Context, gvk schema.GroupVersionKind, ...)) *MockCache_GetInformerForKind_Call
- func (_c *MockCache_GetInformerForKind_Call) RunAndReturn(...) *MockCache_GetInformerForKind_Call
- type MockCache_GetInformer_Call
- type MockCache_Get_Call
- type MockCache_IndexField_Call
- func (_c *MockCache_IndexField_Call) Return(_a0 error) *MockCache_IndexField_Call
- func (_c *MockCache_IndexField_Call) Run(run func(ctx context.Context, obj client.Object, field string, ...)) *MockCache_IndexField_Call
- func (_c *MockCache_IndexField_Call) RunAndReturn(run func(context.Context, client.Object, string, client.IndexerFunc) error) *MockCache_IndexField_Call
- type MockCache_List_Call
- type MockCache_RemoveInformer_Call
- func (_c *MockCache_RemoveInformer_Call) Return(_a0 error) *MockCache_RemoveInformer_Call
- func (_c *MockCache_RemoveInformer_Call) Run(run func(ctx context.Context, obj client.Object)) *MockCache_RemoveInformer_Call
- func (_c *MockCache_RemoveInformer_Call) RunAndReturn(run func(context.Context, client.Object) error) *MockCache_RemoveInformer_Call
- type MockCache_Start_Call
- type MockCache_WaitForCacheSync_Call
- func (_c *MockCache_WaitForCacheSync_Call) Return(_a0 bool) *MockCache_WaitForCacheSync_Call
- func (_c *MockCache_WaitForCacheSync_Call) Run(run func(ctx context.Context)) *MockCache_WaitForCacheSync_Call
- func (_c *MockCache_WaitForCacheSync_Call) RunAndReturn(run func(context.Context) bool) *MockCache_WaitForCacheSync_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
MockCache is an autogenerated mock type for the Cache type
func NewMockCache ¶
NewMockCache creates a new instance of MockCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockCache) EXPECT ¶
func (_m *MockCache) EXPECT() *MockCache_Expecter
func (*MockCache) Get ¶
func (_m *MockCache) 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 (*MockCache) GetInformer ¶
func (_m *MockCache) GetInformer(ctx context.Context, obj client.Object, opts ...cache.InformerGetOption) (cache.Informer, error)
GetInformer provides a mock function with given fields: ctx, obj, opts
func (*MockCache) GetInformerForKind ¶
func (_m *MockCache) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind, opts ...cache.InformerGetOption) (cache.Informer, error)
GetInformerForKind provides a mock function with given fields: ctx, gvk, opts
func (*MockCache) IndexField ¶
func (_m *MockCache) 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 (*MockCache) List ¶
func (_m *MockCache) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
func (*MockCache) RemoveInformer ¶
RemoveInformer provides a mock function with given fields: ctx, obj
type MockCache_Expecter ¶
type MockCache_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCache_Expecter) Get ¶
func (_e *MockCache_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockCache_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key types.NamespacedName
- obj client.Object
- opts ...client.GetOption
func (*MockCache_Expecter) GetInformer ¶
func (_e *MockCache_Expecter) GetInformer(ctx interface{}, obj interface{}, opts ...interface{}) *MockCache_GetInformer_Call
GetInformer is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...cache.InformerGetOption
func (*MockCache_Expecter) GetInformerForKind ¶
func (_e *MockCache_Expecter) GetInformerForKind(ctx interface{}, gvk interface{}, opts ...interface{}) *MockCache_GetInformerForKind_Call
GetInformerForKind is a helper method to define mock.On call
- ctx context.Context
- gvk schema.GroupVersionKind
- opts ...cache.InformerGetOption
func (*MockCache_Expecter) IndexField ¶
func (_e *MockCache_Expecter) IndexField(ctx interface{}, obj interface{}, field interface{}, extractValue interface{}) *MockCache_IndexField_Call
IndexField is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- field string
- extractValue client.IndexerFunc
func (*MockCache_Expecter) List ¶
func (_e *MockCache_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockCache_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- list client.ObjectList
- opts ...client.ListOption
func (*MockCache_Expecter) RemoveInformer ¶
func (_e *MockCache_Expecter) RemoveInformer(ctx interface{}, obj interface{}) *MockCache_RemoveInformer_Call
RemoveInformer is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
func (*MockCache_Expecter) Start ¶
func (_e *MockCache_Expecter) Start(ctx interface{}) *MockCache_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*MockCache_Expecter) WaitForCacheSync ¶
func (_e *MockCache_Expecter) WaitForCacheSync(ctx interface{}) *MockCache_WaitForCacheSync_Call
WaitForCacheSync is a helper method to define mock.On call
- ctx context.Context
type MockCache_GetInformerForKind_Call ¶
MockCache_GetInformerForKind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInformerForKind'
func (*MockCache_GetInformerForKind_Call) Return ¶
func (_c *MockCache_GetInformerForKind_Call) Return(_a0 cache.Informer, _a1 error) *MockCache_GetInformerForKind_Call
func (*MockCache_GetInformerForKind_Call) Run ¶
func (_c *MockCache_GetInformerForKind_Call) Run(run func(ctx context.Context, gvk schema.GroupVersionKind, opts ...cache.InformerGetOption)) *MockCache_GetInformerForKind_Call
func (*MockCache_GetInformerForKind_Call) RunAndReturn ¶
func (_c *MockCache_GetInformerForKind_Call) RunAndReturn(run func(context.Context, schema.GroupVersionKind, ...cache.InformerGetOption) (cache.Informer, error)) *MockCache_GetInformerForKind_Call
type MockCache_GetInformer_Call ¶
MockCache_GetInformer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInformer'
func (*MockCache_GetInformer_Call) Return ¶
func (_c *MockCache_GetInformer_Call) Return(_a0 cache.Informer, _a1 error) *MockCache_GetInformer_Call
func (*MockCache_GetInformer_Call) Run ¶
func (_c *MockCache_GetInformer_Call) Run(run func(ctx context.Context, obj client.Object, opts ...cache.InformerGetOption)) *MockCache_GetInformer_Call
func (*MockCache_GetInformer_Call) RunAndReturn ¶
func (_c *MockCache_GetInformer_Call) RunAndReturn(run func(context.Context, client.Object, ...cache.InformerGetOption) (cache.Informer, error)) *MockCache_GetInformer_Call
type MockCache_Get_Call ¶
MockCache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockCache_Get_Call) Return ¶
func (_c *MockCache_Get_Call) Return(_a0 error) *MockCache_Get_Call
func (*MockCache_Get_Call) Run ¶
func (_c *MockCache_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption)) *MockCache_Get_Call
func (*MockCache_Get_Call) RunAndReturn ¶
func (_c *MockCache_Get_Call) RunAndReturn(run func(context.Context, types.NamespacedName, client.Object, ...client.GetOption) error) *MockCache_Get_Call
type MockCache_IndexField_Call ¶
MockCache_IndexField_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IndexField'
func (*MockCache_IndexField_Call) Return ¶
func (_c *MockCache_IndexField_Call) Return(_a0 error) *MockCache_IndexField_Call
func (*MockCache_IndexField_Call) Run ¶
func (_c *MockCache_IndexField_Call) Run(run func(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc)) *MockCache_IndexField_Call
func (*MockCache_IndexField_Call) RunAndReturn ¶
func (_c *MockCache_IndexField_Call) RunAndReturn(run func(context.Context, client.Object, string, client.IndexerFunc) error) *MockCache_IndexField_Call
type MockCache_List_Call ¶
MockCache_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockCache_List_Call) Return ¶
func (_c *MockCache_List_Call) Return(_a0 error) *MockCache_List_Call
func (*MockCache_List_Call) Run ¶
func (_c *MockCache_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *MockCache_List_Call
func (*MockCache_List_Call) RunAndReturn ¶
func (_c *MockCache_List_Call) RunAndReturn(run func(context.Context, client.ObjectList, ...client.ListOption) error) *MockCache_List_Call
type MockCache_RemoveInformer_Call ¶
MockCache_RemoveInformer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveInformer'
func (*MockCache_RemoveInformer_Call) Return ¶
func (_c *MockCache_RemoveInformer_Call) Return(_a0 error) *MockCache_RemoveInformer_Call
func (*MockCache_RemoveInformer_Call) Run ¶
func (_c *MockCache_RemoveInformer_Call) Run(run func(ctx context.Context, obj client.Object)) *MockCache_RemoveInformer_Call
func (*MockCache_RemoveInformer_Call) RunAndReturn ¶
func (_c *MockCache_RemoveInformer_Call) RunAndReturn(run func(context.Context, client.Object) error) *MockCache_RemoveInformer_Call
type MockCache_Start_Call ¶
MockCache_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockCache_Start_Call) Return ¶
func (_c *MockCache_Start_Call) Return(_a0 error) *MockCache_Start_Call
func (*MockCache_Start_Call) Run ¶
func (_c *MockCache_Start_Call) Run(run func(ctx context.Context)) *MockCache_Start_Call
func (*MockCache_Start_Call) RunAndReturn ¶
func (_c *MockCache_Start_Call) RunAndReturn(run func(context.Context) error) *MockCache_Start_Call
type MockCache_WaitForCacheSync_Call ¶
MockCache_WaitForCacheSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitForCacheSync'
func (*MockCache_WaitForCacheSync_Call) Return ¶
func (_c *MockCache_WaitForCacheSync_Call) Return(_a0 bool) *MockCache_WaitForCacheSync_Call
func (*MockCache_WaitForCacheSync_Call) Run ¶
func (_c *MockCache_WaitForCacheSync_Call) Run(run func(ctx context.Context)) *MockCache_WaitForCacheSync_Call
func (*MockCache_WaitForCacheSync_Call) RunAndReturn ¶
func (_c *MockCache_WaitForCacheSync_Call) RunAndReturn(run func(context.Context) bool) *MockCache_WaitForCacheSync_Call