watcher

package
v0.1.5-cfd2024.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWatcher

func NewWatcher[R any, RO runtime.Object, I types.K8SItem[RO], C types.K8SClient[RO, I]](in types.WatcherConfig[R, RO, I, C]) types.Watcher[RO]

Types

type Watcher

type Watcher[R any, RO runtime.Object, I types.K8SItem[RO], C types.K8SClient[RO, I]] struct {
	types.WatcherConfig[R, RO, I, C]
	// contains filtered or unexported fields
}

func (*Watcher[R, RO, C, L]) GetContext

func (w *Watcher[R, RO, C, L]) GetContext() context.Context

func (*Watcher[R, RO, C, L]) GetState

func (w *Watcher[R, RO, C, L]) GetState() []RO

func (*Watcher[R, RO, C, L]) RegisterEvent

func (w *Watcher[R, RO, C, L]) RegisterEvent(fn types.WatchFunc[RO]) func()

returns a function to unregister the event

func (*Watcher[R, RO, C, L]) Start

func (w *Watcher[R, RO, C, L]) Start() error

func (*Watcher[R, RO, C, L]) Stop

func (w *Watcher[R, RO, C, L]) Stop()

Jump to

Keyboard shortcuts

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