Documentation ¶
Index ¶
- Constants
- func IdentifyCloudProvider() (string, error)
- type Address
- type AzureMetadata
- type CloudInstance
- type Compute
- type CustomCommand
- type Disk
- type HTTPClient
- type ImageReference
- type Interface
- type Ip
- type ManagedDisk
- type Network
- type OsProfile
- type Plan
- type PublicKey
- type SecurityProfile
- type StorageProfile
- type Subnet
Constants ¶
View Source
const ( Azure = "azure" Aws = "aws" Gcp = "gcp" )
Variables ¶
This section is empty.
Functions ¶
func IdentifyCloudProvider ¶
Types ¶
type AzureMetadata ¶
type AzureMetadata struct { Compute Compute `json:"compute,omitempty" mapstructure:"compute,omitempty"` Network Network `json:"network,omitempty" mapstructure:"network,omitempty"` }
func NewAzureMetadata ¶
func NewAzureMetadata() (*AzureMetadata, error)
func (*AzureMetadata) GetResourceGroupUrl ¶
func (m *AzureMetadata) GetResourceGroupUrl() string
func (*AzureMetadata) GetVmUrl ¶
func (m *AzureMetadata) GetVmUrl() string
type CloudInstance ¶
type CloudInstance struct { Provider string `mapstructure:"provider,omitempty"` Metadata interface{} `mapstructure:"metadata,omitempty"` }
func NewCloudInstance ¶
func NewCloudInstance() (*CloudInstance, error)
type Compute ¶
type Compute struct { AzEnvironment string `json:"azEnvironment,omitempty" mapstructure:"azenvironment,omitempty"` EvictionPolicy string `json:"evictionPolicy,omitempty" mapstructure:"evictionpolicy,omitempty"` IsHostCompatibilityLayerVm string `json:"isHostCompatibilityLayerVm,omitempty" mapstructure:"ishostcompatibilitylayervm,omitempty"` LicenseType string `json:"licenseType,omitempty" mapstructure:"licensetype,omitempty"` Location string `json:"location,omitempty" mapstructure:"location,omitempty"` Name string `json:"name,omitempty" mapstructure:"name,omitempty"` Offer string `json:"offer,omitempty" mapstructure:"offer,omitempty"` OsProfile OsProfile `json:"osProfile,omitempty" mapstructure:"osprofile,omitempty"` OsType string `json:"osType,omitempty" mapstructure:"ostype,omitempty"` PlacementGroupId string `json:"placementGroupId,omitempty" mapstructure:"placementgroupid,omitempty"` Plan Plan `json:"plan,omitempty" mapstructure:"plan,omitempty"` PlatformFaultDomain string `json:"platformFaultDomain,omitempty" mapstructure:"platformfaultdomain,omitempty"` PlatformUpdateDomain string `json:"platformUpdateDomain,omitempty" mapstructure:"platformupdatedomain,omitempty"` Priority string `json:"priority,omitempty" mapstructure:"priority,omitempty"` Provider string `json:"provider,omitempty" mapstructure:"provider,omitempty"` PublicKeys []*PublicKey `json:"publicKeys,omitempty" mapstructure:"publickeys,omitempty"` Publisher string `json:"publisher,omitempty" mapstructure:"publisher,omitempty"` ResourceGroupName string `json:"resourceGroupName,omitempty" mapstructure:"resourcegroupname,omitempty"` ResourceId string `json:"resourceId,omitempty" mapstructure:"resourceid,omitempty"` SecurityProfile SecurityProfile `json:"securityProfile,omitempty" mapstructure:"securityprofile,omitempty"` Sku string `json:"sku,omitempty" mapstructure:"sku,omitempty"` StorageProfile StorageProfile `json:"storageProfile,omitempty" mapstructure:"storageprofile,omitempty"` SubscriptionId string `json:"subscriptionId,omitempty" mapstructure:"subscriptionid,omitempty"` Tags string `json:"tags,omitempty" mapstructure:"tags,omitempty"` TagsList []map[string]string `json:"tagsList,omitempty" mapstructure:"tagslist,omitempty"` UserData string `json:"userData,omitempty" mapstructure:"userdata,omitempty"` Version string `json:"version,omitempty" mapstructure:"version,omitempty"` VmId string `json:"vmId,omitempty" mapstructure:"vmid,omitempty"` VmScaleSetName string `json:"vmScaleSetName,omitempty" mapstructure:"vmscalesetname,omitempty"` VmSize string `json:"vmSize,omitempty" mapstructure:"vmsize,omitempty"` Zone string `json:"zone,omitempty" mapstructure:"zone,omitempty"` }
type Disk ¶
type Disk struct { Caching string `json:"caching,omitempty" mapstructure:"caching,omitempty"` CreateOption string `json:"createOption,omitempty" mapstructure:"createoption,omitempty"` DiffDiskSettings map[string]string `json:"diffDiskSettings,omitempty" mapstructure:"diskdiffsettings,omitempty"` DiskSizeGB string `json:"diskSizeGB,omitempty" mapstructure:"disksizegb,omitempty"` EncryptionSettings map[string]string `json:"encryptionSettings,omitempty" mapstructure:"encryptionsettings,omitempty"` Image map[string]string `json:"image,omitempty" mapstructure:"image,omitempty"` Lun string `json:"lun,omitempty" mapstructure:"lun,omitempty"` ManagedDisk ManagedDisk `json:"managedDisk,omitempty" mapstructure:"manageddisk,omitempty"` Name string `json:"name,omitempty" mapstructure:"name,omitempty"` OsType string `json:"osType,omitempty" mapstructure:"ostype,omitempty"` Vhd map[string]string `json:"vhd,omitempty" mapstructure:"vhd,omitempty"` WriteAcceleratorEnabled string `json:"writeAcceleratorEnabled,omitempty" mapstructure:"writeacceleratorenabled,omitempty"` }
type HTTPClient ¶
Extract the client creation for UT purposes
type ImageReference ¶
type ImageReference struct { Id string `json:"id,omitempty" mapstructure:"id,omitempty"` Offer string `json:"offer,omitempty" mapstructure:"offer,omitempty"` Publisher string `json:"publisher,omitempty" mapstructure:"publisher,omitempty"` Sku string `json:"sku,omitempty" mapstructure:"sku,omitempty"` Version string `json:"version,omitempty" mapstructure:"version,omitempty"` }
type ManagedDisk ¶
type Network ¶
type Network struct {
Interfaces []*Interface `json:"interface,omitempty" mapstructure:"interfaces,omitempty"`
}
type OsProfile ¶
type OsProfile struct { AdminUserName string `json:"adminUsername,omitempty" mapstructure:"adminusername,omitempty"` ComputerName string `json:"computerName,omitempty" mapstructure:"computername,omitempty"` DisablePasswordAuthentication string `json:"disablePasswordAuthentication,omitempty" mapstructure:"disablepasswordauthentication,omitempty"` }
type SecurityProfile ¶
type StorageProfile ¶
type StorageProfile struct { DataDisks []*Disk `json:"dataDisks,omitempty" mapstructure:"datadisks,omitempty"` ImageReference ImageReference `json:"imageReference,omitempty" mapstructure:"imagereference,omitempty"` OsDisk Disk `json:"osDisk,omitempty" mapstructure:"osDisk,omitempty"` }
Click to show internal directories.
Click to hide internal directories.