watchers

package
v0.0.0-...-76f912a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EndpointsWatcher *endpointsWatcher
)
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, namespace string, filter fields.Selector) (*endpointsWatcher, error)

func StartNetworkPolicyWatcher

func StartNetworkPolicyWatcher(clientset *kubernetes.Clientset, resyncPeriod time.Duration, namespace string, filter fields.Selector) (*networkPolicyWatcher, error)

func StartNodeWatcher

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

func StartPodWatcher

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

func StartServiceWatcher

func StartServiceWatcher(clientset kubernetes.Interface, resyncPeriod time.Duration, namespace string) (*serviceWatcher, error)

func StopEndpointsWatcher

func StopEndpointsWatcher()

func StopNetworkPolicyWatcher

func StopNetworkPolicyWatcher()

func StopNodeWatcher

func StopNodeWatcher()

func StopPodWatcher

func StopPodWatcher()

func StopServiceWatcher

func StopServiceWatcher()

Types

type EndpointsUpdate

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

type EndpointsUpdatesHandler

type EndpointsUpdatesHandler interface {
	OnEndpointsUpdate(endpointsUpdate *EndpointsUpdate)
}

type NetworkPolicyUpdate

type NetworkPolicyUpdate struct {
	NetworkPolicy interface{}
	Op            utils.Operation
}

type NetworkPolicyUpdatesHandler

type NetworkPolicyUpdatesHandler interface {
	OnNetworkPolicyUpdate(networkPolicyUpdate *NetworkPolicyUpdate)
}

type NodeUpdate

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

type NodeUpdatesHandler

type NodeUpdatesHandler interface {
	OnNodeUpdate(nodeUpdate *NodeUpdate)
}

type PodUpdate

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

type PodUpdatesHandler

type PodUpdatesHandler interface {
	OnPodUpdate(podUpdate *PodUpdate)
}

type ServiceUpdate

type ServiceUpdate struct {
	Service *api.Service
	Op      utils.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