serviceaccount

package
v0.33.7 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

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) Stop

func (c *Cache) Stop()

Stop releases background resources used by the cache.

func (*Cache) TokenGetter

TokenGetter implements the OptionalTokenGetter for the kubeapiserver. It sets the kube informer factory to retrieve service accounts and secrets.

Jump to

Keyboard shortcuts

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