watcher

package
v0.0.0-...-6ace3f0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 13 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      *networking.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
}

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