Documentation ¶
Overview ¶
Package cache is a generated GoMock package.
Index ¶
- type MockCache
- func (m *MockCache) EXPECT() *MockCacheMockRecorder
- func (m *MockCache) Get(ctx context.Context, key client.ObjectKey, 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 MockCacheMockRecorder
- func (mr *MockCacheMockRecorder) Get(ctx, key, obj any, opts ...any) *gomock.Call
- func (mr *MockCacheMockRecorder) GetInformer(ctx, obj any, opts ...any) *gomock.Call
- func (mr *MockCacheMockRecorder) GetInformerForKind(ctx, gvk any, opts ...any) *gomock.Call
- func (mr *MockCacheMockRecorder) IndexField(ctx, obj, field, extractValue any) *gomock.Call
- func (mr *MockCacheMockRecorder) List(ctx, list any, opts ...any) *gomock.Call
- func (mr *MockCacheMockRecorder) RemoveInformer(ctx, obj any) *gomock.Call
- func (mr *MockCacheMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockCacheMockRecorder) WaitForCacheSync(ctx any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
MockCache is a mock of Cache interface.
func NewMockCache ¶
func NewMockCache(ctrl *gomock.Controller) *MockCache
NewMockCache creates a new mock instance.
func (*MockCache) EXPECT ¶
func (m *MockCache) EXPECT() *MockCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCache) Get ¶
func (m *MockCache) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error
Get mocks base method.
func (*MockCache) GetInformer ¶
func (m *MockCache) GetInformer(ctx context.Context, obj client.Object, opts ...cache.InformerGetOption) (cache.Informer, error)
GetInformer mocks base method.
func (*MockCache) GetInformerForKind ¶
func (m *MockCache) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind, opts ...cache.InformerGetOption) (cache.Informer, error)
GetInformerForKind mocks base method.
func (*MockCache) IndexField ¶
func (m *MockCache) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error
IndexField mocks base method.
func (*MockCache) List ¶
func (m *MockCache) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List mocks base method.
func (*MockCache) RemoveInformer ¶
RemoveInformer mocks base method.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache.
func (*MockCacheMockRecorder) Get ¶
func (mr *MockCacheMockRecorder) Get(ctx, key, obj any, opts ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacheMockRecorder) GetInformer ¶
func (mr *MockCacheMockRecorder) GetInformer(ctx, obj any, opts ...any) *gomock.Call
GetInformer indicates an expected call of GetInformer.
func (*MockCacheMockRecorder) GetInformerForKind ¶
func (mr *MockCacheMockRecorder) GetInformerForKind(ctx, gvk any, opts ...any) *gomock.Call
GetInformerForKind indicates an expected call of GetInformerForKind.
func (*MockCacheMockRecorder) IndexField ¶
func (mr *MockCacheMockRecorder) IndexField(ctx, obj, field, extractValue any) *gomock.Call
IndexField indicates an expected call of IndexField.
func (*MockCacheMockRecorder) List ¶
func (mr *MockCacheMockRecorder) List(ctx, list any, opts ...any) *gomock.Call
List indicates an expected call of List.
func (*MockCacheMockRecorder) RemoveInformer ¶
func (mr *MockCacheMockRecorder) RemoveInformer(ctx, obj any) *gomock.Call
RemoveInformer indicates an expected call of RemoveInformer.
func (*MockCacheMockRecorder) Start ¶
func (mr *MockCacheMockRecorder) Start(ctx any) *gomock.Call
Start indicates an expected call of Start.
func (*MockCacheMockRecorder) WaitForCacheSync ¶
func (mr *MockCacheMockRecorder) WaitForCacheSync(ctx any) *gomock.Call
WaitForCacheSync indicates an expected call of WaitForCacheSync.