Documentation
¶
Index ¶
Constants ¶
View Source
const ( VolumeContextKeyServiceAccountName = "csi.storage.k8s.io/serviceAccount.name" VolumeContextKeyPodNamespace = "csi.storage.k8s.io/pod.namespace" )
NodePublishVolume VolumeContext keys.
Variables ¶
This section is empty.
Functions ¶
func NewAltTokenSource ¶ added in v1.21.5
func NewAltTokenSource(ctx context.Context, tokenURL, tokenBody string) oauth2.TokenSource
NewAltTokenSource constructs a new alternate token source for generating tokens.
Types ¶
type AltTokenSource ¶ added in v1.21.5
type AltTokenSource struct {
// contains filtered or unexported fields
}
AltTokenSource is the structure holding the data for the functionality needed to generates tokens.
type FakeGCPTokenSource ¶
type FakeGCPTokenSource struct {
// contains filtered or unexported fields
}
type GCPTokenSource ¶
type GCPTokenSource struct {
// contains filtered or unexported fields
}
GCPTokenSource generates a GCP IAM SA token with a Kubernetes Service Account token.
func (*GCPTokenSource) FetchIdentityBindingToken ¶ added in v1.19.0
func (ts *GCPTokenSource) FetchIdentityBindingToken(ctx context.Context, k8sSAToken string, audience string) (*oauth2.Token, error)
fetch GCP IdentityBindingToken using the Kubernetes Service Account token by calling Security Token Service (STS) API.
type TokenManager ¶
type TokenManager interface {
GetTokenSourceFromK8sServiceAccount(saNamespace, saName, saToken, audience string, fetchFromFile bool) oauth2.TokenSource
GetIdentityProvider() string
GetIdentityPool() string
}
func NewFakeTokenManager ¶
func NewFakeTokenManager() TokenManager
func NewTokenManager ¶
func NewTokenManager(meta metadata.Service, clientset clientset.Interface) TokenManager
Click to show internal directories.
Click to hide internal directories.