cache

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 18 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 {
	// Vaults returns the list of stateful sets for which Vault information is cached.
	Vaults() []string
	// VaultInfoFor retrieves the Vault information for the specified stateful set.
	VaultInfoFor(statefulSet string) *types.VaultInfo
	// SetVaultInfoFor sets the Vault information for the specified stateful set.
	SetVaultInfoFor(statefulSet string, info *types.VaultInfo)
	// Sync synchronizes the cache with the external source, if applicable.
	Sync()
	// SetMember sets the member status for the cache, if applicable.
	SetMember(map[string]string) bool
}

Cache defines the interface for managing Vault information cache.

func NewSimple

func NewSimple() Cache

NewSimple creates a new simple cache instance.

type RunnableCache

type RunnableCache interface {
	Cache
	manager.Runnable
	// SetupWithManager sets up the cache with the provided manager for running as a controller-runtime Runnable.
	SetupWithManager(mgr ctrl.Manager) error
}

RunnableCache extends the Cache interface with additional methods for running as a controller-runtime Runnable.

func NewK8s added in v0.2.0

func NewK8s(reader client.Reader) (RunnableCache, error)

NewK8s creates a new Kubernetes cache instance.

Jump to

Keyboard shortcuts

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