utils

package
v11.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizer deprecated

func GetAuthorizer(env azure.Environment) (*autorest.BearerAuthorizer, error)

GetAuthorizer gets an Azure Service Principal authorizer. This func assumes "AZURE_TENANT_ID", "AZURE_CLIENT_ID", "AZURE_CLIENT_SECRET" are set as environment variables.

Deprecated: Use ClientCredentialsConfig.Authorizer() from the github.com/Azure/go-autorest/autorest/azure/auth package instead.

func GetCommit

func GetCommit() string

GetCommit returns git HEAD (short)

func GetEnvVarOrExit deprecated

func GetEnvVarOrExit(varName string) string

GetEnvVarOrExit returns the value of specified environment variable or terminates if it's not defined.

Deprecated: This has been supreseeded by the github.com/Azure/go-autorest/autorest/azure/auth package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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