Documentation ¶
Index ¶
- func GetKeyvaultToken(config *config.AzureConfig, env *azure.Environment, resource string, ...) (authorizer autorest.Authorizer, err error)
- func GetServicePrincipalToken(config *config.AzureConfig, aadEndpoint, resource string, proxyMode bool) (adal.OAuthTokenProvider, error)
- func ParseAzureEnvironment(cloudName string) (*azure.Environment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyvaultToken ¶
func GetKeyvaultToken(config *config.AzureConfig, env *azure.Environment, resource string, proxyMode bool) (authorizer autorest.Authorizer, err error)
GetKeyvaultToken() returns token for Keyvault endpoint.
func GetServicePrincipalToken ¶
func GetServicePrincipalToken(config *config.AzureConfig, aadEndpoint, resource string, proxyMode bool) (adal.OAuthTokenProvider, error)
GetServicePrincipalToken creates a new service principal token based on the configuration.
func ParseAzureEnvironment ¶
func ParseAzureEnvironment(cloudName string) (*azure.Environment, error)
ParseAzureEnvironment returns azure environment by name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.