watcher

package
v0.0.0-...-7ff13f1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watch

type Watch struct {
	Client       *kubeclient.KubeClient
	ResultStream chan watch.Event
	Namespace    string
	Watchers     []watch.Interface
	WatchFilters []watch.EventType
}

func NewWatch

func NewWatch(namespace string, kc *kubeclient.KubeClient, watchers ...watch.Interface) *Watch

func (Watch) ListenWatcher

func (w Watch) ListenWatcher(onEvent func(obj watch.Event))

func (*Watch) SetFilters

func (w *Watch) SetFilters(filters []watch.EventType) *Watch

func (Watch) StartWatcher

func (w Watch) StartWatcher()

func (Watch) StopWatch

func (w Watch) StopWatch()

Jump to

Keyboard shortcuts

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