Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudConfigToString

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

Types

type CloudConfig

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 providerconfigtypes.ConfigVarString `json:"subscriptionID,omitempty"`
	TenantID       providerconfigtypes.ConfigVarString `json:"tenantID,omitempty"`
	ClientID       providerconfigtypes.ConfigVarString `json:"clientID,omitempty"`
	ClientSecret   providerconfigtypes.ConfigVarString `json:"clientSecret,omitempty"`

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

	AssignPublicIP providerconfigtypes.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