genericinformers

package
v3.11.0-0.19.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenericInformers

func NewGenericInformers(startFn func(stopCh <-chan struct{}), informers ...GenericResourceInformer) genericInformers

Types

type GenericInternalResourceInformerFunc

type GenericInternalResourceInformerFunc func(resource schema.GroupVersionResource) (informers.GenericInformer, error)

GenericInternalResourceInformerFunc will return an internal informer for any resource matching its group resource, instead of the external version. Only valid for use where the type is accessed via generic interfaces, such as the garbage collector with ObjectMeta.

func (GenericInternalResourceInformerFunc) ForResource

func (GenericInternalResourceInformerFunc) Start

func (fn GenericInternalResourceInformerFunc) Start(stopCh <-chan struct{})

this is a temporary condition until we rewrite enough of generation to auto-conform to the required interface and no longer need the internal version shim

type GenericResourceInformer

type GenericResourceInformer interface {
	ForResource(resource schema.GroupVersionResource) (informers.GenericInformer, error)
	Start(stopCh <-chan struct{})
}

type GenericResourceInformerFunc

type GenericResourceInformerFunc func(resource schema.GroupVersionResource) (informers.GenericInformer, error)

genericResourceInformerFunc will handle a cast to a matching type

func (GenericResourceInformerFunc) ForResource

func (GenericResourceInformerFunc) Start

func (fn GenericResourceInformerFunc) Start(stopCh <-chan struct{})

this is a temporary condition until we rewrite enough of generation to auto-conform to the required interface and no longer need the internal version shim

Jump to

Keyboard shortcuts

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