Documentation
¶
Index ¶
- func NewExampleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, ...) cache.SharedIndexInformer
- func NewExampleInformerWithOptions(client versioned.Interface, namespace string, ...) cache.SharedIndexInformer
- func NewFilteredExampleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, ...) cache.SharedIndexInformer
- type DeletedExample
- type ExampleDetailedHandlerFuncs
- type ExampleFilteringHandler
- type ExampleHandlerFuncs
- type ExampleIndexInformer
- func NewTypedExampleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, ...) ExampleIndexInformer
- func NewTypedExampleInformerWithOptions(client versioned.Interface, namespace string, ...) ExampleIndexInformer
- func NewTypedFilteredExampleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, ...) ExampleIndexInformer
- func ToExampleIndexInformer(informer cache.SharedIndexInformer) ExampleIndexInformer
- type ExampleIndexers
- type ExampleInformer
- type Interface
- type TypedExampleInformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExampleInformer ¶
func NewExampleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer
NewExampleInformer constructs a new informer for Example type. Always prefer using an informer factory to get a shared informer instead of getting an independent one. This reduces memory footprint and number of connections to the server. If you really need an independent one, prefer using the type-safe variant (see NewTypedExampleInformer).
func NewExampleInformerWithOptions ¶ added in v0.36.0
func NewExampleInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) cache.SharedIndexInformer
NewExampleInformerWithOptions constructs a new informer for Example type with additional options. Always prefer using an informer factory to get a shared informer instead of getting an independent one. This reduces memory footprint and number of connections to the server. If you really need an independent one, prefer using the type-safe variant (see NewTypedExampleInformerWithOptions).
func NewFilteredExampleInformer ¶
func NewFilteredExampleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer
NewFilteredExampleInformer constructs a new informer for Example type. Always prefer using an informer factory to get a shared informer instead of getting an independent one. This reduces memory footprint and number of connections to the server. If you really need an independent one, prefer using the type-safe variant (see NewTypedFilteredExampleInformer).
Types ¶
type DeletedExample ¶ added in v0.37.0
type DeletedExample = cache.DeletedObject[*apiscrv1.Example]
DeletedExample is a specialization of cache.DeletedObject for Example.
type ExampleDetailedHandlerFuncs ¶ added in v0.37.0
type ExampleDetailedHandlerFuncs = cache.TypedResourceEventHandlerDetailedFuncs[*apiscrv1.Example]
ExampleDetailedHandlerFuncs is a specialization of cache.TypedResourceEventHandlerDetailedFuncs for Example.
type ExampleFilteringHandler ¶ added in v0.37.0
type ExampleFilteringHandler = cache.TypedFilteringResourceEventHandler[*apiscrv1.Example]
ExampleFilteringHandler is a specialization of cache.TypedFilteringResourceEventHandler for Example.
type ExampleHandlerFuncs ¶ added in v0.37.0
type ExampleHandlerFuncs = cache.TypedResourceEventHandlerFuncs[*apiscrv1.Example]
ExampleHandlerFuncs is a specialization of cache.TypedResourceEventHandlerFuncs for Example.
type ExampleIndexInformer ¶ added in v0.37.0
type ExampleIndexInformer cache.TypedSharedIndexInformer[*apiscrv1.Example]
ExampleIndexInformer is a wrapper around the underlying cache.SharedIndexInformer with type-safe variants of several methods.
func NewTypedExampleInformer ¶ added in v0.37.0
func NewTypedExampleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers ExampleIndexers) ExampleIndexInformer
NewTypedExampleInformer constructs a new informer for Example type. Always prefer using an informer factory to get a shared informer instead of getting an independent one. This reduces memory footprint and number of connections to the server.
func NewTypedExampleInformerWithOptions ¶ added in v0.37.0
func NewTypedExampleInformerWithOptions(client versioned.Interface, namespace string, options internalinterfaces.InformerOptions) ExampleIndexInformer
NewTypedExampleInformerWithOptions constructs a new informer for Example type with additional options. Always prefer using an informer factory to get a shared informer instead of getting an independent one. This reduces memory footprint and number of connections to the server.
func NewTypedFilteredExampleInformer ¶ added in v0.37.0
func NewTypedFilteredExampleInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers ExampleIndexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) ExampleIndexInformer
NewTypedFilteredExampleInformer constructs a new informer for Example type. Always prefer using an informer factory to get a shared informer instead of getting an independent one. This reduces memory footprint and number of connections to the server.
func ToExampleIndexInformer ¶ added in v0.37.0
func ToExampleIndexInformer(informer cache.SharedIndexInformer) ExampleIndexInformer
ToExampleIndexInformer converts an untyped informer into a ExampleIndexInformer.
WARNING: this conversion is only safe if the informer handles objects of type *Example. If that is not the case, calling type-safe methods of the returned ExampleIndexInformer leads to runtime panics. A safer alternative is to pass around a ExampleIndexInformer instances that was obtained from a SharedInformerFactory.
type ExampleIndexers ¶ added in v0.37.0
type ExampleIndexers = cache.TypedIndexers[*apiscrv1.Example]
ExampleIndexers is a specialization of cache.TypedIndexers for Example.
type ExampleInformer ¶
type ExampleInformer interface {
Informer() cache.SharedIndexInformer
Lister() crv1.ExampleLister
}
ExampleInformer provides access to a shared informer and lister for Examples. Prefer using the type-safe variant (see TypedExampleInformer).
type Interface ¶
type Interface interface {
// Examples returns a ExampleInformer.
Examples() TypedExampleInformer
}
Interface provides access to all the informers in this group version.
func New ¶
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface
New returns a new Interface.
type TypedExampleInformer ¶ added in v0.37.0
type TypedExampleInformer interface {
Informer() cache.SharedIndexInformer
TypedInformer() ExampleIndexInformer
Lister() crv1.ExampleLister
}
TypedExampleInformer provides access to a shared informer and lister for Examples, including the type-safe TypedInformer variant. It is a superset of ExampleInformer.
func ToTypedExampleInformer ¶ added in v0.37.0
func ToTypedExampleInformer(informer ExampleInformer) TypedExampleInformer
ToTypedExampleInformer converts an untyped informer into a TypedExampleInformer.
WARNING: this conversion is only safe if the informer handles objects of type *Example. If that is not the case, calling type-safe methods of the returned TypedExampleInformer leads to runtime panics. A safer alternative is to pass around a TypedExampleInformer instances that was obtained from a SharedInformerFactory.