factory

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: Apache-2.0 Imports: 5 Imported by: 51

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WatchFactory added in v0.2.0

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

WatchFactory initializes and manages common kube watches

func NewWatchFactory added in v0.2.0

func NewWatchFactory(c kubernetes.Interface, stopChan <-chan struct{}) (*WatchFactory, error)

NewWatchFactory initializes a new watch factory

func (*WatchFactory) AddEndpointHandler added in v0.2.0

func (wf *WatchFactory) AddEndpointHandler(handler cache.ResourceEventHandler, processExisting func([]interface{}))

AddEndpointHandler adds a handler function that will be executed on Endpoint object changes

func (*WatchFactory) AddNamespaceHandler added in v0.2.0

func (wf *WatchFactory) AddNamespaceHandler(handler cache.ResourceEventHandler, processExisting func([]interface{}))

AddNamespaceHandler adds a handler function that will be executed on Namespace object changes

func (*WatchFactory) AddNodeHandler added in v0.2.0

func (wf *WatchFactory) AddNodeHandler(handler cache.ResourceEventHandler, processExisting func([]interface{}))

AddNodeHandler adds a handler function that will be executed on Node object changes

func (*WatchFactory) AddPodHandler added in v0.2.0

func (wf *WatchFactory) AddPodHandler(handler cache.ResourceEventHandler, processExisting func([]interface{}))

AddPodHandler adds a handler function that will be executed on Pod object changes

func (*WatchFactory) AddPolicyHandler added in v0.2.0

func (wf *WatchFactory) AddPolicyHandler(handler cache.ResourceEventHandler, processExisting func([]interface{}))

AddPolicyHandler adds a handler function that will be executed on NetworkPolicy object changes

func (*WatchFactory) AddServiceHandler added in v0.2.0

func (wf *WatchFactory) AddServiceHandler(handler cache.ResourceEventHandler, processExisting func([]interface{}))

AddServiceHandler adds a handler function that will be executed on Service object changes

Jump to

Keyboard shortcuts

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