Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBearerTokenAuthorizer ¶
func GetBearerTokenAuthorizer( azureEnvironment azure.Environment, tenantID string, clientID string, clientSecret string, ) (*autorest.BearerAuthorizer, error)
GetBearerTokenAuthorizer returns a *autorest.BearerAuthorizer used for authenticating outbound requests to the Azure APIs
func IsValidLocation ¶
IsValidLocation returns a bool indicating whether the provided location is a valid one
Types ¶
type Config ¶
type Config struct { Environment string `envconfig:"AZURE_ENVIRONMENT" default:"AzurePublicCloud"` // nolint: lll SubscriptionID string `envconfig:"AZURE_SUBSCRIPTION_ID" required:"true"` TenantID string `envconfig:"AZURE_TENANT_ID" required:"true"` ClientID string `envconfig:"AZURE_CLIENT_ID" required:"true"` ClientSecret string `envconfig:"AZURE_CLIENT_SECRET" required:"true"` }
Config represents all configuration details needed for connecting to Azure APIs
Click to show internal directories.
Click to hide internal directories.