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`.
Click to show internal directories.
Click to hide internal directories.