Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Kubeconfig string `yaml:"kubeconfig"` NamespaceBlackRegex string `yaml:"namespace_blacklist_regex"` Labels Labels `yaml:"labels"` }
Config to create a watcher
type MultiWatcher ¶
type MultiWatcher struct { Sink chan Event // contains filtered or unexported fields }
Multiwatcher
func NewMultiWatcher ¶
func NewMultiWatcher(configs []Config) (mw *MultiWatcher, err error)
NewMultiWatcher creates a watcher for multiple configs into one chan
func (*MultiWatcher) Watch ¶
func (mw *MultiWatcher) Watch(ctx context.Context)
Watch nonblocking all Watchers and throw them into a single mw.Sink
Click to show internal directories.
Click to hide internal directories.