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.
Click to show internal directories.
Click to hide internal directories.