utils

package
v9.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizer

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.

func GetCommit

func GetCommit() string

GetCommit returns git HEAD (short)

func GetEnvVarOrExit

func GetEnvVarOrExit(varName string) string

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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