Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is basically a wrapper around a Kubernetes informer that will let you watch secrets.
func (*Watcher) Watch ¶
func (watcher *Watcher) Watch(klient kubernetes.Interface, namespace string, defaultResync time.Duration, addFunc func(interface{}), updateFunc func(interface{}, interface{}), deleteFunc func(interface{}))
Watch calls addFunc, updateFunc, and deleteFunc, when a Secret is created, updated, or deleted respectively. updateFunc also will get called periodically with defaultResync time between calls.
Click to show internal directories.
Click to hide internal directories.