Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnvironProvider ¶
func NewEnvironProvider(config ProviderConfig) (*azureEnvironProvider, error)
NewEnvironProvider returns a new EnvironProvider for Azure.
func NewProviders ¶
func NewProviders(config ProviderConfig) (environs.EnvironProvider, storage.Provider, error)
NewProviders instantiates and returns Azure providers using the given configuration.
func RandomStorageAccountName ¶
func RandomStorageAccountName() string
RandomStorageAccountName returns a random storage account name.
Types ¶
type AzureRenderer ¶
type AzureRenderer struct{}
func (AzureRenderer) Render ¶
func (AzureRenderer) Render(cfg cloudinit.CloudConfig, os jujuos.OSType) ([]byte, error)
type ProviderConfig ¶
type ProviderConfig struct { // Sender is the autorest.Sender that will be used by Azure // clients. If sender is nil, the default HTTP client sender // will be used. Sender autorest.Sender // RequestInspector will be used to inspect Azure requests // if it is non-nil. RequestInspector autorest.PrepareDecorator // NewStorageClient will be used to construct new storage // clients. NewStorageClient azurestorage.NewClientFunc // StorageAccountNameGenerator is a function returning storage // account names. StorageAccountNameGenerator func() string }
ProviderConfig contains configuration for the Azure providers.
func (ProviderConfig) Validate ¶
func (cfg ProviderConfig) Validate() error
Validate validates the Azure provider configuration.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.