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

cache

package
v4.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLRUTtlCache

func NewLRUTtlCache(timeout time.Duration, size int) *lruTTLCache

Types

type Interface

type Interface interface {
	Get(key string) (any, bool)
	Add(key string, value any)
}

type ResourceCache

type ResourceCache struct {
	v1.ServiceAccountLister
	// contains filtered or unexported fields
}

func NewResourceCache

func NewResourceCache(client kubernetes.Interface, namespace string) *ResourceCache

func NewResourceCacheWithTimeout

func NewResourceCacheWithTimeout(client kubernetes.Interface, namespace string, timeout time.Duration) *ResourceCache

func (*ResourceCache) GetSecret

func (c *ResourceCache) GetSecret(ctx context.Context, namespace string, secretName string) (*corev1.Secret, error)

func (*ResourceCache) Run

func (c *ResourceCache) Run(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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