controller-runtimesigs.k8s.io/controller-runtime/pkg/cache/informertest Index | Files

package informertest

import "sigs.k8s.io/controller-runtime/pkg/cache/informertest"

Index

Types

type FakeInformers

type FakeInformers struct {
	InformersByGVK map[schema.GroupVersionKind]toolscache.SharedIndexInformer
	Scheme         *runtime.Scheme
	Error          error
	Synced         *bool
}

FakeInformers is a fake implementation of Informers.

func (*FakeInformers) FakeInformerFor

func (c *FakeInformers) FakeInformerFor(ctx context.Context, obj client.Object) (*controllertest.FakeInformer, error)

FakeInformerFor implements Informers.

func (*FakeInformers) FakeInformerForKind

FakeInformerForKind implements Informers.

func (*FakeInformers) Get

Get implements Cache.

func (*FakeInformers) GetInformer

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

GetInformer implements Informers.

func (*FakeInformers) GetInformerForKind

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

GetInformerForKind implements Informers.

func (*FakeInformers) IndexField

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

IndexField implements Cache.

func (*FakeInformers) List

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

List implements Cache.

func (*FakeInformers) RemoveInformer

func (c *FakeInformers) RemoveInformer(ctx context.Context, obj client.Object) error

RemoveInformer implements Informers.

func (*FakeInformers) Start

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

Start implements Informers.

func (*FakeInformers) WaitForCacheSync

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

WaitForCacheSync implements Informers.

Source Files

fake_cache.go

Version
v0.20.4 (latest)
Published
Mar 24, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
2 days ago

Tools for package owners.