cache

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCache

type MockCache struct {
	mock.Mock
}

MockCache is an autogenerated mock type for the Cache type

func NewMockCache

func NewMockCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCache

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

func (_m *MockCache) RemoveInformer(ctx context.Context, obj client.Object) error

RemoveInformer provides a mock function with given fields: ctx, obj

func (*MockCache) Start

func (_m *MockCache) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

func (*MockCache) WaitForCacheSync

func (_m *MockCache) WaitForCacheSync(ctx context.Context) bool

WaitForCacheSync provides a mock function with given fields: ctx

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

type MockCache_GetInformerForKind_Call struct {
	*mock.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 (*MockCache_GetInformerForKind_Call) Run

type MockCache_GetInformer_Call

type MockCache_GetInformer_Call struct {
	*mock.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 (*MockCache_GetInformer_Call) Run

func (*MockCache_GetInformer_Call) RunAndReturn

type MockCache_Get_Call

type MockCache_Get_Call struct {
	*mock.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 (*MockCache_Get_Call) RunAndReturn

type MockCache_IndexField_Call

type MockCache_IndexField_Call struct {
	*mock.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 (*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

type MockCache_List_Call

type MockCache_List_Call struct {
	*mock.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 (*MockCache_List_Call) Run

func (*MockCache_List_Call) RunAndReturn

type MockCache_RemoveInformer_Call

type MockCache_RemoveInformer_Call struct {
	*mock.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 (*MockCache_RemoveInformer_Call) Run

func (*MockCache_RemoveInformer_Call) RunAndReturn

type MockCache_Start_Call

type MockCache_Start_Call struct {
	*mock.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 (*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

type MockCache_WaitForCacheSync_Call struct {
	*mock.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 (*MockCache_WaitForCacheSync_Call) Run

func (*MockCache_WaitForCacheSync_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL