Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct { ClientID string `json:"clientId,omitempty"` ClientSecret string `json:"clientSecret,omitempty"` SubscriptionID string `json:"subscriptionId,omitempty"` TenantID string `json:"tenantId,omitempty"` UserIdentityClientId string `json:"userIdentityClientId,omitempty"` }
Authentication represents the Authentication file for Azure.
func NewAuthentication ¶
func NewAuthentication(clientID, clientSecret, subscriptionID, tenantID, userAssignedIdentityID string) *Authentication
NewAuthentication returns an Authentication struct from user provided credentials.
type CloudEnvironmentName ¶
type CloudEnvironmentName string
const ( AzurePublicCloud CloudEnvironmentName = "AzurePublicCloud" AzureUSGovernmentCloud CloudEnvironmentName = "AzureUSGovernmentCloud" AzureChinaCloud CloudEnvironmentName = "AzureChinaCloud" )
type Config ¶
type Config struct { AKSCredential *aksCredential AuthConfig *Authentication Cloud cloud.Configuration Authorizer autorest.Authorizer }
func (*Config) SetAuthConfig ¶
SetAuthConfig sets the configuration needed for Authentication.
Click to show internal directories.
Click to hide internal directories.