identity

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// #nosec
	NamespacedSecretName = "aso-credential"
	// #nosec
	FederatedTokenFilePath = "/var/run/secrets/tokens/azure-identity"
)

Variables

This section is empty.

Functions

func NewClientCertificateCredential

func NewClientCertificateCredential(tenantID, clientID string, clientCertificate, password []byte) (*azidentity.ClientCertificateCredential, error)

Types

type Credential

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

Credential describes a credential used to connect to Azure

func NewDefaultCredential

func NewDefaultCredential(tokenCred azcore.TokenCredential, namespace string, subscriptionID string) *Credential

func (*Credential) CredentialFrom

func (c *Credential) CredentialFrom() types.NamespacedName

func (*Credential) SecretsEqual

func (c *Credential) SecretsEqual(other *Credential) bool

func (*Credential) SubscriptionID

func (c *Credential) SubscriptionID() string

func (*Credential) TokenCredential

func (c *Credential) TokenCredential() azcore.TokenCredential

type CredentialProvider

type CredentialProvider interface {
	GetCredential(ctx context.Context, obj genruntime.MetaObject) (*Credential, error)
}

func NewCredentialProvider

func NewCredentialProvider(
	globalCredential *Credential,
	kubeClient kubeclient.Client,
) CredentialProvider

Jump to

Keyboard shortcuts

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