watcher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IngressPayload

type IngressPayload struct {
	Ingress      *extensionsv1beta1.Ingress
	ServicePorts map[string]map[string]int
}

An IngressPayload is an ingress + its service ports.

type Payload

type Payload struct {
	Ingresses       []IngressPayload
	TLSCertificates map[string]*tls.Certificate
	Services        []*corev1.Service
}

A Payload is a collection of Kubernetes data loaded by the watcher.

type Watcher

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

A Watcher watches for ingresses in the kubernetes cluster

func New

func New(client kubernetes.Interface, onChange func(*Payload)) *Watcher

New creates a new Watcher.

func (*Watcher) Run

func (w *Watcher) Run(ctx context.Context) error

Run runs the watcher.

Jump to

Keyboard shortcuts

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