watchermanager

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher interface {
	OnChange(eventType resourcepb.Watch_EventType, obj runtime.Unstructured) bool
}

type WatcherManager

type WatcherManager interface {
	Add(ctx context.Context, options rest.ListOptions, callback Watcher) error // Del is handled with the isDone or callBackFn result
	// start the generic watcher channel
	Start(ctx context.Context)
	Stop()
	WatchChan() chan watch.Event
}

func New

func New(maxWatchers int64) WatcherManager

Jump to

Keyboard shortcuts

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