Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Cluster(clusterName logicalcluster.Name) serviceaccount.ServiceAccountTokenGetter
- func (c *Cache) SetInformers(kcpInformers kcpinformers.SharedInformerFactory)
- func (c *Cache) SetKubeShardClient(kubeShardClient kubernetes.ClusterInterface)
- func (c *Cache) Stop()
- func (c *Cache) TokenGetter(kubeInformers kcpkubernetesinformers.SharedInformerFactory) serviceaccount.ServiceAccountTokenClusterGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache implements serviceaccount.ServiceAccountTokenClusterGetter.
func NewCache ¶
func NewCache() *Cache
NewCache returns an initialized Cache. Call Stop to release resources.
func (*Cache) Cluster ¶
func (c *Cache) Cluster(clusterName logicalcluster.Name) serviceaccount.ServiceAccountTokenGetter
Cluster returns a ServiceAccountTokenGetter scoped to the given cluster.
func (*Cache) SetInformers ¶
func (c *Cache) SetInformers(kcpInformers kcpinformers.SharedInformerFactory)
SetInformers sets the kcp informer factory to check if a logical cluster is on the local shard.
func (*Cache) SetKubeShardClient ¶
func (c *Cache) SetKubeShardClient(kubeShardClient kubernetes.ClusterInterface)
SetKubeShardClient sets the client used to communicate with other shards.
func (*Cache) TokenGetter ¶
func (c *Cache) TokenGetter(kubeInformers kcpkubernetesinformers.SharedInformerFactory) serviceaccount.ServiceAccountTokenClusterGetter
TokenGetter implements the OptionalTokenGetter for the kubeapiserver. It sets the kube informer factory to retrieve service accounts and secrets.
Click to show internal directories.
Click to hide internal directories.