credential

package
v5.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureCredentials

func NewAzureCredentials(clientID, clientSecret, tenantID string) (auth.ClientCredentialsConfig, error)

NewAzureCredentials returns a `ClientCredentialsConfig` configured taking values from Environment, but parameters have precedence over environment variables.

Types

type EmptyProvider

type EmptyProvider struct {
}

func (EmptyProvider) GetOrganizationAzureCredentials

func (p EmptyProvider) GetOrganizationAzureCredentials(ctx context.Context, credentialNamespace, credentialName string) (auth.ClientCredentialsConfig, string, string, error)

type K8SCredential

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

func (K8SCredential) GetOrganizationAzureCredentials

func (k K8SCredential) GetOrganizationAzureCredentials(ctx context.Context, credentialNamespace, credentialName string) (auth.ClientCredentialsConfig, string, string, error)

GetOrganizationAzureCredentials returns the organization's credentials. This means a configured `ClientCredentialsConfig` together with the subscription ID and the partner ID. The Service Principals in the organizations' secrets will always belong the the GiantSwarm Tenant ID in `gsTenantID`.

type Provider

type Provider interface {
	GetOrganizationAzureCredentials(ctx context.Context, credentialNamespace, credentialName string) (auth.ClientCredentialsConfig, string, string, error)
}

func NewK8SCredentialProvider

func NewK8SCredentialProvider(k8sclient k8sclient.Interface, gsTenantID string, logger micrologger.Logger) Provider

Jump to

Keyboard shortcuts

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