Help us shape the future of Go! Take the 2026 Go Developer Survey

cache

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	io.Closer
	// Watch establishes watches for all provided client.Objects.
	// Subsequent calls to Watch will result in no longer necessary
	// watches being stopped and removed and new watches being
	// created
	Watch(context.Context, Watcher, ...client.Object) error
}

Cache is a storage mechanism for keeping track of managed content sources

func NewCache

func NewCache(sourcerer sourcerer, owner client.Object, syncTimeout time.Duration) Cache

type CloserSyncingSource

type CloserSyncingSource interface {
	source.SyncingSource
	io.Closer
}

CloserSyncingSource is a wrapper of the controller-runtime source.SyncingSource that includes methods for:

  • Closing the source, stopping it's interaction with the Kubernetes API server and reaction to events

type Watcher

type Watcher interface {
	Watch(source.Source) error
}

Jump to

Keyboard shortcuts

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