controller

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(stop <-chan bool)

NewController starts a controller for watching Kubernetes objects.

Types

type KubeResourceWatcher

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

KubeResourceWatcher contains the informer that watches Kubernetes objects and the queue that processes updates.

func (*KubeResourceWatcher) HasSynced

func (watcher *KubeResourceWatcher) HasSynced() bool

HasSynced determines whether the informer has synced

func (*KubeResourceWatcher) LastSyncResourceVersion

func (watcher *KubeResourceWatcher) LastSyncResourceVersion() string

LastSyncResourceVersion returns the last sync resource version

func (*KubeResourceWatcher) Watch

func (watcher *KubeResourceWatcher) Watch(term <-chan struct{})

Watch tells the KubeResourceWatcher to start waiting for events

Jump to

Keyboard shortcuts

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