auth

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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

This section is empty.

Types

type FakeGCPTokenSource

type FakeGCPTokenSource struct {
	// contains filtered or unexported fields
}

func (*FakeGCPTokenSource) Token

func (ts *FakeGCPTokenSource) Token() (*oauth2.Token, error)

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

func (ts *GCPTokenSource) Token() (*oauth2.Token, error)

Token exchanges a GCP IAM SA Token with a Kubernetes Service Account token.

type TokenManager

type TokenManager interface {
	GetTokenSourceFromK8sServiceAccount(saNamespace, saName, saToken string) oauth2.TokenSource
}

func NewFakeTokenManager

func NewFakeTokenManager() TokenManager

func NewTokenManager

func NewTokenManager(meta metadata.Service, clientset clientset.Interface) TokenManager

Jump to

Keyboard shortcuts

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