Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Informer ¶
type Informer[L any] interface { Informer() SharedIndexInformer Lister() L }
func NewDynamicInformer ¶
func NewDynamicInformer[L any](informer StaticInformer[L]) (Informer[L], error)
NewDynamicInformer returns a shared informer that allows adding and removing event handlers dynamically.
type SharedIndexInformer ¶
type SharedIndexInformer interface {
// like AddEventHandler, but the handler is removed when the context closes.
// handlerName must be unique for each handler.
AddDynamicEventHandler(ctx context.Context, handlerName string, handler cache.ResourceEventHandler)
// will panic and should not be called.
AddEventHandler(handler cache.ResourceEventHandler) (cache.ResourceEventHandlerRegistration, error)
cache.SharedIndexInformer
}
type StaticInformer ¶
type StaticInformer[L any] interface { Informer() cache.SharedIndexInformer Lister() L }
Click to show internal directories.
Click to hide internal directories.