Documentation ¶
Index ¶
- Constants
- func Authenticate(env azure.Environment, tenantID string, say func(string), scope string) (*adal.ServicePrincipalToken, error)
- func DumpConfig(config interface{}, say func(string))
- func FindTenantID(env azure.Environment, subscriptionID string) (string, error)
- func GlueStrings(a, b string) string
- func IsStateCancelled(stateBag multistep.StateBag) bool
- func RandomPassword() (password string)
- func RandomString(chooseFrom string, length int) (randomString string)
- type Secret
- type VaultClient
- func (client *VaultClient) Delete(resourceGroupName string, vaultName string) (result autorest.Response, err error)
- func (client *VaultClient) DeletePreparer(resourceGroupName string, vaultName string) (*http.Request, error)
- func (client *VaultClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client *VaultClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client *VaultClient) GetSecret(vaultName, secretName string) (*Secret, error)
Constants ¶
const (
AzureVaultApiVersion = "2016-10-01"
)
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate(env azure.Environment, tenantID string, say func(string), scope string) (*adal.ServicePrincipalToken, error)
Authenticate fetches a token from the local file cache or initiates a consent flow and waits for token to be obtained.
func DumpConfig ¶
func DumpConfig(config interface{}, say func(string))
func FindTenantID ¶
func FindTenantID(env azure.Environment, subscriptionID string) (string, error)
FindTenantID figures out the AAD tenant ID of the subscription by making an unauthenticated request to the Get Subscription Details endpoint and parses the value from WWW-Authenticate header.
func GlueStrings ¶
removes overlap between the end of a and the start of b and glues them together
func IsStateCancelled ¶
func RandomPassword ¶
func RandomPassword() (password string)
func RandomString ¶
Types ¶
type VaultClient ¶
type VaultClient struct { autorest.Client SubscriptionID string // contains filtered or unexported fields }
func NewVaultClient ¶
func NewVaultClient(keyVaultEndpoint url.URL) VaultClient
func NewVaultClientWithBaseURI ¶ added in v1.1.3
func NewVaultClientWithBaseURI(baseURI, subscriptionID string) VaultClient
func (*VaultClient) Delete ¶ added in v1.1.3
func (client *VaultClient) Delete(resourceGroupName string, vaultName string) (result autorest.Response, err error)
Delete deletes the specified Azure key vault.
resourceGroupName is the name of the Resource Group to which the vault belongs. vaultName is the name of the vault to delete
func (*VaultClient) DeletePreparer ¶ added in v1.1.3
func (client *VaultClient) DeletePreparer(resourceGroupName string, vaultName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (*VaultClient) DeleteResponder ¶ added in v1.1.3
func (client *VaultClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (*VaultClient) DeleteSender ¶ added in v1.1.3
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.