mocks

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 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 Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func NewCache

func NewCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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

func (_m *Cache) 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 (*Cache) GetInformerForKind

func (_m *Cache) 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 (*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

func (*Cache) RemoveInformer

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

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

func (*Cache) Start

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

Start provides a mock function with given fields: ctx

func (*Cache) WaitForCacheSync

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

WaitForCacheSync provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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