Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMapWatcher ¶
type ConfigMapWatcher struct {
// contains filtered or unexported fields
}
func New ¶
func New(namespace, name string) (*ConfigMapWatcher, error)
func (*ConfigMapWatcher) StartWatching ¶
StartWatching pushes instances of the identified configuration map found in a target Kuberentes cluster.
type TypedEventHandler ¶
type TypedEventHandler[T any] struct { AddFunc func(T) UpdateFunc func(T, T) DeleteFunc func(T) }
func (TypedEventHandler[T]) OnAdd ¶
func (t TypedEventHandler[T]) OnAdd(obj interface{}, isInInitialList bool)
OnAdd calls AddFunc if it's not nil.
func (TypedEventHandler[T]) OnDelete ¶
func (t TypedEventHandler[T]) OnDelete(obj interface{})
OnDelete calls DeleteFunc if it's not nil.
func (TypedEventHandler[T]) OnUpdate ¶
func (t TypedEventHandler[T]) OnUpdate(oldObj, newObj interface{})
OnUpdate calls UpdateFunc if it's not nil.
Click to show internal directories.
Click to hide internal directories.