Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSource ¶
type EventSource[T any] struct { // contains filtered or unexported fields }
func New ¶
func New[T any](f InformerFactory, h Handlers[T]) *EventSource[T]
func (*EventSource[T]) OnAdd ¶
func (ig *EventSource[T]) OnAdd(obj interface{})
func (*EventSource[T]) OnDelete ¶
func (ig *EventSource[T]) OnDelete(obj interface{})
func (*EventSource[T]) OnUpdate ¶
func (ig *EventSource[T]) OnUpdate(oldObj, newObj interface{})
type Handlers ¶
type Handlers[T any] struct { AddFunc func(obj *T) UpdateFunc func(oldObj, newObj *T) DeleteFunc func(obj *T) }
type InformerFactory ¶
type InformerFactory interface {
Informer() cache.SharedIndexInformer
}
Click to show internal directories.
Click to hide internal directories.