watchers

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EndpointsWatcher *endpointsWatcher
)
View Source
var (
	NamespaceWatcher *namespaceWatcher
)
View Source
var (
	NetworkPolicyWatcher *networkPolicyWatcher
)
View Source
var (
	NodeWatcher *nodeWatcher
)
View Source
var (
	PodWatcher *podWatcher
)
View Source
var (
	ServiceWatcher *serviceWatcher
)

Functions

func StartEndpointsWatcher

func StartEndpointsWatcher(clientset *kubernetes.Clientset, resyncPeriod time.Duration) (*endpointsWatcher, error)

func StartNamespaceWatcher

func StartNamespaceWatcher(clientset *kubernetes.Clientset, resyncPeriod time.Duration) (*namespaceWatcher, error)

func StartNetworkPolicyWatcher

func StartNetworkPolicyWatcher(clientset *kubernetes.Clientset, resyncPeriod time.Duration) (*networkPolicyWatcher, error)

func StartNodeWatcher added in v0.0.5

func StartNodeWatcher(clientset *kubernetes.Clientset, resyncPeriod time.Duration) (*nodeWatcher, error)

func StartPodWatcher

func StartPodWatcher(clientset *kubernetes.Clientset, resyncPeriod time.Duration) (*podWatcher, error)

func StartServiceWatcher

func StartServiceWatcher(clientset *kubernetes.Clientset, resyncPeriod time.Duration) (*serviceWatcher, error)

func StopEndpointsWatcher

func StopEndpointsWatcher()

func StopNamespaceWatcher

func StopNamespaceWatcher()

func StopNetworkPolicyWatcher

func StopNetworkPolicyWatcher()

func StopNodeWatcher added in v0.0.5

func StopNodeWatcher()

func StopPodWatcher

func StopPodWatcher()

func StopServiceWatcher

func StopServiceWatcher()

Types

type EndpointsUpdate

type EndpointsUpdate struct {
	Endpoints *api.Endpoints
	Op        Operation
}

type EndpointsUpdatesHandler

type EndpointsUpdatesHandler interface {
	OnEndpointsUpdate(endpointsUpdate *EndpointsUpdate)
}

type NamespaceUpdate

type NamespaceUpdate struct {
	Namespace *api.Namespace
	Op        Operation
}

type NamespaceUpdatesHandler

type NamespaceUpdatesHandler interface {
	OnNamespaceUpdate(namespaceUpdate *NamespaceUpdate)
}

type NetworkPolicyUpdate

type NetworkPolicyUpdate struct {
	NetworkPolicy *apiextensions.NetworkPolicy
	Op            Operation
}

type NetworkPolicyUpdatesHandler

type NetworkPolicyUpdatesHandler interface {
	OnNetworkPolicyUpdate(networkPolicyUpdate *NetworkPolicyUpdate)
}

type NodeUpdate added in v0.0.5

type NodeUpdate struct {
	Node *api.Node
	Op   Operation
}

type NodeUpdatesHandler added in v0.0.5

type NodeUpdatesHandler interface {
	OnNodeUpdate(nodeUpdate *NodeUpdate)
}

type Operation

type Operation int
const (
	ADD Operation = iota
	UPDATE
	REMOVE
	SYNCED
)

type PodUpdate

type PodUpdate struct {
	Pod *api.Pod
	Op  Operation
}

type PodUpdatesHandler

type PodUpdatesHandler interface {
	OnPodUpdate(podUpdate *PodUpdate)
}

type ServiceUpdate

type ServiceUpdate struct {
	Service *api.Service
	Op      Operation
}

type ServiceUpdatesHandler

type ServiceUpdatesHandler interface {
	OnServiceUpdate(serviceUpdate *ServiceUpdate)
}

Jump to

Keyboard shortcuts

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