watchers

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreWatchers

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

func NewCoreWatchers

func NewCoreWatchers(ctx context.Context, namespaces []string, om ObjectModifier) *CoreWatchers

func (*CoreWatchers) Cancel

func (w *CoreWatchers) Cancel()

func (*CoreWatchers) EnsureStarted

func (w *CoreWatchers) EnsureStarted(ctx context.Context)

func (*CoreWatchers) LoadSnapshot

func (w *CoreWatchers) LoadSnapshot(ctx context.Context, snapshot *snapshotTypes.Snapshot)

func (*CoreWatchers) Subscribe

func (w *CoreWatchers) Subscribe(ctx context.Context) <-chan struct{}

type FallbackWatchers

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

func NewFallbackWatcher

func NewFallbackWatcher(ctx context.Context, namespaces []string, om ObjectModifier) *FallbackWatchers

func (*FallbackWatchers) Cancel

func (w *FallbackWatchers) Cancel()

func (*FallbackWatchers) EnsureStarted

func (w *FallbackWatchers) EnsureStarted(ctx context.Context)

func (*FallbackWatchers) LoadSnapshot

func (w *FallbackWatchers) LoadSnapshot(ctx context.Context, snapshot *snapshotTypes.Snapshot)

func (*FallbackWatchers) Subscribe

func (w *FallbackWatchers) Subscribe(ctx context.Context) <-chan struct{}

type ObjectModifier

type ObjectModifier func(obj runtime.Object)

type SnapshotWatcher

type SnapshotWatcher interface {
	LoadSnapshot(ctx context.Context, snapshot *snapshotTypes.Snapshot)
	Subscribe(ctx context.Context) <-chan struct{}
	EnsureStarted(ctx context.Context)
	Cancel()
}

Jump to

Keyboard shortcuts

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