clustercache

package
v0.13.10 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheManager

func NewCacheManager(ctx context.Context, newForConfig NewClusterCacheForConfig) (*manager, error)

Types

type CacheGetter

type CacheGetter interface {
	GetCache(cluster string, restConfig *rest.Config) ClusterCache
}

type CacheManager

type CacheManager interface {
	handler.ClusterHandler
	CacheGetter
}

type ClusterCache

type ClusterCache interface {
	IsClusterCache()
}

PerClusterCaches are caches that can be created from a *rest.Config and shared per-cluster by the CacheManager. All kube caches should be PerClusterCaches so that we can maintain exactly one cache per registered cluster.

type NewClusterCacheForConfig

type NewClusterCacheForConfig func(ctx context.Context, cluster string, restConfig *rest.Config) ClusterCache

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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