azure

package
v1.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudConfigToString added in v0.8.0

func CloudConfigToString(c *CloudConfig) (string, error)

func New

New returns a digitalocean provider

Types

type CloudConfig added in v0.8.0

type CloudConfig struct {
	Cloud           string `json:"cloud"`
	TenantID        string `json:"tenantId"`
	SubscriptionID  string `json:"subscriptionId"`
	AADClientID     string `json:"aadClientId"`
	AADClientSecret string `json:"aadClientSecret"`

	ResourceGroup              string  `json:"resourceGroup"`
	Location                   string  `json:"location"`
	VNetName                   string  `json:"vnetName"`
	SubnetName                 string  `json:"subnetName"`
	RouteTableName             string  `json:"routeTableName"`
	SecurityGroupName          string  `json:"securityGroupName" yaml:"securityGroupName"`
	PrimaryAvailabilitySetName string  `json:"primaryAvailabilitySetName"`
	VnetResourceGroup          *string `json:"vnetResourceGroup,omitempty"`
	UseInstanceMetadata        bool    `json:"useInstanceMetadata"`
}

type RawConfig

type RawConfig struct {
	SubscriptionID providerconfig.ConfigVarString `json:"subscriptionID,omitempty"`
	TenantID       providerconfig.ConfigVarString `json:"tenantID,omitempty"`
	ClientID       providerconfig.ConfigVarString `json:"clientID,omitempty"`
	ClientSecret   providerconfig.ConfigVarString `json:"clientSecret,omitempty"`

	Location          providerconfig.ConfigVarString `json:"location"`
	ResourceGroup     providerconfig.ConfigVarString `json:"resourceGroup"`
	VMSize            providerconfig.ConfigVarString `json:"vmSizei"`
	VNetName          providerconfig.ConfigVarString `json:"vnetName"`
	SubnetName        providerconfig.ConfigVarString `json:"subnetName"`
	RouteTableName    providerconfig.ConfigVarString `json:"routeTableName"`
	AvailabilitySet   providerconfig.ConfigVarString `json:"availabilitySet"`
	SecurityGroupName providerconfig.ConfigVarString `json:"securityGroupName"`

	AssignPublicIP providerconfig.ConfigVarBool `json:"assignPublicIP"`
	Tags           map[string]string            `json:"tags,omitempty"`
}

RawConfig is a direct representation of an Azure machine object's configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL