watchermanager

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 9 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 watch.EventType, obj runtime.Object) bool
}

type WatcherManager

type WatcherManager interface {
	Add(ctx context.Context, options *metainternalversion.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