watcher

package
v0.0.0-...-628caa9 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event string
const (
	Add    Event = "add"
	Update Event = "update"
	Delete Event = "delete"
)

type EventListener

type EventListener interface {
	Update(event Event, updates ...interface{})
}

type IngressWatcher

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

func NewIngressWatcher

func NewIngressWatcher(client kubernetes.Interface) *IngressWatcher

func (IngressWatcher) AddListener

func (w IngressWatcher) AddListener(listener EventListener)

func (IngressWatcher) AddListeners

func (w IngressWatcher) AddListeners(listeners ...EventListener)

func (IngressWatcher) Watch

func (w IngressWatcher) Watch(ctx context.Context)

type SecretWatcher

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

func NewSecretWatcher

func NewSecretWatcher(client kubernetes.Interface) *SecretWatcher

func (SecretWatcher) AddListener

func (w SecretWatcher) AddListener(listener EventListener)

func (SecretWatcher) AddListeners

func (w SecretWatcher) AddListeners(listeners ...EventListener)

func (SecretWatcher) Watch

func (w SecretWatcher) Watch(ctx context.Context)

type Watcher

type Watcher interface {
	Watch(context.Context)
}

Jump to

Keyboard shortcuts

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