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

types

package
v1.45.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 4 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"`
	UseInstanceMetadata        bool   `json:"useInstanceMetadata"`
	LoadBalancerSku            string `json:"loadBalancerSku"`
}

type ImagePlan added in v1.15.0

type ImagePlan struct {
	Name      string `json:"name,omitempty"`
	Publisher string `json:"publisher,omitempty"`
	Product   string `json:"product,omitempty"`
}

ImagePlan contains azure OS Plan fields for the marketplace images

type ImageReference added in v1.26.0

type ImageReference struct {
	Publisher string `json:"publisher,omitempty"`
	Offer     string `json:"offer,omitempty"`
	Sku       string `json:"sku,omitempty"`
	Version   string `json:"version,omitempty"`
}

ImageReference specifies information about the image to use.

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"`
	VNetResourceGroup     providerconfigtypes.ConfigVarString `json:"vnetResourceGroup"`
	VMSize                providerconfigtypes.ConfigVarString `json:"vmSize"`
	VNetName              providerconfigtypes.ConfigVarString `json:"vnetName"`
	SubnetName            providerconfigtypes.ConfigVarString `json:"subnetName"`
	LoadBalancerSku       providerconfigtypes.ConfigVarString `json:"loadBalancerSku"`
	RouteTableName        providerconfigtypes.ConfigVarString `json:"routeTableName"`
	AvailabilitySet       providerconfigtypes.ConfigVarString `json:"availabilitySet"`
	AssignAvailabilitySet *bool                               `json:"assignAvailabilitySet"`
	SecurityGroupName     providerconfigtypes.ConfigVarString `json:"securityGroupName"`
	Zones                 []string                            `json:"zones"`
	ImagePlan             *ImagePlan                          `json:"imagePlan,omitempty"`
	ImageReference        *ImageReference                     `json:"imageReference,omitempty"`

	ImageID        providerconfigtypes.ConfigVarString `json:"imageID"`
	OSDiskSize     int32                               `json:"osDiskSize"`
	DataDiskSize   int32                               `json:"dataDiskSize"`
	AssignPublicIP providerconfigtypes.ConfigVarBool   `json:"assignPublicIP"`
	Tags           map[string]string                   `json:"tags,omitempty"`
}

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

func GetConfig added in v1.44.0

func GetConfig(pconfig providerconfigtypes.Config) (*RawConfig, error)

Jump to

Keyboard shortcuts

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