Documentation
¶
Index ¶
- Constants
- func Authenticate(env azure.Environment, tenantID string, say func(string)) (*azure.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 InterruptibleTask
- type InterruptibleTaskResult
- type Secret
- type VaultClient
Constants ¶
View Source
const (
AzureVaultApiVersion = "2015-06-01"
)
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate(env azure.Environment, tenantID 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 ¶
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 InterruptibleTask ¶
func NewInterruptibleTask ¶
func NewInterruptibleTask(isCancelled func() bool, task func(cancelCh <-chan struct{}) error) *InterruptibleTask
func (*InterruptibleTask) Run ¶
func (s *InterruptibleTask) Run() InterruptibleTaskResult
type InterruptibleTaskResult ¶
func StartInterruptibleTask ¶
func StartInterruptibleTask(isCancelled func() bool, task func(cancelCh <-chan struct{}) error) InterruptibleTaskResult
type VaultClient ¶
func NewVaultClient ¶
func NewVaultClient(keyVaultEndpoint url.URL) VaultClient
Source Files
¶
Click to show internal directories.
Click to hide internal directories.