watcher

package
v0.0.0-...-c362759 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapWatcher

type ConfigMapWatcher struct {
	ConfigMapName string
	WatchFunc     func(string, map[string]string) error
}

ConfigMapWatcher represents a single configmap watcher

type ConfigMapWatchers

type ConfigMapWatchers struct {
	// contains filtered or unexported fields
}

func NewConfigMapWatchers

func NewConfigMapWatchers(watchers ...*ConfigMapWatcher) *ConfigMapWatchers

func (*ConfigMapWatchers) Add

func (cmw *ConfigMapWatchers) Add(configMapName string, watchFunc func(string, map[string]string) error)

func (*ConfigMapWatchers) AddWatcher

func (cmw *ConfigMapWatchers) AddWatcher(watcher *ConfigMapWatcher)

func (*ConfigMapWatchers) GetWatchedConfigs

func (cmw *ConfigMapWatchers) GetWatchedConfigs() []string

func (*ConfigMapWatchers) ToWatchFunc

func (cmw *ConfigMapWatchers) ToWatchFunc() func(interface{})

Jump to

Keyboard shortcuts

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