cache

package
v3.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLRUTtlCache added in v3.4.0

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

Types

type Interface added in v3.4.0

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 added in v3.4.0

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

func (*ResourceCache) GetSecret added in v3.4.0

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

func (*ResourceCache) Run added in v3.4.0

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