azure

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 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

func New(configVarResolver *providerconfig.ConfigVarResolver) cloud.Provider

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"`

	UseInstanceMetadata bool `json:"useInstanceMetadata"`
}

type RawConfig

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

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

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

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