Documentation ¶
Index ¶
- Constants
- func Authenticate(env azure.Environment, subscriptionID string, say func(string)) (*azure.ServicePrincipalToken, error)
- func DumpConfig(config interface{}, say func(string))
- 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 InterruptibleTask
- type InterruptibleTaskResult
- type Secret
- type SecretAttributes
- type VaultClient
Constants ¶
View Source
const ( AzureVaultApiVersion = "2015-06-01" AzureVaultScope = "https://vault.azure.net" AzureVaultSecretTemplate = "https://{vault-name}.vault.azure.net/secrets/{secret-name}" )
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶ added in v0.10.1
func Authenticate(env azure.Environment, subscriptionID string, say func(string)) (*azure.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 ¶ added in v0.10.1
func DumpConfig(config interface{}, say func(string))
func GlueStrings ¶
removes overlap between the end of a and the start of b and glues them together
func IsStateCancelled ¶ added in v0.10.1
func RandomPassword ¶
func RandomPassword() (password string)
func RandomString ¶
Types ¶
type InterruptibleTask ¶ added in v0.10.1
func NewInterruptibleTask ¶ added in v0.10.1
func NewInterruptibleTask(isCancelled func() bool, task func(cancelCh <-chan struct{}) error) *InterruptibleTask
func (*InterruptibleTask) Run ¶ added in v0.10.1
func (s *InterruptibleTask) Run() InterruptibleTaskResult
type InterruptibleTaskResult ¶ added in v0.10.1
func StartInterruptibleTask ¶ added in v0.10.1
func StartInterruptibleTask(isCancelled func() bool, task func(cancelCh <-chan struct{}) error) InterruptibleTaskResult
type Secret ¶ added in v0.10.1
type Secret struct { ID *string `json:"id,omitempty"` Value string `json:"value"` Attributes SecretAttributes `json:"attributes"` }
type SecretAttributes ¶ added in v0.10.1
type VaultClient ¶ added in v0.10.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.