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

package informertest

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

Index

Package Files

fake_cache.go

type FakeInformers Uses

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 Uses

func (c *FakeInformers) FakeInformerFor(obj runtime.Object) (*controllertest.FakeInformer, error)

FakeInformerFor implements Informers

func (*FakeInformers) FakeInformerForKind Uses

func (c *FakeInformers) FakeInformerForKind(gvk schema.GroupVersionKind) (*controllertest.FakeInformer, error)

FakeInformerForKind implements Informers

func (*FakeInformers) Get Uses

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

Get implements Cache

func (*FakeInformers) GetInformer Uses

func (c *FakeInformers) GetInformer(obj runtime.Object) (cache.Informer, error)

GetInformer implements Informers

func (*FakeInformers) GetInformerForKind Uses

func (c *FakeInformers) GetInformerForKind(gvk schema.GroupVersionKind) (cache.Informer, error)

GetInformerForKind implements Informers

func (*FakeInformers) IndexField Uses

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

IndexField implements Cache

func (*FakeInformers) List Uses

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

List implements Cache

func (*FakeInformers) Start Uses

func (c *FakeInformers) Start(stopCh <-chan struct{}) error

Start implements Informers

func (*FakeInformers) WaitForCacheSync Uses

func (c *FakeInformers) WaitForCacheSync(stop <-chan struct{}) bool

WaitForCacheSync implements Informers

Package informertest imports 8 packages (graph). Updated 2019-09-19. Refresh now. Tools for package owners.