cache

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	Client client.Client
	Cache  *informertest.FakeInformers
}

FakeClient implement cache.cache

func (*FakeClient) Get

func (c *FakeClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error

func (*FakeClient) GetInformer

func (c *FakeClient) GetInformer(ctx context.Context, obj client.Object) (cache.Informer, error)

func (*FakeClient) GetInformerForKind

func (c *FakeClient) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind) (cache.Informer, error)

func (*FakeClient) IndexField

func (c *FakeClient) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error

func (*FakeClient) List

func (c *FakeClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (*FakeClient) Start

func (c *FakeClient) Start(ctx context.Context) error

func (*FakeClient) WaitForCacheSync

func (c *FakeClient) WaitForCacheSync(ctx context.Context) bool

Jump to

Keyboard shortcuts

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