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) cloudprovidertypes.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"` 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
Click to show internal directories.
Click to hide internal directories.