Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ProviderType defines the Azure provider.
ProviderType = "azure"
)
Variables ¶
This section is empty.
Functions ¶
func NewEnvironProvider ¶
func NewEnvironProvider(config ProviderConfig) (*azureEnvironProvider, error)
NewEnvironProvider returns a new EnvironProvider for Azure.
func NewProvider ¶
func NewProvider(config ProviderConfig) (environs.CloudEnvironProvider, error)
NewProvider instantiates and returns the Azure EnvironProvider using the given configuration.
Types ¶
type AzureRenderer ¶
type AzureRenderer struct{}
func (AzureRenderer) Render ¶
func (AzureRenderer) Render(cfg cloudinit.CloudConfig, os ostype.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. Used for testing. Sender policy.Transporter // RequestInspector will be used to inspect Azure requests // if it is non-nil. Used for testing. RequestInspector policy.Policy // Retry is set by tests to limit the default retries. Retry policy.RetryOptions // CreateTokenCredential is set by tests to create a token. CreateTokenCredential func(appId, appPassword, tenantID string, opts azcore.ClientOptions) (azcore.TokenCredential, error) // RetryClock is used for retrying some operations, like // waiting for deployments to complete. // // Retries due to rate-limiting are handled by the go-autorest // package, which uses "time" directly. We cannot mock the // waiting in that case. RetryClock clock.Clock // GneerateSSHKey is a functio nused to generate a new SSH // key pair for provisioning Linux machines. GenerateSSHKey func(comment string) (private, public string, _ error) // ServicePrincipalCreator is the interface used to create service principals. ServicePrincipalCreator ServicePrincipalCreator // AzureCLI is the interface the to Azure CLI (az) command. AzureCLI AzureCLI // LoadBalancerSkuName is the load balancer SKU name. // Legal values are determined by the Azure SDK. LoadBalancerSkuName string }
ProviderConfig contains configuration for the Azure providers.
func (ProviderConfig) Validate ¶
func (cfg ProviderConfig) Validate() error
Validate validates the Azure provider configuration.
type ServicePrincipalCreator ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.