watcher

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 7 Imported by: 2

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) Stop

func (watcher *Watcher) Stop()

Stop stops watching for 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.

Jump to

Keyboard shortcuts

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