watcher

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkPolicyWatcher

type NetworkPolicyWatcher struct {
	Watcher
}

NetworkPolicyWatcher watches for changes of k8s network policy entities.

func NewNetworkPolicyWatcher

func NewNetworkPolicyWatcher(logger *zap.SugaredLogger, client k8s.Interface) *NetworkPolicyWatcher

NewNetworkPolicyWatcher creates a new NetworkPolicyWatcher

func (*NetworkPolicyWatcher) Watch

func (w *NetworkPolicyWatcher) Watch(res chan bool)

Watch watches for k8s network policy entities and informs the res chan; is blocking.

type ServiceWatcher

type ServiceWatcher struct {
	Watcher
}

ServiceWatcher watches for changes of k8s service entities.

func NewServiceWatcher

func NewServiceWatcher(logger *zap.SugaredLogger, client k8s.Interface) *ServiceWatcher

NewServiceWatcher creates a new ServiceWatcher

func (*ServiceWatcher) Watch

func (w *ServiceWatcher) Watch(res chan bool)

Watch watches for k8s service entities and informs the res chan; is blocking.

type Watcher

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

Watcher is the generic struct for the firewall watchers.

Jump to

Keyboard shortcuts

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