Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Environment ¶
func Environment() (*azure.Environment, error)
func GetKeyvaultAuthorizer ¶
func GetKeyvaultAuthorizer(creds Credentials) (autorest.Authorizer, error)
GetKeyvaultAuthorizer gets an OAuthTokenAuthorizer for use with Key Vault keys and secrets. Note that Key Vault *Vaults* are managed by Azure Resource Manager.
Types ¶
type Credentials ¶
type Credentials interface { ClientID() string ClientSecret() string TenantID() string SubscriptionID() string UseManagedIdentity() bool }
func NewEnvironmentCredentials ¶
func NewEnvironmentCredentials() (Credentials, error)
type OAuthGrantType ¶
type OAuthGrantType int
OAuthGrantType specifies which grant type to use.
const ( // OAuthGrantTypeServicePrincipal for client credentials flow OAuthGrantTypeServicePrincipal OAuthGrantType = iota // OAuthGrantTypeManagedIdentity for aad-pod-identity OAuthGrantTypeManagedIdentity )
Click to show internal directories.
Click to hide internal directories.