types

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AzureCloudProvider = "AZUREPUBLICCLOUD"

Variables

This section is empty.

Functions

This section is empty.

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"`
	UseInstanceMetadata        bool   `json:"useInstanceMetadata"`
	LoadBalancerSku            string `json:"loadBalancerSku"`
}

func (*CloudConfig) ToString

func (cc *CloudConfig) ToString() (string, error)

ToString renders the cloud configuration as string.

type RawConfig

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

	Location              types.ConfigVarString `json:"location"`
	ResourceGroup         types.ConfigVarString `json:"resourceGroup"`
	VNetResourceGroup     types.ConfigVarString `json:"vnetResourceGroup"`
	VNetName              types.ConfigVarString `json:"vnetName"`
	SubnetName            types.ConfigVarString `json:"subnetName"`
	LoadBalancerSku       types.ConfigVarString `json:"loadBalancerSku"`
	RouteTableName        types.ConfigVarString `json:"routeTableName"`
	AvailabilitySet       types.ConfigVarString `json:"availabilitySet"`
	AssignAvailabilitySet *bool                 `json:"assignAvailabilitySet"`
	SecurityGroupName     types.ConfigVarString `json:"securityGroupName"`
}

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