Documentation ¶
Index ¶
- Constants
- Variables
- func DetectEmptyRanges(diskStream *diskstream.DiskStream, uploadableRanges []*common.IndexRange) ([]*common.IndexRange, error)
- func GetDataWithRanges(stream *diskstream.DiskStream, ranges []*common.IndexRange) (<-chan *DataWithRange, <-chan error)
- func LocateNonEmptyRangeIndices(stream *diskstream.DiskStream, ranges []*common.IndexRange) (<-chan int32, <-chan error)
- func LocateUploadableRanges(stream *diskstream.DiskStream, rangesToSkip []*common.IndexRange, ...) ([]*common.IndexRange, error)
- func LogRequest() autorest.PrepareDecorator
- func LogResponse() autorest.RespondDecorator
- func Upload(cxt *DiskUploadContext) error
- type AccessProperties
- type AccessURI
- type AccessURIOutput
- type AccountKeys
- type AccountProperties
- type AddressSpace
- type AzureError
- type AzureErrorDetail
- type BasicDisk
- type Capabilitie
- type ClassicAddressSpace
- type ClassicDisk
- type ClassicEipProperties
- type ClassicHardwareProfile
- type ClassicInstanceDisk
- type ClassicInstanceDiskProperties
- type ClassicNetworkProfile
- type ClassicSecurityGroupRuleProperties
- type ClassicSecurityRulesSet
- type ClassicStorageProfile
- type ClassicStorageProperties
- type ClassicSubnet
- type ClassicVMSize
- type ClassicVirtualMachineInstanceView
- type ClassicVirtualMachineProperties
- type ClassicVirtualNetwork
- type ClassicVpcProperties
- type CreationData
- type DataDisk
- type DataDisks
- type DataWithRange
- type DebugProfile
- type DiskProperties
- type DiskSku
- type DiskUploadContext
- type DomainName
- type FormattedMessage
- type GroupProperties
- type GuestAgentStatus
- type HardwareProfile
- type IPConfiguration
- type IPConfigurationPropertiesFormat
- type Identity
- type ImageDataDisk
- type ImageDiskReference
- type ImageOSDisk
- type ImageProperties
- type ImageReference
- type ImageStatusType
- type ImageStorageProfile
- type InputEndpoint
- type InstanceIp
- type InstanceViewStatus
- type Interface
- type InterfaceIPConfiguration
- type InterfaceIPConfigurationPropertiesFormat
- type InterfacePropertiesFormat
- type LinuxConfiguration
- type ManagedDiskParameters
- type NetworkInterfaceReference
- type NetworkProfile
- type OSDisk
- type OperatingSystemStateTypes
- type OsProfile
- type PrimaryEndpoints
- type PublicIPAddress
- type PublicIPAddressPropertiesFormat
- type PublicIPAddressSku
- type ResourceType
- type SAccountBalance
- type SAzureClient
- func (self *SAzureClient) CheckNameAvailability(Type string, body string) (jsonutils.JSONObject, error)
- func (self *SAzureClient) Create(body jsonutils.JSONObject, retVal interface{}) error
- func (self *SAzureClient) Delete(resourceId string) error
- func (self *SAzureClient) Get(resourceId string, params []string, retVal interface{}) error
- func (self *SAzureClient) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (self *SAzureClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
- func (self *SAzureClient) GetIRegions() []cloudprovider.ICloudRegion
- func (self *SAzureClient) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SAzureClient) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
- func (self *SAzureClient) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
- func (self *SAzureClient) GetRegion(regionId string) *SRegion
- func (self *SAzureClient) GetRegions() []SRegion
- func (self *SAzureClient) GetSubAccounts() (jsonutils.JSONObject, error)
- func (self *SAzureClient) List(golbalResource string, retVal interface{}) error
- func (self *SAzureClient) ListAll(resourceType string, retVal interface{}) error
- func (self *SAzureClient) ListByTypeWithResourceGroup(resourceGroupName string, Type string, retVal interface{}) error
- func (self *SAzureClient) ListClassicDisks() (jsonutils.JSONObject, error)
- func (self *SAzureClient) ListSubscriptions() (jsonutils.JSONObject, error)
- func (self *SAzureClient) ListVmSizes(location string) (jsonutils.JSONObject, error)
- func (self *SAzureClient) PerformAction(resourceId string, action string, body string) (jsonutils.JSONObject, error)
- func (self *SAzureClient) QueryAccountBalance() (*SAccountBalance, error)
- func (self *SAzureClient) Update(body jsonutils.JSONObject, retVal interface{}) error
- func (self *SAzureClient) UpdateAccount(tenantId, secret, envName string) error
- type SClassicDisk
- func (self *SClassicDisk) CreateISnapshot(name, desc string) (cloudprovider.ICloudSnapshot, error)
- func (self *SClassicDisk) Delete() error
- func (self *SClassicDisk) GetBillingType() string
- func (self *SClassicDisk) GetCacheMode() string
- func (self *SClassicDisk) GetDiskFormat() string
- func (self *SClassicDisk) GetDiskSizeMB() int
- func (self *SClassicDisk) GetDiskType() string
- func (self *SClassicDisk) GetDriver() string
- func (self *SClassicDisk) GetExpiredAt() time.Time
- func (self *SClassicDisk) GetFsFormat() string
- func (self *SClassicDisk) GetGlobalId() string
- func (self *SClassicDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
- func (self *SClassicDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (self *SClassicDisk) GetIStorge() cloudprovider.ICloudStorage
- func (self *SClassicDisk) GetId() string
- func (self *SClassicDisk) GetIsAutoDelete() bool
- func (self *SClassicDisk) GetIsNonPersistent() bool
- func (self *SClassicDisk) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicDisk) GetMountpoint() string
- func (self *SClassicDisk) GetName() string
- func (self *SClassicDisk) GetStatus() string
- func (self *SClassicDisk) GetTemplateId() string
- func (self *SClassicDisk) IsEmulated() bool
- func (self *SClassicDisk) Refresh() error
- func (self *SClassicDisk) Reset(snapshotId string) error
- func (self *SClassicDisk) Resize(size int64) error
- type SClassicEipAddress
- func (self *SClassicEipAddress) Associate(instanceId string) error
- func (self *SClassicEipAddress) ChangeBandwidth(bw int) error
- func (self *SClassicEipAddress) Delete() error
- func (self *SClassicEipAddress) Dissociate() error
- func (self *SClassicEipAddress) GetAssociationExternalId() string
- func (self *SClassicEipAddress) GetAssociationType() string
- func (self *SClassicEipAddress) GetBandwidth() int
- func (self *SClassicEipAddress) GetGlobalId() string
- func (self *SClassicEipAddress) GetId() string
- func (self *SClassicEipAddress) GetInternetChargeType() string
- func (self *SClassicEipAddress) GetIpAddr() string
- func (self *SClassicEipAddress) GetManagerId() string
- func (self *SClassicEipAddress) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicEipAddress) GetMode() string
- func (self *SClassicEipAddress) GetName() string
- func (self *SClassicEipAddress) GetStatus() string
- func (self *SClassicEipAddress) IsEmulated() bool
- func (self *SClassicEipAddress) Refresh() error
- type SClassicHost
- func (self *SClassicHost) CreateVM(name string, imgId string, sysDiskSize int, cpu int, memMB int, ...) (cloudprovider.ICloudVM, error)
- func (self *SClassicHost) GetAccessIp() string
- func (self *SClassicHost) GetAccessMac() string
- func (self *SClassicHost) GetCpuCount() int8
- func (self *SClassicHost) GetCpuDesc() string
- func (self *SClassicHost) GetCpuMhz() int
- func (self *SClassicHost) GetEnabled() bool
- func (self *SClassicHost) GetGlobalId() string
- func (self *SClassicHost) GetHostStatus() string
- func (self *SClassicHost) GetHostType() string
- func (self *SClassicHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SClassicHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (self *SClassicHost) GetIVMById(instanceId string) (cloudprovider.ICloudVM, error)
- func (self *SClassicHost) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (self *SClassicHost) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (self *SClassicHost) GetId() string
- func (self *SClassicHost) GetManagerId() string
- func (self *SClassicHost) GetMemSizeMB() int
- func (self *SClassicHost) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicHost) GetName() string
- func (self *SClassicHost) GetNodeCount() int8
- func (self *SClassicHost) GetSN() string
- func (self *SClassicHost) GetStatus() string
- func (self *SClassicHost) GetStorageSizeMB() int
- func (self *SClassicHost) GetStorageType() string
- func (self *SClassicHost) GetSysInfo() jsonutils.JSONObject
- func (self *SClassicHost) IsEmulated() bool
- func (self *SClassicHost) Refresh() error
- type SClassicInstance
- func (self *SClassicInstance) AttachDisk(diskId string) error
- func (self *SClassicInstance) ChangeConfig(instanceId string, ncpu int, vmem int) error
- func (self *SClassicInstance) DeleteVM() error
- func (self *SClassicInstance) DeployVM(name string, password string, publicKey string, deleteKeypair bool, ...) error
- func (self *SClassicInstance) DetachDisk(diskId string) error
- func (self *SClassicInstance) GetBillingType() string
- func (self *SClassicInstance) GetBios() string
- func (self *SClassicInstance) GetBootOrder() string
- func (self *SClassicInstance) GetCreateTime() time.Time
- func (self *SClassicInstance) GetExpiredAt() time.Time
- func (self *SClassicInstance) GetGlobalId() string
- func (self *SClassicInstance) GetHypervisor() string
- func (self *SClassicInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (self *SClassicInstance) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (self *SClassicInstance) GetIHost() cloudprovider.ICloudHost
- func (self *SClassicInstance) GetINics() ([]cloudprovider.ICloudNic, error)
- func (self *SClassicInstance) GetId() string
- func (self *SClassicInstance) GetMachine() string
- func (self *SClassicInstance) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicInstance) GetName() string
- func (self *SClassicInstance) GetOSName() string
- func (self *SClassicInstance) GetOSType() string
- func (self *SClassicInstance) GetStatus() string
- func (self *SClassicInstance) GetVNCInfo() (jsonutils.JSONObject, error)
- func (self *SClassicInstance) GetVcpuCount() int8
- func (self *SClassicInstance) GetVdi() string
- func (self *SClassicInstance) GetVga() string
- func (self *SClassicInstance) GetVmemSizeMB() int
- func (self *SClassicInstance) IsEmulated() bool
- func (self *SClassicInstance) RebuildRoot(imageId string, passwd string, publicKey string, sysSizeGB int) (string, error)
- func (self *SClassicInstance) Refresh() error
- func (self *SClassicInstance) StartVM() error
- func (self *SClassicInstance) StopVM(isForce bool) error
- func (self *SClassicInstance) SyncSecurityGroup(secgroupId string, name string, rules []secrules.SecurityRule) error
- func (self *SClassicInstance) UpdateVM(name string) error
- type SClassicInstanceNic
- type SClassicNetwork
- func (self *SClassicNetwork) Delete() error
- func (self *SClassicNetwork) GetAllocTimeoutSeconds() int
- func (self *SClassicNetwork) GetGateway() string
- func (self *SClassicNetwork) GetGlobalId() string
- func (self *SClassicNetwork) GetIWire() cloudprovider.ICloudWire
- func (self *SClassicNetwork) GetId() string
- func (self *SClassicNetwork) GetIpEnd() string
- func (self *SClassicNetwork) GetIpMask() int8
- func (self *SClassicNetwork) GetIpStart() string
- func (self *SClassicNetwork) GetIsPublic() bool
- func (self *SClassicNetwork) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicNetwork) GetName() string
- func (self *SClassicNetwork) GetServerType() string
- func (self *SClassicNetwork) GetStatus() string
- func (self *SClassicNetwork) IsEmulated() bool
- func (self *SClassicNetwork) Refresh() error
- type SClassicSecurityGroup
- func (self *SClassicSecurityGroup) GetDescription() string
- func (self *SClassicSecurityGroup) GetGlobalId() string
- func (self *SClassicSecurityGroup) GetId() string
- func (self *SClassicSecurityGroup) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicSecurityGroup) GetName() string
- func (self *SClassicSecurityGroup) GetRules() ([]secrules.SecurityRule, error)
- func (self *SClassicSecurityGroup) GetStatus() string
- func (self *SClassicSecurityGroup) IsEmulated() bool
- func (self *SClassicSecurityGroup) Refresh() error
- type SClassicSecurityGroupRule
- type SClassicSnapshot
- func (self *SClassicSnapshot) Delete() error
- func (self *SClassicSnapshot) GetDiskId() string
- func (self *SClassicSnapshot) GetDiskType() string
- func (self *SClassicSnapshot) GetGlobalId() string
- func (self *SClassicSnapshot) GetId() string
- func (self *SClassicSnapshot) GetManagerId() string
- func (self *SClassicSnapshot) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicSnapshot) GetName() string
- func (self *SClassicSnapshot) GetRegionId() string
- func (self *SClassicSnapshot) GetSize() int32
- func (self *SClassicSnapshot) GetStatus() string
- func (self *SClassicSnapshot) IsEmulated() bool
- func (self *SClassicSnapshot) Refresh() error
- type SClassicStorage
- func (self *SClassicStorage) CreateIDisk(name string, sizeGb int, desc string) (cloudprovider.ICloudDisk, error)
- func (self *SClassicStorage) GetCapacityMB() int
- func (self *SClassicStorage) GetEnabled() bool
- func (self *SClassicStorage) GetGlobalId() string
- func (self *SClassicStorage) GetIDisk(diskId string) (cloudprovider.ICloudDisk, error)
- func (self *SClassicStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (self *SClassicStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (self *SClassicStorage) GetIZone() cloudprovider.ICloudZone
- func (self *SClassicStorage) GetId() string
- func (self *SClassicStorage) GetManagerId() string
- func (self *SClassicStorage) GetMediumType() string
- func (self *SClassicStorage) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicStorage) GetName() string
- func (self *SClassicStorage) GetStatus() string
- func (self *SClassicStorage) GetStorageConf() jsonutils.JSONObject
- func (self *SClassicStorage) GetStorageType() string
- func (self *SClassicStorage) IsEmulated() bool
- func (self *SClassicStorage) Refresh() error
- type SClassicVpc
- func (self *SClassicVpc) Delete() error
- func (self *SClassicVpc) GetCidrBlock() string
- func (self *SClassicVpc) GetGlobalId() string
- func (self *SClassicVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
- func (self *SClassicVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
- func (self *SClassicVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (self *SClassicVpc) GetId() string
- func (self *SClassicVpc) GetIsDefault() bool
- func (self *SClassicVpc) GetManagerId() string
- func (self *SClassicVpc) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicVpc) GetName() string
- func (self *SClassicVpc) GetNetworks() []SClassicNetwork
- func (self *SClassicVpc) GetRegion() cloudprovider.ICloudRegion
- func (self *SClassicVpc) GetStatus() string
- func (self *SClassicVpc) IsEmulated() bool
- func (self *SClassicVpc) Refresh() error
- func (self *SClassicVpc) SyncSecurityGroup(tag string, name string, rules []secrules.SecurityRule) (string, error)
- type SClassicWire
- func (self *SClassicWire) CreateINetwork(name string, cidr string, desc string) (cloudprovider.ICloudNetwork, error)
- func (self *SClassicWire) GetBandwidth() int
- func (self *SClassicWire) GetGlobalId() string
- func (self *SClassicWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)
- func (self *SClassicWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
- func (self *SClassicWire) GetIVpc() cloudprovider.ICloudVpc
- func (self *SClassicWire) GetIZone() cloudprovider.ICloudZone
- func (self *SClassicWire) GetId() string
- func (self *SClassicWire) GetMetadata() *jsonutils.JSONDict
- func (self *SClassicWire) GetName() string
- func (self *SClassicWire) GetStatus() string
- func (self *SClassicWire) IsEmulated() bool
- func (self *SClassicWire) Refresh() error
- type SContainer
- type SDisk
- func (self *SDisk) CreateISnapshot(name, desc string) (cloudprovider.ICloudSnapshot, error)
- func (self *SDisk) Delete() error
- func (self *SDisk) GetBillingType() string
- func (self *SDisk) GetCacheMode() string
- func (self *SDisk) GetDiskFormat() string
- func (self *SDisk) GetDiskSizeMB() int
- func (self *SDisk) GetDiskType() string
- func (self *SDisk) GetDriver() string
- func (self *SDisk) GetExpiredAt() time.Time
- func (self *SDisk) GetFsFormat() string
- func (self *SDisk) GetGlobalId() string
- func (self *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
- func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (self *SDisk) GetIStorge() cloudprovider.ICloudStorage
- func (self *SDisk) GetId() string
- func (self *SDisk) GetIsAutoDelete() bool
- func (self *SDisk) GetIsNonPersistent() bool
- func (self *SDisk) GetMetadata() *jsonutils.JSONDict
- func (self *SDisk) GetMountpoint() string
- func (self *SDisk) GetName() string
- func (self *SDisk) GetSnapshotDetail(snapshotId string) (*SSnapshot, error)
- func (self *SDisk) GetStatus() string
- func (self *SDisk) GetTemplateId() string
- func (self *SDisk) IsEmulated() bool
- func (self *SDisk) Refresh() error
- func (self *SDisk) Reset(snapshotId string) error
- func (self *SDisk) Resize(size int64) error
- type SEipAddress
- func (self *SEipAddress) Associate(instanceId string) error
- func (self *SEipAddress) ChangeBandwidth(bw int) error
- func (self *SEipAddress) Delete() error
- func (self *SEipAddress) Dissociate() error
- func (self *SEipAddress) GetAssociationExternalId() string
- func (self *SEipAddress) GetAssociationType() string
- func (self *SEipAddress) GetBandwidth() int
- func (self *SEipAddress) GetGlobalId() string
- func (self *SEipAddress) GetId() string
- func (self *SEipAddress) GetInternetChargeType() string
- func (self *SEipAddress) GetIpAddr() string
- func (self *SEipAddress) GetManagerId() string
- func (self *SEipAddress) GetMetadata() *jsonutils.JSONDict
- func (self *SEipAddress) GetMode() string
- func (self *SEipAddress) GetName() string
- func (self *SEipAddress) GetStatus() string
- func (self *SEipAddress) IsEmulated() bool
- func (self *SEipAddress) Refresh() error
- type SHost
- func (self *SHost) CreateVM(name string, imgId string, sysDiskSize int, cpu int, memMB int, ...) (cloudprovider.ICloudVM, error)
- func (self *SHost) GetAccessIp() string
- func (self *SHost) GetAccessMac() string
- func (self *SHost) GetCpuCount() int8
- func (self *SHost) GetCpuDesc() string
- func (self *SHost) GetCpuMhz() int
- func (self *SHost) GetEnabled() bool
- func (self *SHost) GetGlobalId() string
- func (self *SHost) GetHostStatus() string
- func (self *SHost) GetHostType() string
- func (self *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (self *SHost) GetIVMById(instanceId string) (cloudprovider.ICloudVM, error)
- func (self *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (self *SHost) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (self *SHost) GetId() string
- func (self *SHost) GetManagerId() string
- func (self *SHost) GetMemSizeMB() int
- func (self *SHost) GetMetadata() *jsonutils.JSONDict
- func (self *SHost) GetName() string
- func (self *SHost) GetNodeCount() int8
- func (self *SHost) GetSN() string
- func (self *SHost) GetStatus() string
- func (self *SHost) GetStorageSizeMB() int
- func (self *SHost) GetStorageType() string
- func (self *SHost) GetSysInfo() jsonutils.JSONObject
- func (self *SHost) IsEmulated() bool
- func (self *SHost) Refresh() error
- type SImage
- func (self *SImage) Delete() error
- func (self *SImage) GetBlobUri() string
- func (self *SImage) GetGlobalId() string
- func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (self *SImage) GetId() string
- func (self *SImage) GetMetadata() *jsonutils.JSONDict
- func (self *SImage) GetName() string
- func (self *SImage) GetOsType() string
- func (self *SImage) GetStatus() string
- func (self *SImage) IsEmulated() bool
- func (self *SImage) Refresh() error
- type SInstance
- func (self *SInstance) AttachDisk(diskId string) error
- func (self *SInstance) ChangeConfig(instanceId string, ncpu int, vmem int) error
- func (self *SInstance) DeleteVM() error
- func (self *SInstance) DeployVM(name string, password string, publicKey string, deleteKeypair bool, ...) error
- func (self *SInstance) DetachDisk(diskId string) error
- func (self *SInstance) GetBillingType() string
- func (self *SInstance) GetBios() string
- func (self *SInstance) GetBootOrder() string
- func (self *SInstance) GetCreateTime() time.Time
- func (self *SInstance) GetExpiredAt() time.Time
- func (self *SInstance) GetGlobalId() string
- func (self *SInstance) GetHypervisor() string
- func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (self *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (self *SInstance) GetIHost() cloudprovider.ICloudHost
- func (self *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)
- func (self *SInstance) GetId() string
- func (self *SInstance) GetMachine() string
- func (self *SInstance) GetMetadata() *jsonutils.JSONDict
- func (self *SInstance) GetName() string
- func (self *SInstance) GetOSName() string
- func (self *SInstance) GetOSType() string
- func (self *SInstance) GetStatus() string
- func (self *SInstance) GetVNCInfo() (jsonutils.JSONObject, error)
- func (self *SInstance) GetVcpuCount() int8
- func (self *SInstance) GetVdi() string
- func (self *SInstance) GetVga() string
- func (self *SInstance) GetVmemSizeMB() int
- func (self *SInstance) IsEmulated() bool
- func (self *SInstance) RebuildRoot(imageId string, passwd string, publicKey string, sysSizeGB int) (string, error)
- func (self *SInstance) Refresh() error
- func (self *SInstance) StartVM() error
- func (self *SInstance) StopVM(isForce bool) error
- func (self *SInstance) SyncSecurityGroup(dbSecgroupId string, name string, rules []secrules.SecurityRule) error
- func (self *SInstance) UpdateVM(name string) error
- type SInstanceNic
- type SNetwork
- func (self *SNetwork) Delete() error
- func (self *SNetwork) GetAllocTimeoutSeconds() int
- func (self *SNetwork) GetGateway() string
- func (self *SNetwork) GetGlobalId() string
- func (self *SNetwork) GetIWire() cloudprovider.ICloudWire
- func (self *SNetwork) GetId() string
- func (self *SNetwork) GetIpEnd() string
- func (self *SNetwork) GetIpMask() int8
- func (self *SNetwork) GetIpStart() string
- func (self *SNetwork) GetIsPublic() bool
- func (self *SNetwork) GetMetadata() *jsonutils.JSONDict
- func (self *SNetwork) GetName() string
- func (self *SNetwork) GetServerType() string
- func (self *SNetwork) GetStatus() string
- func (self *SNetwork) IsEmulated() bool
- func (self *SNetwork) Refresh() error
- type SRegion
- func (region *SRegion) AllocateEIP(eipName string) (*SEipAddress, error)
- func (region *SRegion) AssiginClassicSecurityGroup(instanceId, secgroupId string) error
- func (region *SRegion) AssiginSecurityGroup(instanceId, secgroupId string) error
- func (region *SRegion) AssociateEip(eipId string, instanceId string) error
- func (region *SRegion) AttachDisk(instanceId, diskId string) error
- func (region *SRegion) AttachSecurityToInterfaces(secgroupId string, nicIds []string) error
- func (region *SRegion) ChangeVMConfig(instanceId string, ncpu int, vmem int) error
- func (region *SRegion) CreateClassicSecurityGroup(secName, tagId string) (*SClassicSecurityGroup, error)
- func (self *SRegion) CreateClassicSnapshot(diskId, snapName, desc string) (*SClassicSnapshot, error)
- func (self *SRegion) CreateDisk(storageType string, name string, sizeGb int32, desc string, imageId string) (*SDisk, error)
- func (region *SRegion) CreateEIP(eipName string, bwMbps int, chargeType string) (cloudprovider.ICloudEIP, error)
- func (self *SRegion) CreateIVpc(name string, desc string, cidr string) (cloudprovider.ICloudVpc, error)
- func (self *SRegion) CreateImage(snapshotId, imageName, osType, imageDesc string) (*SImage, error)
- func (self *SRegion) CreateImageByBlob(imageName, osType, blobURI string, diskSizeGB int32) (*SImage, error)
- func (self *SRegion) CreateInstanceSimple(name string, imgId string, cpu int, memGB int, storageType string, ...) (*SInstance, error)
- func (self *SRegion) CreateNetworkInterface(nicName string, ipAddr string, subnetId string, secgrpId string) (*SInstanceNic, error)
- func (self *SRegion) CreateResourceGroup(groupName string) (*SResourceGroup, error)
- func (region *SRegion) CreateSecurityGroup(secName string, tagId string) (*SSecurityGroup, error)
- func (self *SRegion) CreateSnapshot(diskId, snapName, desc string) (*SSnapshot, error)
- func (self *SRegion) CreateStorageAccount(storageAccount string) (*SStorageAccount, error)
- func (region *SRegion) DeallocateEIP(eipId string) error
- func (self *SRegion) DeleteClassicSnapshot(snapshotId string) error
- func (self *SRegion) DeleteDisk(diskId string) error
- func (self *SRegion) DeleteImage(imageId string) error
- func (region *SRegion) DeleteNetworkInterface(interfaceId string) error
- func (self *SRegion) DeleteSnapshot(snapshotId string) error
- func (self *SRegion) DeleteStorageAccount(accountId string) error
- func (self *SRegion) DeleteVM(instanceId string) error
- func (self *SRegion) DeleteVpc(vpcId string) error
- func (region *SRegion) DeployVM(instanceId, name, password, publicKey string, deleteKeypair bool, ...) error
- func (region *SRegion) DetachDisk(instanceId, diskId string) error
- func (region *SRegion) DissociateEip(eipId string) error
- func (self *SRegion) GetClassicDisks() ([]SClassicDisk, error)
- func (region *SRegion) GetClassicEip(eipId string) (*SClassicEipAddress, error)
- func (region *SRegion) GetClassicEips() ([]SClassicEipAddress, error)
- func (self *SRegion) GetClassicInstance(instanceId string) (*SClassicInstance, error)
- func (self *SRegion) GetClassicInstances() ([]SClassicInstance, error)
- func (region *SRegion) GetClassicSecurityGroupDetails(secgroupId string) (*SClassicSecurityGroup, error)
- func (region *SRegion) GetClassicSecurityGroups() ([]SClassicSecurityGroup, error)
- func (region *SRegion) GetClassicSnapShots(diskId string) ([]SClassicSnapshot, error)
- func (self *SRegion) GetClassicStorageAccounts() ([]SStorageAccount, error)
- func (region *SRegion) GetClassicVpc(vpcId string) (*SClassicVpc, error)
- func (self *SRegion) GetClient() *SAzureClient
- func (self *SRegion) GetDisk(diskId string) (*SDisk, error)
- func (self *SRegion) GetDisks() ([]SDisk, error)
- func (region *SRegion) GetEip(eipId string) (*SEipAddress, error)
- func (region *SRegion) GetEips() ([]SEipAddress, error)
- func (self *SRegion) GetGlobalId() string
- func (region *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)
- func (region *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)
- func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (self *SRegion) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error)
- func (self *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (self *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
- func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
- func (self *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error)
- func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
- func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
- func (self *SRegion) GetId() string
- func (self *SRegion) GetImage(imageId string) (*SImage, error)
- func (self *SRegion) GetImageByName(name string) (*SImage, error)
- func (self *SRegion) GetImageStatus(imageId string) (ImageStatusType, error)
- func (self *SRegion) GetImages() ([]SImage, error)
- func (self *SRegion) GetInstance(instanceId string) (*SInstance, error)
- func (self *SRegion) GetInstanceScaleSets() ([]SInstance, error)
- func (self *SRegion) GetInstances() ([]SInstance, error)
- func (self *SRegion) GetLatitude() float32
- func (self *SRegion) GetLongitude() float32
- func (self *SRegion) GetMetadata() *jsonutils.JSONDict
- func (self *SRegion) GetName() string
- func (self *SRegion) GetNetworkDetail(networkId string) (*Subnet, error)
- func (self *SRegion) GetNetworkInterfaceDetail(interfaceId string) (*SInstanceNic, error)
- func (self *SRegion) GetNetworkInterfaces() ([]SInstanceNic, error)
- func (self *SRegion) GetProvider() string
- func (self *SRegion) GetResourceGroupDetail(groupName string) (*SResourceGroup, error)
- func (self *SRegion) GetResourceGroups() ([]SResourceGroup, error)
- func (region *SRegion) GetSecurityGroupDetails(secgroupId string) (*SSecurityGroup, error)
- func (region *SRegion) GetSecurityGroups() ([]SSecurityGroup, error)
- func (region *SRegion) GetSnapShots(diskId string) ([]SSnapshot, error)
- func (region *SRegion) GetSnapshotDetail(snapshotId string) (*SSnapshot, error)
- func (self *SRegion) GetStatus() string
- func (self *SRegion) GetStorageAccountDetail(accountId string) (*SStorageAccount, error)
- func (self *SRegion) GetStorageAccountDisksWithSnapshots(storageaccount SStorageAccount) ([]SClassicDisk, []SClassicSnapshot, error)
- func (self *SRegion) GetStorageAccountKey(accountId string) (string, error)
- func (self *SRegion) GetStorageAccounts() ([]SStorageAccount, error)
- func (self *SRegion) GetStorageAccountsDisksWithSnapshots(storageaccounts ...SStorageAccount) ([]SClassicDisk, []SClassicSnapshot, error)
- func (self *SRegion) GetStorageTypes() ([]SStorage, error)
- func (self *SRegion) GetUniqStorageAccountName() string
- func (self *SRegion) GetVMSize() (map[string]SVMSize, error)
- func (region *SRegion) GetVpc(vpcId string) (*SVpc, error)
- func (self *SRegion) GrantAccessSnapshot(snapshotId string) (string, error)
- func (self *SRegion) IsEmulated() bool
- func (self *SRegion) ListServices() ([]SService, error)
- func (self *SRegion) Refresh() error
- func (region *SRegion) ReplaceSystemDisk(instanceId, imageId, passwd, publicKey string, sysSizeGB int32) (string, error)
- func (self *SRegion) ResizeDisk(diskId string, sizeGb int32) error
- func (self *SRegion) SerciceShow(serviceType string) (*SService, error)
- func (self *SRegion) ServiceRegister(resourceType string) error
- func (self *SRegion) ServiceUnRegister(resourceType string) error
- func (self *SRegion) StartVM(instanceId string) error
- func (self *SRegion) StopClassicVM(instanceId string, isForce bool) error
- func (self *SRegion) StopVM(instanceId string, isForce bool) error
- type SResourceGroup
- type SSHConfiguration
- type SSHPublicKey
- type SSecurityGroup
- func (self *SSecurityGroup) GetDescription() string
- func (self *SSecurityGroup) GetGlobalId() string
- func (self *SSecurityGroup) GetId() string
- func (self *SSecurityGroup) GetMetadata() *jsonutils.JSONDict
- func (self *SSecurityGroup) GetName() string
- func (self *SSecurityGroup) GetRules() ([]secrules.SecurityRule, error)
- func (self *SSecurityGroup) GetStatus() string
- func (self *SSecurityGroup) IsEmulated() bool
- func (self *SSecurityGroup) Refresh() error
- type SService
- type SServices
- type SSnapshot
- func (self *SSnapshot) Delete() error
- func (self *SSnapshot) GetDiskId() string
- func (self *SSnapshot) GetDiskType() string
- func (self *SSnapshot) GetGlobalId() string
- func (self *SSnapshot) GetId() string
- func (self *SSnapshot) GetMetadata() *jsonutils.JSONDict
- func (self *SSnapshot) GetName() string
- func (self *SSnapshot) GetSize() int32
- func (self *SSnapshot) GetStatus() string
- func (self *SSnapshot) IsEmulated() bool
- func (self *SSnapshot) Refresh() error
- type SStorage
- func (self *SStorage) CreateIDisk(name string, sizeGb int, desc string) (cloudprovider.ICloudDisk, error)
- func (self *SStorage) GetCapacityMB() int
- func (self *SStorage) GetEnabled() bool
- func (self *SStorage) GetGlobalId() string
- func (self *SStorage) GetIDisk(diskId string) (cloudprovider.ICloudDisk, error)
- func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (self *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (self *SStorage) GetIZone() cloudprovider.ICloudZone
- func (self *SStorage) GetId() string
- func (self *SStorage) GetManagerId() string
- func (self *SStorage) GetMediumType() string
- func (self *SStorage) GetMetadata() *jsonutils.JSONDict
- func (self *SStorage) GetName() string
- func (self *SStorage) GetStatus() string
- func (self *SStorage) GetStorageConf() jsonutils.JSONObject
- func (self *SStorage) GetStorageType() string
- func (self *SStorage) IsEmulated() bool
- func (self *SStorage) Refresh() error
- type SStorageAccount
- func (self *SStorageAccount) CreateContainer(containerName string) (*SContainer, error)
- func (self *SStorageAccount) GetAccountKey() (accountKey string, err error)
- func (self *SStorageAccount) GetBlobBaseUrl() string
- func (self *SStorageAccount) GetContainers() ([]SContainer, error)
- func (self *SStorageAccount) UploadFile(containerName string, filePath string) (string, error)
- type SStoragecache
- func (self *SStoragecache) CreateIImage(snapshotId, imageName, osType, imageDesc string) (cloudprovider.ICloudImage, error)
- func (self *SStoragecache) DownloadImage(userCred mcclient.TokenCredential, imageId string, extId string, path string) (jsonutils.JSONObject, error)
- func (self *SStoragecache) GetGlobalId() string
- func (self *SStoragecache) GetIImages() ([]cloudprovider.ICloudImage, error)
- func (self *SStoragecache) GetId() string
- func (self *SStoragecache) GetManagerId() string
- func (self *SStoragecache) GetMetadata() *jsonutils.JSONDict
- func (self *SStoragecache) GetName() string
- func (self *SStoragecache) GetStatus() string
- func (self *SStoragecache) IsEmulated() bool
- func (self *SStoragecache) Refresh() error
- func (self *SStoragecache) UploadImage(userCred mcclient.TokenCredential, imageId string, ...) (string, error)
- type SVMSize
- type SVirtualMachineExtension
- type SVpc
- func (self *SVpc) Delete() error
- func (self *SVpc) GetCidrBlock() string
- func (self *SVpc) GetGlobalId() string
- func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
- func (self *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
- func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (self *SVpc) GetId() string
- func (self *SVpc) GetIsDefault() bool
- func (self *SVpc) GetManagerId() string
- func (self *SVpc) GetMetadata() *jsonutils.JSONDict
- func (self *SVpc) GetName() string
- func (self *SVpc) GetNetworks() []SNetwork
- func (self *SVpc) GetRegion() cloudprovider.ICloudRegion
- func (self *SVpc) GetStatus() string
- func (self *SVpc) IsEmulated() bool
- func (self *SVpc) Refresh() error
- func (self *SVpc) SyncSecurityGroup(tag string, name string, rules []secrules.SecurityRule) (string, error)
- type SWire
- func (self *SWire) CreateINetwork(name string, cidr string, desc string) (cloudprovider.ICloudNetwork, error)
- func (self *SWire) GetBandwidth() int
- func (self *SWire) GetGlobalId() string
- func (self *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)
- func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
- func (self *SWire) GetIVpc() cloudprovider.ICloudVpc
- func (self *SWire) GetIZone() cloudprovider.ICloudZone
- func (self *SWire) GetId() string
- func (self *SWire) GetMetadata() *jsonutils.JSONDict
- func (self *SWire) GetName() string
- func (self *SWire) GetStatus() string
- func (self *SWire) IsEmulated() bool
- func (self *SWire) Refresh() error
- type SZone
- func (self *SZone) GetGlobalId() string
- func (self *SZone) GetIClassicWires() ([]cloudprovider.ICloudWire, error)
- func (self *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (self *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
- func (self *SZone) GetIRegion() cloudprovider.ICloudRegion
- func (self *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (self *SZone) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (self *SZone) GetId() string
- func (self *SZone) GetMetadata() *jsonutils.JSONDict
- func (self *SZone) GetName() string
- func (self *SZone) GetStatus() string
- func (self *SZone) IsEmulated() bool
- func (self *SZone) Refresh() error
- type SecurityGroupPropertiesFormat
- type SecurityRulePropertiesFormat
- type SecurityRules
- type SecurityRulesSet
- type Sku
- type SnapshotSku
- type StorageProfile
- type SubResource
- type Subnet
- type SubnetPropertiesFormat
- type TInternetChargeType
- type VaultCertificate
- type VaultSecretGroup
- type VirtualHardDisk
- type VirtualMachineExtensionProperties
- type VirtualMachineInstanceView
- type VirtualMachineProperties
- type VirtualNetworkPropertiesFormat
Constants ¶
const ( CLOUD_PROVIDER_AZURE = models.CLOUD_PROVIDER_AZURE CLOUD_PROVIDER_AZURE_CN = "微软" AZURE_API_VERSION = "2016-02-01" )
const ( DefaultStorageAccount string = "image" DefaultContainer string = "image-cache" DefaultReadBlockSize int64 = 4 * 1024 * 1024 )
const (
DEBUG = false
)
const (
DEFAULT_EXTENSION_NAME = "enablevmaccess"
)
const (
DEFAULT_USER = "yunion"
)
const (
InternetChargeByTraffic = TInternetChargeType("PayByTraffic")
)
Variables ¶
var CLASSIC_VM_SIZES = map[string]ClassicVMSize{ "ExtraSmall": ClassicVMSize{MemoryInMB: 786, NumberOfCores: 1, StorageSize: 20, MaxNic: 1}, "Small": ClassicVMSize{MemoryInMB: 1.75 * 1024, NumberOfCores: 1, StorageSize: 225, MaxNic: 1}, "Medium": ClassicVMSize{MemoryInMB: 3.5 * 1024, NumberOfCores: 2, StorageSize: 490, MaxNic: 1}, "Large": ClassicVMSize{MemoryInMB: 7 * 1024, NumberOfCores: 4, StorageSize: 1000, MaxNic: 2}, "ExtraLarge": ClassicVMSize{MemoryInMB: 14 * 1024, NumberOfCores: 8, StorageSize: 2040, MaxNic: 4}, "A5": ClassicVMSize{MemoryInMB: 14 * 1024, NumberOfCores: 2, StorageSize: 490, MaxNic: 1}, "A6": ClassicVMSize{MemoryInMB: 28 * 1024, NumberOfCores: 4, StorageSize: 1000, MaxNic: 2}, "A7": ClassicVMSize{MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 2040, MaxNic: 4}, "A8*": ClassicVMSize{MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 1817, MaxNic: 2}, "A9*": ClassicVMSize{MemoryInMB: 112 * 1024, NumberOfCores: 16, StorageSize: 1817, MaxNic: 4}, "A10": ClassicVMSize{MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 1817, MaxNic: 2}, "A11": ClassicVMSize{MemoryInMB: 112 * 1024, NumberOfCores: 16, StorageSize: 1817, MaxNic: 4}, "Standard_A1_v2": ClassicVMSize{MemoryInMB: 2 * 1024, NumberOfCores: 1, StorageSize: 10, MaxNic: 1}, "Standard_A2_v2": ClassicVMSize{MemoryInMB: 4 * 1024, NumberOfCores: 2, StorageSize: 20, MaxNic: 2}, "Standard_A4_v2": ClassicVMSize{MemoryInMB: 8 * 1024, NumberOfCores: 4, StorageSize: 40, MaxNic: 4}, "Standard_A8_v2": ClassicVMSize{MemoryInMB: 16 * 1024, NumberOfCores: 8, StorageSize: 80, MaxNic: 8}, "Standard_A2m_v2": ClassicVMSize{MemoryInMB: 16 * 1024, NumberOfCores: 2, StorageSize: 20, MaxNic: 2}, "Standard_A4m_v2": ClassicVMSize{MemoryInMB: 32 * 1024, NumberOfCores: 4, StorageSize: 40, MaxNic: 4}, "Standard_A8m_v2": ClassicVMSize{MemoryInMB: 64 * 1024, NumberOfCores: 8, StorageSize: 80, MaxNic: 8}, "Standard_D1": ClassicVMSize{MemoryInMB: 3 * 1024, NumberOfCores: 1, StorageSize: 50, MaxNic: 1}, "Standard_D2": ClassicVMSize{MemoryInMB: 7 * 1024, NumberOfCores: 2, StorageSize: 100, MaxNic: 2}, "Standard_D3": ClassicVMSize{MemoryInMB: 14 * 1024, NumberOfCores: 4, StorageSize: 200, MaxNic: 4}, "Standard_D4": ClassicVMSize{MemoryInMB: 28 * 1024, NumberOfCores: 8, StorageSize: 400, MaxNic: 8}, "Standard_D11": ClassicVMSize{MemoryInMB: 14 * 1024, NumberOfCores: 2, StorageSize: 100, MaxNic: 2}, "Standard_D12": ClassicVMSize{MemoryInMB: 28 * 1024, NumberOfCores: 4, StorageSize: 200, MaxNic: 4}, "Standard_D13": ClassicVMSize{MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 400, MaxNic: 8}, "Standard_D14": ClassicVMSize{MemoryInMB: 112 * 1024, NumberOfCores: 16, StorageSize: 800, MaxNic: 8}, "Standard_D1_v2": ClassicVMSize{MemoryInMB: 3 * 1024, NumberOfCores: 1, StorageSize: 50, MaxNic: 1}, "Standard_D2_v2": ClassicVMSize{MemoryInMB: 7 * 1024, NumberOfCores: 2, StorageSize: 100, MaxNic: 2}, "Standard_D3_v2": ClassicVMSize{MemoryInMB: 14 * 1024, NumberOfCores: 4, StorageSize: 200, MaxNic: 4}, "Standard_D4_v2": ClassicVMSize{MemoryInMB: 28 * 1024, NumberOfCores: 8, StorageSize: 400, MaxNic: 8}, "Standard_D5_v2": ClassicVMSize{MemoryInMB: 56 * 1024, NumberOfCores: 16, StorageSize: 800, MaxNic: 8}, "Standard_D11_v2": ClassicVMSize{MemoryInMB: 14 * 1024, NumberOfCores: 2, StorageSize: 100, MaxNic: 2}, "Standard_D12_v2": ClassicVMSize{MemoryInMB: 28 * 1024, NumberOfCores: 4, StorageSize: 200, MaxNic: 4}, "Standard_D13_v2": ClassicVMSize{MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 400, MaxNic: 8}, "Standard_D14_v2": ClassicVMSize{MemoryInMB: 112 * 1024, NumberOfCores: 16, StorageSize: 800, MaxNic: 8}, "Standard_D15_v2": ClassicVMSize{MemoryInMB: 140 * 1024, NumberOfCores: 20, StorageSize: 1, MaxNic: 8}, "Standard_D2_v3": ClassicVMSize{MemoryInMB: 8 * 1024, NumberOfCores: 2, StorageSize: 50, MaxNic: 2}, "Standard_D4_v3": ClassicVMSize{MemoryInMB: 16 * 1024, NumberOfCores: 4, StorageSize: 100, MaxNic: 2}, "Standard_D8_v3": ClassicVMSize{MemoryInMB: 32 * 1024, NumberOfCores: 8, StorageSize: 200, MaxNic: 4}, "Standard_D16_v3": ClassicVMSize{MemoryInMB: 64 * 1024, NumberOfCores: 16, StorageSize: 400, MaxNic: 8}, "Standard_D32_v3": ClassicVMSize{MemoryInMB: 128 * 1024, NumberOfCores: 32, StorageSize: 800, MaxNic: 8}, "Standard_D64_v3": ClassicVMSize{MemoryInMB: 256 * 1024, NumberOfCores: 64, StorageSize: 1600, MaxNic: 8}, "Standard_E2_v3": ClassicVMSize{MemoryInMB: 16 * 1024, NumberOfCores: 2, StorageSize: 50, MaxNic: 2}, "Standard_E4_v3": ClassicVMSize{MemoryInMB: 32 * 1024, NumberOfCores: 4, StorageSize: 100, MaxNic: 2}, "Standard_E8_v3": ClassicVMSize{MemoryInMB: 64 * 1024, NumberOfCores: 8, StorageSize: 200, MaxNic: 4}, "Standard_E16_v3": ClassicVMSize{MemoryInMB: 128 * 1024, NumberOfCores: 16, StorageSize: 400, MaxNic: 8}, "Standard_E32_v3": ClassicVMSize{MemoryInMB: 256 * 1024, NumberOfCores: 32, StorageSize: 800, MaxNic: 8}, "Standard_E64_v3": ClassicVMSize{MemoryInMB: 432 * 1024, NumberOfCores: 64, StorageSize: 1600, MaxNic: 8}, "Standard_G1": ClassicVMSize{MemoryInMB: 28 * 1024, NumberOfCores: 2, StorageSize: 384, MaxNic: 1}, "Standard_G2": ClassicVMSize{MemoryInMB: 56 * 1024, NumberOfCores: 4, StorageSize: 768, MaxNic: 2}, "Standard_G3": ClassicVMSize{MemoryInMB: 112 * 1024, NumberOfCores: 8, StorageSize: 1, MaxNic: 4}, "Standard_G4": ClassicVMSize{MemoryInMB: 224 * 1024, NumberOfCores: 16, StorageSize: 3, MaxNic: 8}, "Standard_G5": ClassicVMSize{MemoryInMB: 448 * 1024, NumberOfCores: 32, StorageSize: 6, MaxNic: 8}, }
var DEFAULT_API_VERSION = map[string]string{
"vmSizes": "2018-06-01",
"Microsoft.Compute/virtualMachineScaleSets": "2017-12-01",
"Microsoft.Compute/virtualMachines": "2018-04-01",
"Microsoft.ClassicCompute/virtualMachines": "2017-04-01",
"Microsoft.Compute/operations": "2018-10-01",
"Microsoft.ClassicCompute/operations": "2017-04-01",
"Microsoft.Network/virtualNetworks": "2018-08-01",
"Microsoft.ClassicNetwork/virtualNetworks": "2017-11-15",
"Microsoft.Compute/disks": "2018-06-01",
"Microsoft.Storage/storageAccounts": "2016-12-01",
"Microsoft.ClassicStorage/storageAccounts": "2016-04-01",
"Microsoft.Compute/snapshots": "2018-06-01",
"Microsoft.Compute/images": "2018-10-01",
"Microsoft.Storage": "2016-12-01",
"Microsoft.Network/publicIPAddresses": "2018-06-01",
"Microsoft.Network/networkSecurityGroups": "2018-06-01",
"Microsoft.Network/networkInterfaces": "2018-06-01",
"Microsoft.Network": "2018-06-01",
"Microsoft.ClassicNetwork/reservedIps": "2016-04-01",
"Microsoft.ClassicNetwork/networkSecurityGroups": "2016-11-01",
}
Functions ¶
func DetectEmptyRanges ¶
func DetectEmptyRanges(diskStream *diskstream.DiskStream, uploadableRanges []*common.IndexRange) ([]*common.IndexRange, error)
func GetDataWithRanges ¶
func GetDataWithRanges(stream *diskstream.DiskStream, ranges []*common.IndexRange) (<-chan *DataWithRange, <-chan error)
GetDataWithRanges with start reading and streaming the ranges from the disk identified by the parameter ranges. It returns two channels, a data channel to stream the disk ranges and a channel to send any error while reading the disk. On successful completion the data channel will be closed. the caller must not expect any more value in the data channel if the error channel is signaled.
func LocateNonEmptyRangeIndices ¶
func LocateNonEmptyRangeIndices(stream *diskstream.DiskStream, ranges []*common.IndexRange) (<-chan int32, <-chan error)
func LocateUploadableRanges ¶
func LocateUploadableRanges(stream *diskstream.DiskStream, rangesToSkip []*common.IndexRange, pageSizeInBytes int64) ([]*common.IndexRange, error)
func LogRequest ¶
func LogRequest() autorest.PrepareDecorator
func LogResponse ¶
func LogResponse() autorest.RespondDecorator
func Upload ¶
func Upload(cxt *DiskUploadContext) error
Upload uploads the disk ranges described by the parameter cxt, this parameter describes the disk stream to read from, the ranges of the stream to read, the destination blob and it's container, the client to communicate with Azure storage and the number of parallel go-routines to use for upload.
Types ¶
type AccessProperties ¶
type AccessProperties struct {
Output AccessURIOutput
}
type AccessURI ¶
type AccessURI struct { Name string Properties AccessProperties }
type AccessURIOutput ¶
type AccessURIOutput struct {
AccessSas string
}
type AccountKeys ¶
type AccountProperties ¶
type AccountProperties struct { //classic ClassicStorageProperties //normal PrimaryEndpoints PrimaryEndpoints `json:"primaryEndpoints,omitempty"` ProvisioningState string PrimaryLocation string SecondaryLocation string //CreationTime time.Time AccessTier string `json:"accessTier,omitempty"` EnableHTTPSTrafficOnly *bool `json:"supportsHttpsTrafficOnly,omitempty"` IsHnsEnabled bool `json:"isHnsEnabled,omitempty"` AzureFilesAadIntegration bool `json:"azureFilesAadIntegration,omitempty"` }
type AddressSpace ¶
type AddressSpace struct {
AddressPrefixes []string `json:"addressPrefixes,omitempty"`
}
type AzureError ¶
type AzureError struct { Code string `json:"code,omitempty"` Details []AzureErrorDetail `json:"details,omitempty"` Message string `json:"message,omitempty"` }
type AzureErrorDetail ¶
type Capabilitie ¶
type ClassicAddressSpace ¶
type ClassicAddressSpace struct {
AddressPrefixes []string
}
type ClassicDisk ¶
type ClassicEipProperties ¶
type ClassicEipProperties struct { IpAddress string `json:"ipAddress,omitempty"` Status string `json:"status,omitempty"` ProvisioningState string `json:"provisioningState,omitempty"` InUse bool `json:"inUse,omitempty"` AttachedTo *SubResource `joson:"attachedTo,omitempty"` }
type ClassicHardwareProfile ¶
type ClassicInstanceDisk ¶
type ClassicInstanceDisk struct { Properties ClassicInstanceDiskProperties ID string Name string Type string }
type ClassicNetworkProfile ¶
type ClassicNetworkProfile struct { InputEndpoints *[]InputEndpoint `json:"inputEndpoints,omitempty"` InstanceIps *[]InstanceIp `json:"instanceIps,omitempty"` ReservedIps *[]SubResource `json:"reservedIps,omitempty"` VirtualNetwork ClassicVirtualNetwork `json:"virtualNetwork,omitempty"` NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` }
type ClassicSecurityGroupRuleProperties ¶
type ClassicSecurityGroupRuleProperties struct { State string Protocol string SourcePortRange string DestinationPortRange string SourceAddressPrefix string DestinationAddressPrefix string Action string Priority uint32 Type string IsDefault bool }
func (*ClassicSecurityGroupRuleProperties) String ¶
func (self *ClassicSecurityGroupRuleProperties) String() string
type ClassicSecurityRulesSet ¶
type ClassicSecurityRulesSet []SClassicSecurityGroupRule
func (ClassicSecurityRulesSet) Len ¶
func (v ClassicSecurityRulesSet) Len() int
func (ClassicSecurityRulesSet) Less ¶
func (v ClassicSecurityRulesSet) Less(i, j int) bool
func (ClassicSecurityRulesSet) Swap ¶
func (v ClassicSecurityRulesSet) Swap(i, j int)
type ClassicStorageProfile ¶
type ClassicStorageProfile struct { OperatingSystemDisk ClassicDisk `json:"operatingSystemDisk,omitempty"` DataDisks *[]ClassicDisk `json:"aataDisks,omitempty"` }
type ClassicSubnet ¶
type ClassicVMSize ¶
type ClassicVirtualMachineInstanceView ¶
type ClassicVirtualMachineInstanceView struct { Status string `json:"status,omitempty"` PowerState string `json:"powerState,omitempty"` PublicIpAddresses []string `json:"publicIpAddresses,omitempty"` FullyQualifiedDomainName string `json:"fullyQualifiedDomainName,omitempty"` UpdateDomain int FaultDomain int StatusMessage string PrivateIpAddress string `json:"privateIpAddress,omitempty"` InstanceIpAddresses []string `json:"instanceIpAddresses,omitempty"` ComputerName string `json:"computerName,omitempty"` GuestAgentStatus GuestAgentStatus `json:"guestAgentStatus,omitempty"` }
type ClassicVirtualMachineProperties ¶
type ClassicVirtualMachineProperties struct { InstanceView *ClassicVirtualMachineInstanceView `json:"instanceView,omitempty"` NetworkProfile ClassicNetworkProfile `json:"networkProfile,omitempty"` HardwareProfile ClassicHardwareProfile `json:"hardwareProfile,omitempty"` StorageProfile ClassicStorageProfile `json:"storageProfile,omitempty"` }
type ClassicVirtualNetwork ¶
type ClassicVpcProperties ¶
type ClassicVpcProperties struct { ProvisioningState string Status string SiteId string InUse bool AddressSpace ClassicAddressSpace Subnets []SClassicNetwork }
type CreationData ¶
type CreationData struct { CreateOption string `json:"createOption,omitempty"` StorageAccountID string ImageReference *ImageDiskReference `json:"imageReference,omitempty"` SourceURI string `json:"sourceUri,omitempty"` SourceResourceID string `json:"sourceResourceId,omitempty"` }
type DataDisk ¶
type DataDisk struct { Lun int32 Name string `json:"name,omitempty"` DiskName string `json:"diskName,omitempty"` Vhd *VirtualHardDisk `json:"vhd,omitempty"` Caching string `json:"caching,omitempty"` DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` IoType string `json:"ioType,omitempty"` CreateOption string `json:"createOption,omitempty"` ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` VhdUri string `json:"vhdUri,omitempty"` StorageAccount *SubResource `json:"storageAccount,omitempty"` }
type DataDisks ¶
type DataDisks []ImageDataDisk
type DataWithRange ¶
type DataWithRange struct { Range *common.IndexRange Data []byte }
type DebugProfile ¶
type DiskProperties ¶
type DiskProperties struct { //TimeCreated time.Time //??? 序列化出错? OsType string `json:"osType,omitempty"` CreationData CreationData `json:"creationData,omitempty"` DiskSizeGB int32 `json:"diskSizeGB,omitempty"` ProvisioningState string `json:"provisioningState,omitempty"` DiskState string `json:"diskState,omitempty"` }
type DiskUploadContext ¶
type DiskUploadContext struct { VhdStream *diskstream.DiskStream // The stream whose ranges needs to be uploaded AlreadyProcessedBytes int64 // The size in bytes already uploaded UploadableRanges []*common.IndexRange // The subset of stream ranges to be uploaded BlobServiceClient storage.BlobStorageClient // The client to make Azure blob service API calls ContainerName string // The container in which page blob resides BlobName string // The destination page blob name Parallelism int // The number of concurrent goroutines to be used for upload Resume bool // Indicate whether this is a new or resuming upload MD5Hash []byte // MD5Hash to be set in the page blob properties once upload finishes }
type DomainName ¶
type FormattedMessage ¶
type GroupProperties ¶
type GroupProperties struct {
ProvisioningState string
}
type GuestAgentStatus ¶
type HardwareProfile ¶
type HardwareProfile struct {
VMSize string `json:"vmSize,omitempty"`
}
type IPConfiguration ¶
type IPConfigurationPropertiesFormat ¶
type IPConfigurationPropertiesFormat struct {
PrivateIPAddress string
}
type ImageDataDisk ¶
type ImageDataDisk struct { Lun int32 Snapshot SubResource ManagedDisk SubResource BlobURI string Caching string DiskSizeGB int32 StorageAccountType string }
type ImageDiskReference ¶
type ImageOSDisk ¶
type ImageOSDisk struct { OsType string `json:"osType,omitempty"` OsState string `json:"osState,omitempty"` Snapshot *SubResource `json:"snapshot,omitempty"` ManagedDisk *SubResource BlobURI string `json:"blobUri,omitempty"` Caching string `json:"caching,omitempty"` DiskSizeGB int32 `json:"diskSizeGB,omitempty"` StorageAccountType string `json:"storageAccountType,omitempty"` }
type ImageProperties ¶
type ImageProperties struct { SourceVirtualMachine *SubResource StorageProfile ImageStorageProfile `json:"storageProfile,omitempty"` ProvisioningState ImageStatusType }
type ImageReference ¶
type ImageStatusType ¶
type ImageStatusType string
const ( ImageStatusCreating ImageStatusType = "Creating" ImageStatusAvailable ImageStatusType = "Succeeded" ImageStatusUnAvailable ImageStatusType = "UnAvailable" ImageStatusCreateFailed ImageStatusType = "CreateFailed" )
type ImageStorageProfile ¶
type ImageStorageProfile struct { OsDisk ImageOSDisk `json:"osDisk,omitempty"` DataDisks *DataDisks ZoneResilient *bool }
type InputEndpoint ¶
type InstanceIp ¶
type InstanceViewStatus ¶
type InterfaceIPConfiguration ¶
type InterfaceIPConfiguration struct { Properties InterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` Name string ID string }
type InterfaceIPConfigurationPropertiesFormat ¶
type InterfaceIPConfigurationPropertiesFormat struct { PrivateIPAddress string `json:"privateIPAddress,omitempty"` PrivateIPAddressVersion string `json:"privateIPAddressVersion,omitempty"` PrivateIPAllocationMethod string `json:"privateIPAllocationMethod,omitempty"` Subnet Subnet `json:"subnet,omitempty"` Primary *bool `json:"primary,omitempty"` PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` }
type InterfacePropertiesFormat ¶
type InterfacePropertiesFormat struct { NetworkSecurityGroup *SSecurityGroup `json:"networkSecurityGroup,omitempty"` IPConfigurations []InterfaceIPConfiguration `json:"ipConfigurations,omitempty"` MacAddress string `json:"aacAddress,omitempty"` Primary *bool `json:"primary,omitempty"` VirtualMachine *SubResource `json:"virtualMachine,omitempty"` }
type LinuxConfiguration ¶
type LinuxConfiguration struct { DisablePasswordAuthentication bool `json:"disablePasswordAuthentication,omitempty"` SSH *SSHConfiguration `json:"ssh,omitempty"` }
type ManagedDiskParameters ¶
type NetworkInterfaceReference ¶
type NetworkInterfaceReference struct {
ID string
}
type NetworkProfile ¶
type NetworkProfile struct {
NetworkInterfaces []NetworkInterfaceReference `json:"networkInterfaces,omitempty"`
}
type OSDisk ¶
type OSDisk struct { OsType string `json:"osType,omitempty"` Caching string `json:"caching,omitempty"` Name string DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` CreateOption string `json:"createOption,omitempty"` Vhd *VirtualHardDisk `json:"vhd,omitempty"` }
type OperatingSystemStateTypes ¶
type OperatingSystemStateTypes string
type OsProfile ¶
type OsProfile struct { ComputerName string `json:"computerName,omitempty"` AdminUsername string `json:"adminUsername,omitempty"` AdminPassword string `json:"adminPassword,omitempty"` CustomData string `json:"customData,omitempty"` LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` Secrets []VaultSecretGroup `json:"secrets,omitempty"` }
type PrimaryEndpoints ¶
type PublicIPAddress ¶
type PublicIPAddress struct { ID string Name string Location string Properties PublicIPAddressPropertiesFormat }
type PublicIPAddressPropertiesFormat ¶
type PublicIPAddressPropertiesFormat struct { PublicIPAddressVersion string `json:"publicIPAddressVersion,omitempty"` IPAddress string `json:"ipAddress,omitempty"` PublicIPAllocationMethod string `json:"publicIPAllocationMethod,omitempty"` ProvisioningState string `json:"provisioningState,omitempty"` IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` }
type PublicIPAddressSku ¶
type PublicIPAddressSku struct {
Name string
}
type ResourceType ¶
type SAccountBalance ¶
type SAzureClient ¶
type SAzureClient struct {
// contains filtered or unexported fields
}
func NewAzureClient ¶
func (*SAzureClient) CheckNameAvailability ¶
func (self *SAzureClient) CheckNameAvailability(Type string, body string) (jsonutils.JSONObject, error)
func (*SAzureClient) Create ¶
func (self *SAzureClient) Create(body jsonutils.JSONObject, retVal interface{}) error
func (*SAzureClient) Delete ¶
func (self *SAzureClient) Delete(resourceId string) error
func (*SAzureClient) Get ¶
func (self *SAzureClient) Get(resourceId string, params []string, retVal interface{}) error
func (*SAzureClient) GetIHostById ¶
func (self *SAzureClient) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SAzureClient) GetIRegionById ¶
func (self *SAzureClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
func (*SAzureClient) GetIRegions ¶
func (self *SAzureClient) GetIRegions() []cloudprovider.ICloudRegion
func (*SAzureClient) GetIStorageById ¶
func (self *SAzureClient) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SAzureClient) GetIStoragecacheById ¶
func (self *SAzureClient) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
func (*SAzureClient) GetIVpcById ¶
func (self *SAzureClient) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
func (*SAzureClient) GetRegion ¶
func (self *SAzureClient) GetRegion(regionId string) *SRegion
func (*SAzureClient) GetRegions ¶
func (self *SAzureClient) GetRegions() []SRegion
func (*SAzureClient) GetSubAccounts ¶
func (self *SAzureClient) GetSubAccounts() (jsonutils.JSONObject, error)
func (*SAzureClient) List ¶
func (self *SAzureClient) List(golbalResource string, retVal interface{}) error
func (*SAzureClient) ListAll ¶
func (self *SAzureClient) ListAll(resourceType string, retVal interface{}) error
func (*SAzureClient) ListByTypeWithResourceGroup ¶
func (self *SAzureClient) ListByTypeWithResourceGroup(resourceGroupName string, Type string, retVal interface{}) error
func (*SAzureClient) ListClassicDisks ¶
func (self *SAzureClient) ListClassicDisks() (jsonutils.JSONObject, error)
func (*SAzureClient) ListSubscriptions ¶
func (self *SAzureClient) ListSubscriptions() (jsonutils.JSONObject, error)
func (*SAzureClient) ListVmSizes ¶
func (self *SAzureClient) ListVmSizes(location string) (jsonutils.JSONObject, error)
func (*SAzureClient) PerformAction ¶
func (self *SAzureClient) PerformAction(resourceId string, action string, body string) (jsonutils.JSONObject, error)
func (*SAzureClient) QueryAccountBalance ¶
func (self *SAzureClient) QueryAccountBalance() (*SAccountBalance, error)
func (*SAzureClient) Update ¶
func (self *SAzureClient) Update(body jsonutils.JSONObject, retVal interface{}) error
func (*SAzureClient) UpdateAccount ¶
func (self *SAzureClient) UpdateAccount(tenantId, secret, envName string) error
type SClassicDisk ¶
type SClassicDisk struct { DiskName string Caching string OperatingSystem string IoType string DiskSizeGB int32 DiskSize int32 CreatedTime string SourceImageName string VhdUri string StorageAccount SubResource // contains filtered or unexported fields }
func (*SClassicDisk) CreateISnapshot ¶
func (self *SClassicDisk) CreateISnapshot(name, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SClassicDisk) Delete ¶
func (self *SClassicDisk) Delete() error
func (*SClassicDisk) GetBillingType ¶
func (self *SClassicDisk) GetBillingType() string
func (*SClassicDisk) GetCacheMode ¶
func (self *SClassicDisk) GetCacheMode() string
func (*SClassicDisk) GetDiskFormat ¶
func (self *SClassicDisk) GetDiskFormat() string
func (*SClassicDisk) GetDiskSizeMB ¶
func (self *SClassicDisk) GetDiskSizeMB() int
func (*SClassicDisk) GetDiskType ¶
func (self *SClassicDisk) GetDiskType() string
func (*SClassicDisk) GetDriver ¶
func (self *SClassicDisk) GetDriver() string
func (*SClassicDisk) GetExpiredAt ¶
func (self *SClassicDisk) GetExpiredAt() time.Time
func (*SClassicDisk) GetFsFormat ¶
func (self *SClassicDisk) GetFsFormat() string
func (*SClassicDisk) GetGlobalId ¶
func (self *SClassicDisk) GetGlobalId() string
func (*SClassicDisk) GetISnapshot ¶
func (self *SClassicDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
func (*SClassicDisk) GetISnapshots ¶
func (self *SClassicDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SClassicDisk) GetIStorge ¶
func (self *SClassicDisk) GetIStorge() cloudprovider.ICloudStorage
func (*SClassicDisk) GetId ¶
func (self *SClassicDisk) GetId() string
func (*SClassicDisk) GetIsAutoDelete ¶
func (self *SClassicDisk) GetIsAutoDelete() bool
func (*SClassicDisk) GetIsNonPersistent ¶
func (self *SClassicDisk) GetIsNonPersistent() bool
func (*SClassicDisk) GetMetadata ¶
func (self *SClassicDisk) GetMetadata() *jsonutils.JSONDict
func (*SClassicDisk) GetMountpoint ¶
func (self *SClassicDisk) GetMountpoint() string
func (*SClassicDisk) GetName ¶
func (self *SClassicDisk) GetName() string
func (*SClassicDisk) GetStatus ¶
func (self *SClassicDisk) GetStatus() string
func (*SClassicDisk) GetTemplateId ¶
func (self *SClassicDisk) GetTemplateId() string
func (*SClassicDisk) IsEmulated ¶
func (self *SClassicDisk) IsEmulated() bool
func (*SClassicDisk) Refresh ¶
func (self *SClassicDisk) Refresh() error
func (*SClassicDisk) Reset ¶
func (self *SClassicDisk) Reset(snapshotId string) error
func (*SClassicDisk) Resize ¶
func (self *SClassicDisk) Resize(size int64) error
type SClassicEipAddress ¶
type SClassicEipAddress struct { ID string Name string Location string Properties ClassicEipProperties `json:"properties,omitempty"` Type string // contains filtered or unexported fields }
func (*SClassicEipAddress) Associate ¶
func (self *SClassicEipAddress) Associate(instanceId string) error
func (*SClassicEipAddress) ChangeBandwidth ¶
func (self *SClassicEipAddress) ChangeBandwidth(bw int) error
func (*SClassicEipAddress) Delete ¶
func (self *SClassicEipAddress) Delete() error
func (*SClassicEipAddress) Dissociate ¶
func (self *SClassicEipAddress) Dissociate() error
func (*SClassicEipAddress) GetAssociationExternalId ¶
func (self *SClassicEipAddress) GetAssociationExternalId() string
func (*SClassicEipAddress) GetAssociationType ¶
func (self *SClassicEipAddress) GetAssociationType() string
func (*SClassicEipAddress) GetBandwidth ¶
func (self *SClassicEipAddress) GetBandwidth() int
func (*SClassicEipAddress) GetGlobalId ¶
func (self *SClassicEipAddress) GetGlobalId() string
func (*SClassicEipAddress) GetId ¶
func (self *SClassicEipAddress) GetId() string
func (*SClassicEipAddress) GetInternetChargeType ¶
func (self *SClassicEipAddress) GetInternetChargeType() string
func (*SClassicEipAddress) GetIpAddr ¶
func (self *SClassicEipAddress) GetIpAddr() string
func (*SClassicEipAddress) GetManagerId ¶
func (self *SClassicEipAddress) GetManagerId() string
func (*SClassicEipAddress) GetMetadata ¶
func (self *SClassicEipAddress) GetMetadata() *jsonutils.JSONDict
func (*SClassicEipAddress) GetMode ¶
func (self *SClassicEipAddress) GetMode() string
func (*SClassicEipAddress) GetName ¶
func (self *SClassicEipAddress) GetName() string
func (*SClassicEipAddress) GetStatus ¶
func (self *SClassicEipAddress) GetStatus() string
func (*SClassicEipAddress) IsEmulated ¶
func (self *SClassicEipAddress) IsEmulated() bool
func (*SClassicEipAddress) Refresh ¶
func (self *SClassicEipAddress) Refresh() error
type SClassicHost ¶
type SClassicHost struct {
// contains filtered or unexported fields
}
func (*SClassicHost) GetAccessIp ¶
func (self *SClassicHost) GetAccessIp() string
func (*SClassicHost) GetAccessMac ¶
func (self *SClassicHost) GetAccessMac() string
func (*SClassicHost) GetCpuCount ¶
func (self *SClassicHost) GetCpuCount() int8
func (*SClassicHost) GetCpuDesc ¶
func (self *SClassicHost) GetCpuDesc() string
func (*SClassicHost) GetCpuMhz ¶
func (self *SClassicHost) GetCpuMhz() int
func (*SClassicHost) GetEnabled ¶
func (self *SClassicHost) GetEnabled() bool
func (*SClassicHost) GetGlobalId ¶
func (self *SClassicHost) GetGlobalId() string
func (*SClassicHost) GetHostStatus ¶
func (self *SClassicHost) GetHostStatus() string
func (*SClassicHost) GetHostType ¶
func (self *SClassicHost) GetHostType() string
func (*SClassicHost) GetIStorageById ¶
func (self *SClassicHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SClassicHost) GetIStorages ¶
func (self *SClassicHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SClassicHost) GetIVMById ¶
func (self *SClassicHost) GetIVMById(instanceId string) (cloudprovider.ICloudVM, error)
func (*SClassicHost) GetIVMs ¶
func (self *SClassicHost) GetIVMs() ([]cloudprovider.ICloudVM, error)
func (*SClassicHost) GetIWires ¶
func (self *SClassicHost) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SClassicHost) GetId ¶
func (self *SClassicHost) GetId() string
func (*SClassicHost) GetManagerId ¶
func (self *SClassicHost) GetManagerId() string
func (*SClassicHost) GetMemSizeMB ¶
func (self *SClassicHost) GetMemSizeMB() int
func (*SClassicHost) GetMetadata ¶
func (self *SClassicHost) GetMetadata() *jsonutils.JSONDict
func (*SClassicHost) GetName ¶
func (self *SClassicHost) GetName() string
func (*SClassicHost) GetNodeCount ¶
func (self *SClassicHost) GetNodeCount() int8
func (*SClassicHost) GetSN ¶
func (self *SClassicHost) GetSN() string
func (*SClassicHost) GetStatus ¶
func (self *SClassicHost) GetStatus() string
func (*SClassicHost) GetStorageSizeMB ¶
func (self *SClassicHost) GetStorageSizeMB() int
func (*SClassicHost) GetStorageType ¶
func (self *SClassicHost) GetStorageType() string
func (*SClassicHost) GetSysInfo ¶
func (self *SClassicHost) GetSysInfo() jsonutils.JSONObject
func (*SClassicHost) IsEmulated ¶
func (self *SClassicHost) IsEmulated() bool
func (*SClassicHost) Refresh ¶
func (self *SClassicHost) Refresh() error
type SClassicInstance ¶
type SClassicInstance struct { Properties ClassicVirtualMachineProperties `json:"properties,omitempty"` ID string Name string Type string Location string // contains filtered or unexported fields }
func (*SClassicInstance) AttachDisk ¶
func (self *SClassicInstance) AttachDisk(diskId string) error
func (*SClassicInstance) ChangeConfig ¶
func (self *SClassicInstance) ChangeConfig(instanceId string, ncpu int, vmem int) error
func (*SClassicInstance) DeleteVM ¶
func (self *SClassicInstance) DeleteVM() error
func (*SClassicInstance) DetachDisk ¶
func (self *SClassicInstance) DetachDisk(diskId string) error
func (*SClassicInstance) GetBillingType ¶
func (self *SClassicInstance) GetBillingType() string
func (*SClassicInstance) GetBios ¶
func (self *SClassicInstance) GetBios() string
func (*SClassicInstance) GetBootOrder ¶
func (self *SClassicInstance) GetBootOrder() string
func (*SClassicInstance) GetCreateTime ¶
func (self *SClassicInstance) GetCreateTime() time.Time
func (*SClassicInstance) GetExpiredAt ¶
func (self *SClassicInstance) GetExpiredAt() time.Time
func (*SClassicInstance) GetGlobalId ¶
func (self *SClassicInstance) GetGlobalId() string
func (*SClassicInstance) GetHypervisor ¶
func (self *SClassicInstance) GetHypervisor() string
func (*SClassicInstance) GetIDisks ¶
func (self *SClassicInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SClassicInstance) GetIEIP ¶
func (self *SClassicInstance) GetIEIP() (cloudprovider.ICloudEIP, error)
func (*SClassicInstance) GetIHost ¶
func (self *SClassicInstance) GetIHost() cloudprovider.ICloudHost
func (*SClassicInstance) GetINics ¶
func (self *SClassicInstance) GetINics() ([]cloudprovider.ICloudNic, error)
func (*SClassicInstance) GetId ¶
func (self *SClassicInstance) GetId() string
func (*SClassicInstance) GetMachine ¶
func (self *SClassicInstance) GetMachine() string
func (*SClassicInstance) GetMetadata ¶
func (self *SClassicInstance) GetMetadata() *jsonutils.JSONDict
func (*SClassicInstance) GetName ¶
func (self *SClassicInstance) GetName() string
func (*SClassicInstance) GetOSName ¶
func (self *SClassicInstance) GetOSName() string
func (*SClassicInstance) GetOSType ¶
func (self *SClassicInstance) GetOSType() string
func (*SClassicInstance) GetStatus ¶
func (self *SClassicInstance) GetStatus() string
func (*SClassicInstance) GetVNCInfo ¶
func (self *SClassicInstance) GetVNCInfo() (jsonutils.JSONObject, error)
func (*SClassicInstance) GetVcpuCount ¶
func (self *SClassicInstance) GetVcpuCount() int8
func (*SClassicInstance) GetVdi ¶
func (self *SClassicInstance) GetVdi() string
func (*SClassicInstance) GetVga ¶
func (self *SClassicInstance) GetVga() string
func (*SClassicInstance) GetVmemSizeMB ¶
func (self *SClassicInstance) GetVmemSizeMB() int
func (*SClassicInstance) IsEmulated ¶
func (self *SClassicInstance) IsEmulated() bool
func (*SClassicInstance) RebuildRoot ¶
func (*SClassicInstance) Refresh ¶
func (self *SClassicInstance) Refresh() error
func (*SClassicInstance) StartVM ¶
func (self *SClassicInstance) StartVM() error
func (*SClassicInstance) StopVM ¶
func (self *SClassicInstance) StopVM(isForce bool) error
func (*SClassicInstance) SyncSecurityGroup ¶
func (self *SClassicInstance) SyncSecurityGroup(secgroupId string, name string, rules []secrules.SecurityRule) error
func (*SClassicInstance) UpdateVM ¶
func (self *SClassicInstance) UpdateVM(name string) error
type SClassicInstanceNic ¶
type SClassicInstanceNic struct { ID string IP string Name string Type string Location string // contains filtered or unexported fields }
func (*SClassicInstanceNic) Delete ¶
func (self *SClassicInstanceNic) Delete() error
func (*SClassicInstanceNic) GetDriver ¶
func (self *SClassicInstanceNic) GetDriver() string
func (*SClassicInstanceNic) GetINetwork ¶
func (self *SClassicInstanceNic) GetINetwork() cloudprovider.ICloudNetwork
func (*SClassicInstanceNic) GetIP ¶
func (self *SClassicInstanceNic) GetIP() string
func (*SClassicInstanceNic) GetMAC ¶
func (self *SClassicInstanceNic) GetMAC() string
type SClassicNetwork ¶
type SClassicNetwork struct { Name string AddressPrefix string `json:"addressPrefix,omitempty"` // contains filtered or unexported fields }
func (*SClassicNetwork) Delete ¶
func (self *SClassicNetwork) Delete() error
func (*SClassicNetwork) GetAllocTimeoutSeconds ¶
func (self *SClassicNetwork) GetAllocTimeoutSeconds() int
func (*SClassicNetwork) GetGateway ¶
func (self *SClassicNetwork) GetGateway() string
func (*SClassicNetwork) GetGlobalId ¶
func (self *SClassicNetwork) GetGlobalId() string
func (*SClassicNetwork) GetIWire ¶
func (self *SClassicNetwork) GetIWire() cloudprovider.ICloudWire
func (*SClassicNetwork) GetId ¶
func (self *SClassicNetwork) GetId() string
func (*SClassicNetwork) GetIpEnd ¶
func (self *SClassicNetwork) GetIpEnd() string
func (*SClassicNetwork) GetIpMask ¶
func (self *SClassicNetwork) GetIpMask() int8
func (*SClassicNetwork) GetIpStart ¶
func (self *SClassicNetwork) GetIpStart() string
func (*SClassicNetwork) GetIsPublic ¶
func (self *SClassicNetwork) GetIsPublic() bool
func (*SClassicNetwork) GetMetadata ¶
func (self *SClassicNetwork) GetMetadata() *jsonutils.JSONDict
func (*SClassicNetwork) GetName ¶
func (self *SClassicNetwork) GetName() string
func (*SClassicNetwork) GetServerType ¶
func (self *SClassicNetwork) GetServerType() string
func (*SClassicNetwork) GetStatus ¶
func (self *SClassicNetwork) GetStatus() string
func (*SClassicNetwork) IsEmulated ¶
func (self *SClassicNetwork) IsEmulated() bool
func (*SClassicNetwork) Refresh ¶
func (self *SClassicNetwork) Refresh() error
type SClassicSecurityGroup ¶
type SClassicSecurityGroup struct { Properties *SecurityGroupPropertiesFormat `json:"properties,omitempty"` ID string Name string Location string Type string Tags map[string]string // contains filtered or unexported fields }
func (*SClassicSecurityGroup) GetDescription ¶
func (self *SClassicSecurityGroup) GetDescription() string
func (*SClassicSecurityGroup) GetGlobalId ¶
func (self *SClassicSecurityGroup) GetGlobalId() string
func (*SClassicSecurityGroup) GetId ¶
func (self *SClassicSecurityGroup) GetId() string
func (*SClassicSecurityGroup) GetMetadata ¶
func (self *SClassicSecurityGroup) GetMetadata() *jsonutils.JSONDict
func (*SClassicSecurityGroup) GetName ¶
func (self *SClassicSecurityGroup) GetName() string
func (*SClassicSecurityGroup) GetRules ¶
func (self *SClassicSecurityGroup) GetRules() ([]secrules.SecurityRule, error)
func (*SClassicSecurityGroup) GetStatus ¶
func (self *SClassicSecurityGroup) GetStatus() string
func (*SClassicSecurityGroup) IsEmulated ¶
func (self *SClassicSecurityGroup) IsEmulated() bool
func (*SClassicSecurityGroup) Refresh ¶
func (self *SClassicSecurityGroup) Refresh() error
type SClassicSecurityGroupRule ¶
type SClassicSecurityGroupRule struct { Properties ClassicSecurityGroupRuleProperties `json:"properties,omitempty"` ID string Name string Type string }
type SClassicSnapshot ¶
type SClassicSnapshot struct { Name string // contains filtered or unexported fields }
func (*SClassicSnapshot) Delete ¶
func (self *SClassicSnapshot) Delete() error
func (*SClassicSnapshot) GetDiskId ¶
func (self *SClassicSnapshot) GetDiskId() string
func (*SClassicSnapshot) GetDiskType ¶
func (self *SClassicSnapshot) GetDiskType() string
func (*SClassicSnapshot) GetGlobalId ¶
func (self *SClassicSnapshot) GetGlobalId() string
func (*SClassicSnapshot) GetId ¶
func (self *SClassicSnapshot) GetId() string
func (*SClassicSnapshot) GetManagerId ¶
func (self *SClassicSnapshot) GetManagerId() string
func (*SClassicSnapshot) GetMetadata ¶
func (self *SClassicSnapshot) GetMetadata() *jsonutils.JSONDict
func (*SClassicSnapshot) GetName ¶
func (self *SClassicSnapshot) GetName() string
func (*SClassicSnapshot) GetRegionId ¶
func (self *SClassicSnapshot) GetRegionId() string
func (*SClassicSnapshot) GetSize ¶
func (self *SClassicSnapshot) GetSize() int32
func (*SClassicSnapshot) GetStatus ¶
func (self *SClassicSnapshot) GetStatus() string
func (*SClassicSnapshot) IsEmulated ¶
func (self *SClassicSnapshot) IsEmulated() bool
func (*SClassicSnapshot) Refresh ¶
func (self *SClassicSnapshot) Refresh() error
type SClassicStorage ¶
type SClassicStorage struct { Properties ClassicStorageProperties Name string ID string Type string Location string // contains filtered or unexported fields }
func (*SClassicStorage) CreateIDisk ¶
func (self *SClassicStorage) CreateIDisk(name string, sizeGb int, desc string) (cloudprovider.ICloudDisk, error)
func (*SClassicStorage) GetCapacityMB ¶
func (self *SClassicStorage) GetCapacityMB() int
func (*SClassicStorage) GetEnabled ¶
func (self *SClassicStorage) GetEnabled() bool
func (*SClassicStorage) GetGlobalId ¶
func (self *SClassicStorage) GetGlobalId() string
func (*SClassicStorage) GetIDisk ¶
func (self *SClassicStorage) GetIDisk(diskId string) (cloudprovider.ICloudDisk, error)
func (*SClassicStorage) GetIDisks ¶
func (self *SClassicStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SClassicStorage) GetIStoragecache ¶
func (self *SClassicStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SClassicStorage) GetIZone ¶
func (self *SClassicStorage) GetIZone() cloudprovider.ICloudZone
func (*SClassicStorage) GetId ¶
func (self *SClassicStorage) GetId() string
func (*SClassicStorage) GetManagerId ¶
func (self *SClassicStorage) GetManagerId() string
func (*SClassicStorage) GetMediumType ¶
func (self *SClassicStorage) GetMediumType() string
func (*SClassicStorage) GetMetadata ¶
func (self *SClassicStorage) GetMetadata() *jsonutils.JSONDict
func (*SClassicStorage) GetName ¶
func (self *SClassicStorage) GetName() string
func (*SClassicStorage) GetStatus ¶
func (self *SClassicStorage) GetStatus() string
func (*SClassicStorage) GetStorageConf ¶
func (self *SClassicStorage) GetStorageConf() jsonutils.JSONObject
func (*SClassicStorage) GetStorageType ¶
func (self *SClassicStorage) GetStorageType() string
func (*SClassicStorage) IsEmulated ¶
func (self *SClassicStorage) IsEmulated() bool
func (*SClassicStorage) Refresh ¶
func (self *SClassicStorage) Refresh() error
type SClassicVpc ¶
type SClassicVpc struct { ID string Name string Type string Location string Properties ClassicVpcProperties // contains filtered or unexported fields }
func (*SClassicVpc) Delete ¶
func (self *SClassicVpc) Delete() error
func (*SClassicVpc) GetCidrBlock ¶
func (self *SClassicVpc) GetCidrBlock() string
func (*SClassicVpc) GetGlobalId ¶
func (self *SClassicVpc) GetGlobalId() string
func (*SClassicVpc) GetISecurityGroups ¶
func (self *SClassicVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SClassicVpc) GetIWireById ¶
func (self *SClassicVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
func (*SClassicVpc) GetIWires ¶
func (self *SClassicVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SClassicVpc) GetId ¶
func (self *SClassicVpc) GetId() string
func (*SClassicVpc) GetIsDefault ¶
func (self *SClassicVpc) GetIsDefault() bool
func (*SClassicVpc) GetManagerId ¶
func (self *SClassicVpc) GetManagerId() string
func (*SClassicVpc) GetMetadata ¶
func (self *SClassicVpc) GetMetadata() *jsonutils.JSONDict
func (*SClassicVpc) GetName ¶
func (self *SClassicVpc) GetName() string
func (*SClassicVpc) GetNetworks ¶
func (self *SClassicVpc) GetNetworks() []SClassicNetwork
func (*SClassicVpc) GetRegion ¶
func (self *SClassicVpc) GetRegion() cloudprovider.ICloudRegion
func (*SClassicVpc) GetStatus ¶
func (self *SClassicVpc) GetStatus() string
func (*SClassicVpc) IsEmulated ¶
func (self *SClassicVpc) IsEmulated() bool
func (*SClassicVpc) Refresh ¶
func (self *SClassicVpc) Refresh() error
func (*SClassicVpc) SyncSecurityGroup ¶
func (self *SClassicVpc) SyncSecurityGroup(tag string, name string, rules []secrules.SecurityRule) (string, error)
type SClassicWire ¶
type SClassicWire struct {
// contains filtered or unexported fields
}
func (*SClassicWire) CreateINetwork ¶
func (self *SClassicWire) CreateINetwork(name string, cidr string, desc string) (cloudprovider.ICloudNetwork, error)
func (*SClassicWire) GetBandwidth ¶
func (self *SClassicWire) GetBandwidth() int
func (*SClassicWire) GetGlobalId ¶
func (self *SClassicWire) GetGlobalId() string
func (*SClassicWire) GetINetworkById ¶
func (self *SClassicWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)
func (*SClassicWire) GetINetworks ¶
func (self *SClassicWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
func (*SClassicWire) GetIVpc ¶
func (self *SClassicWire) GetIVpc() cloudprovider.ICloudVpc
func (*SClassicWire) GetIZone ¶
func (self *SClassicWire) GetIZone() cloudprovider.ICloudZone
func (*SClassicWire) GetId ¶
func (self *SClassicWire) GetId() string
func (*SClassicWire) GetMetadata ¶
func (self *SClassicWire) GetMetadata() *jsonutils.JSONDict
func (*SClassicWire) GetName ¶
func (self *SClassicWire) GetName() string
func (*SClassicWire) GetStatus ¶
func (self *SClassicWire) GetStatus() string
func (*SClassicWire) IsEmulated ¶
func (self *SClassicWire) IsEmulated() bool
func (*SClassicWire) Refresh ¶
func (self *SClassicWire) Refresh() error
type SContainer ¶
type SContainer struct { Name string // contains filtered or unexported fields }
func (*SContainer) CopySnapshot ¶
func (self *SContainer) CopySnapshot(snapshotId, fileName string) (*storage.Blob, error)
func (*SContainer) Delete ¶
func (self *SContainer) Delete(fileName string) error
func (*SContainer) UploadFile ¶
func (self *SContainer) UploadFile(filePath string) (string, error)
type SDisk ¶
type SDisk struct { ManagedBy string `json:"managedBy,omitempty"` Sku DiskSku `json:"sku,omitempty"` Zones []string `json:"zones,omitempty"` ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Location string `json:"location,omitempty"` Properties DiskProperties `json:"properties,omitempty"` Tags map[string]string `json:"tags,omitempty"` // contains filtered or unexported fields }
func (*SDisk) CreateISnapshot ¶
func (self *SDisk) CreateISnapshot(name, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetBillingType ¶
func (*SDisk) GetCacheMode ¶
func (*SDisk) GetDiskFormat ¶
func (*SDisk) GetDiskSizeMB ¶
func (*SDisk) GetDiskType ¶
func (*SDisk) GetExpiredAt ¶
func (*SDisk) GetFsFormat ¶
func (*SDisk) GetGlobalId ¶
func (*SDisk) GetISnapshot ¶
func (self *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetISnapshots ¶
func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetIStorge ¶
func (self *SDisk) GetIStorge() cloudprovider.ICloudStorage
func (*SDisk) GetIsAutoDelete ¶
func (*SDisk) GetIsNonPersistent ¶
func (*SDisk) GetMetadata ¶
func (*SDisk) GetMountpoint ¶
func (*SDisk) GetSnapshotDetail ¶
func (*SDisk) GetTemplateId ¶
func (*SDisk) IsEmulated ¶
type SEipAddress ¶
type SEipAddress struct { ID string Name string Location string Properties PublicIPAddressPropertiesFormat `json:"properties,omitempty"` Type string Sku *PublicIPAddressSku // contains filtered or unexported fields }
func (*SEipAddress) Associate ¶
func (self *SEipAddress) Associate(instanceId string) error
func (*SEipAddress) ChangeBandwidth ¶
func (self *SEipAddress) ChangeBandwidth(bw int) error
func (*SEipAddress) Delete ¶
func (self *SEipAddress) Delete() error
func (*SEipAddress) Dissociate ¶
func (self *SEipAddress) Dissociate() error
func (*SEipAddress) GetAssociationExternalId ¶
func (self *SEipAddress) GetAssociationExternalId() string
func (*SEipAddress) GetAssociationType ¶
func (self *SEipAddress) GetAssociationType() string
func (*SEipAddress) GetBandwidth ¶
func (self *SEipAddress) GetBandwidth() int
func (*SEipAddress) GetGlobalId ¶
func (self *SEipAddress) GetGlobalId() string
func (*SEipAddress) GetId ¶
func (self *SEipAddress) GetId() string
func (*SEipAddress) GetInternetChargeType ¶
func (self *SEipAddress) GetInternetChargeType() string
func (*SEipAddress) GetIpAddr ¶
func (self *SEipAddress) GetIpAddr() string
func (*SEipAddress) GetManagerId ¶
func (self *SEipAddress) GetManagerId() string
func (*SEipAddress) GetMetadata ¶
func (self *SEipAddress) GetMetadata() *jsonutils.JSONDict
func (*SEipAddress) GetMode ¶
func (self *SEipAddress) GetMode() string
func (*SEipAddress) GetName ¶
func (self *SEipAddress) GetName() string
func (*SEipAddress) GetStatus ¶
func (self *SEipAddress) GetStatus() string
func (*SEipAddress) IsEmulated ¶
func (self *SEipAddress) IsEmulated() bool
func (*SEipAddress) Refresh ¶
func (self *SEipAddress) Refresh() error
type SHost ¶
type SHost struct {
// contains filtered or unexported fields
}
func (*SHost) GetAccessIp ¶
func (*SHost) GetAccessMac ¶
func (*SHost) GetCpuCount ¶
func (*SHost) GetCpuDesc ¶
func (*SHost) GetEnabled ¶
func (*SHost) GetGlobalId ¶
func (*SHost) GetHostStatus ¶
func (*SHost) GetHostType ¶
func (*SHost) GetIStorageById ¶
func (self *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SHost) GetIStorages ¶
func (self *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SHost) GetIVMById ¶
func (self *SHost) GetIVMById(instanceId string) (cloudprovider.ICloudVM, error)
func (*SHost) GetIWires ¶
func (self *SHost) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SHost) GetManagerId ¶
func (*SHost) GetMemSizeMB ¶
func (*SHost) GetMetadata ¶
func (*SHost) GetNodeCount ¶
func (*SHost) GetStorageSizeMB ¶
func (*SHost) GetStorageType ¶
func (*SHost) GetSysInfo ¶
func (self *SHost) GetSysInfo() jsonutils.JSONObject
func (*SHost) IsEmulated ¶
type SImage ¶
type SImage struct { Properties ImageProperties `json:"properties,omitempty"` ID string Name string Type string `` Location string // contains filtered or unexported fields }
func (*SImage) GetBlobUri ¶
func (*SImage) GetGlobalId ¶
func (*SImage) GetIStoragecache ¶
func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SImage) GetMetadata ¶
func (*SImage) IsEmulated ¶
type SInstance ¶
type SInstance struct { Properties VirtualMachineProperties ID string Name string Type string Location string Tags map[string]string // contains filtered or unexported fields }
func (*SInstance) AttachDisk ¶
func (*SInstance) ChangeConfig ¶
func (*SInstance) DetachDisk ¶
func (*SInstance) GetBillingType ¶
func (*SInstance) GetBootOrder ¶
func (*SInstance) GetCreateTime ¶
func (*SInstance) GetExpiredAt ¶
func (*SInstance) GetGlobalId ¶
func (*SInstance) GetHypervisor ¶
func (*SInstance) GetIDisks ¶
func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SInstance) GetIHost ¶
func (self *SInstance) GetIHost() cloudprovider.ICloudHost
func (*SInstance) GetMachine ¶
func (*SInstance) GetMetadata ¶
func (*SInstance) GetVNCInfo ¶
func (self *SInstance) GetVNCInfo() (jsonutils.JSONObject, error)
func (*SInstance) GetVcpuCount ¶
func (*SInstance) GetVmemSizeMB ¶
func (*SInstance) IsEmulated ¶
func (*SInstance) RebuildRoot ¶
func (*SInstance) SyncSecurityGroup ¶
type SInstanceNic ¶
type SInstanceNic struct { ID string Name string Type string Location string Properties InterfacePropertiesFormat `json:"properties,omitempty"` // contains filtered or unexported fields }
func (*SInstanceNic) Delete ¶
func (self *SInstanceNic) Delete() error
func (*SInstanceNic) GetDriver ¶
func (self *SInstanceNic) GetDriver() string
func (*SInstanceNic) GetINetwork ¶
func (self *SInstanceNic) GetINetwork() cloudprovider.ICloudNetwork
func (*SInstanceNic) GetIP ¶
func (self *SInstanceNic) GetIP() string
func (*SInstanceNic) GetMAC ¶
func (self *SInstanceNic) GetMAC() string
type SNetwork ¶
type SNetwork struct { AvailableIpAddressCount *int `json:"availableIpAddressCount,omitempty"` ID string Name string Properties SubnetPropertiesFormat AddressPrefix string `json:"addressPrefix,omitempty"` // contains filtered or unexported fields }
func (*SNetwork) GetAllocTimeoutSeconds ¶
func (*SNetwork) GetGateway ¶
func (*SNetwork) GetGlobalId ¶
func (*SNetwork) GetIWire ¶
func (self *SNetwork) GetIWire() cloudprovider.ICloudWire
func (*SNetwork) GetIpStart ¶
func (*SNetwork) GetIsPublic ¶
func (*SNetwork) GetMetadata ¶
func (*SNetwork) GetServerType ¶
func (*SNetwork) IsEmulated ¶
type SRegion ¶
type SRegion struct { ID string SubscriptionID string Name string DisplayName string Latitude float32 Longitude float32 // contains filtered or unexported fields }
func (*SRegion) AllocateEIP ¶
func (region *SRegion) AllocateEIP(eipName string) (*SEipAddress, error)
func (*SRegion) AssiginClassicSecurityGroup ¶
func (*SRegion) AssiginSecurityGroup ¶
func (*SRegion) AssociateEip ¶
func (*SRegion) AttachDisk ¶
func (*SRegion) AttachSecurityToInterfaces ¶
func (*SRegion) ChangeVMConfig ¶
func (*SRegion) CreateClassicSecurityGroup ¶
func (region *SRegion) CreateClassicSecurityGroup(secName, tagId string) (*SClassicSecurityGroup, error)
func (*SRegion) CreateClassicSnapshot ¶
func (self *SRegion) CreateClassicSnapshot(diskId, snapName, desc string) (*SClassicSnapshot, error)
func (*SRegion) CreateDisk ¶
func (*SRegion) CreateIVpc ¶
func (*SRegion) CreateImage ¶
func (*SRegion) CreateImageByBlob ¶
func (*SRegion) CreateInstanceSimple ¶
func (*SRegion) CreateNetworkInterface ¶
func (*SRegion) CreateResourceGroup ¶
func (self *SRegion) CreateResourceGroup(groupName string) (*SResourceGroup, error)
func (*SRegion) CreateSecurityGroup ¶
func (region *SRegion) CreateSecurityGroup(secName string, tagId string) (*SSecurityGroup, error)
func (*SRegion) CreateSnapshot ¶
func (*SRegion) CreateStorageAccount ¶
func (self *SRegion) CreateStorageAccount(storageAccount string) (*SStorageAccount, error)
func (*SRegion) DeallocateEIP ¶
func (*SRegion) DeleteClassicSnapshot ¶
func (*SRegion) DeleteDisk ¶
func (*SRegion) DeleteImage ¶
func (*SRegion) DeleteNetworkInterface ¶
func (*SRegion) DeleteSnapshot ¶
func (*SRegion) DeleteStorageAccount ¶
func (*SRegion) DetachDisk ¶
func (*SRegion) DissociateEip ¶
func (*SRegion) GetClassicDisks ¶
func (self *SRegion) GetClassicDisks() ([]SClassicDisk, error)
func (*SRegion) GetClassicEip ¶
func (region *SRegion) GetClassicEip(eipId string) (*SClassicEipAddress, error)
func (*SRegion) GetClassicEips ¶
func (region *SRegion) GetClassicEips() ([]SClassicEipAddress, error)
func (*SRegion) GetClassicInstance ¶
func (self *SRegion) GetClassicInstance(instanceId string) (*SClassicInstance, error)
func (*SRegion) GetClassicInstances ¶
func (self *SRegion) GetClassicInstances() ([]SClassicInstance, error)
func (*SRegion) GetClassicSecurityGroupDetails ¶
func (region *SRegion) GetClassicSecurityGroupDetails(secgroupId string) (*SClassicSecurityGroup, error)
func (*SRegion) GetClassicSecurityGroups ¶
func (region *SRegion) GetClassicSecurityGroups() ([]SClassicSecurityGroup, error)
func (*SRegion) GetClassicSnapShots ¶
func (region *SRegion) GetClassicSnapShots(diskId string) ([]SClassicSnapshot, error)
func (*SRegion) GetClassicStorageAccounts ¶
func (self *SRegion) GetClassicStorageAccounts() ([]SStorageAccount, error)
func (*SRegion) GetClassicVpc ¶
func (region *SRegion) GetClassicVpc(vpcId string) (*SClassicVpc, error)
func (*SRegion) GetClient ¶
func (self *SRegion) GetClient() *SAzureClient
func (*SRegion) GetEips ¶
func (region *SRegion) GetEips() ([]SEipAddress, error)
func (*SRegion) GetGlobalId ¶
func (*SRegion) GetIEipById ¶
func (region *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)
func (*SRegion) GetIHostById ¶
func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SRegion) GetISnapshotById ¶
func (self *SRegion) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetISnapshots ¶
func (self *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetIStorageById ¶
func (self *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SRegion) GetIStoragecacheById ¶
func (self *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIVpcById ¶
func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
func (*SRegion) GetIZoneById ¶
func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
func (*SRegion) GetIZones ¶
func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
func (*SRegion) GetImageStatus ¶
func (self *SRegion) GetImageStatus(imageId string) (ImageStatusType, error)
func (*SRegion) GetInstance ¶
func (*SRegion) GetInstanceScaleSets ¶
func (*SRegion) GetInstances ¶
func (*SRegion) GetLatitude ¶
func (*SRegion) GetLongitude ¶
func (*SRegion) GetMetadata ¶
func (*SRegion) GetNetworkDetail ¶
func (*SRegion) GetNetworkInterfaceDetail ¶
func (self *SRegion) GetNetworkInterfaceDetail(interfaceId string) (*SInstanceNic, error)
func (*SRegion) GetNetworkInterfaces ¶
func (self *SRegion) GetNetworkInterfaces() ([]SInstanceNic, error)
func (*SRegion) GetProvider ¶
func (*SRegion) GetResourceGroupDetail ¶
func (self *SRegion) GetResourceGroupDetail(groupName string) (*SResourceGroup, error)
func (*SRegion) GetResourceGroups ¶
func (self *SRegion) GetResourceGroups() ([]SResourceGroup, error)
func (*SRegion) GetSecurityGroupDetails ¶
func (region *SRegion) GetSecurityGroupDetails(secgroupId string) (*SSecurityGroup, error)
func (*SRegion) GetSecurityGroups ¶
func (region *SRegion) GetSecurityGroups() ([]SSecurityGroup, error)
func (*SRegion) GetSnapShots ¶
func (*SRegion) GetSnapshotDetail ¶
func (*SRegion) GetStorageAccountDetail ¶
func (self *SRegion) GetStorageAccountDetail(accountId string) (*SStorageAccount, error)
func (*SRegion) GetStorageAccountDisksWithSnapshots ¶
func (self *SRegion) GetStorageAccountDisksWithSnapshots(storageaccount SStorageAccount) ([]SClassicDisk, []SClassicSnapshot, error)
func (*SRegion) GetStorageAccountKey ¶
func (*SRegion) GetStorageAccounts ¶
func (self *SRegion) GetStorageAccounts() ([]SStorageAccount, error)
func (*SRegion) GetStorageAccountsDisksWithSnapshots ¶
func (self *SRegion) GetStorageAccountsDisksWithSnapshots(storageaccounts ...SStorageAccount) ([]SClassicDisk, []SClassicSnapshot, error)
func (*SRegion) GetStorageTypes ¶
func (*SRegion) GetUniqStorageAccountName ¶
func (*SRegion) GrantAccessSnapshot ¶
func (*SRegion) IsEmulated ¶
func (*SRegion) ListServices ¶
func (*SRegion) Refresh ¶
///////////////////////////////////////////////////////////////////////////
func (*SRegion) ReplaceSystemDisk ¶
func (*SRegion) SerciceShow ¶
func (*SRegion) ServiceRegister ¶
func (*SRegion) ServiceUnRegister ¶
func (*SRegion) StopClassicVM ¶
type SResourceGroup ¶
type SResourceGroup struct { ID string Name string Location string Properties GroupProperties ManagedBy string }
type SSHConfiguration ¶
type SSHConfiguration struct {
PublicKeys []SSHPublicKey `json:"publicKeys,omitempty"`
}
type SSHPublicKey ¶
type SSecurityGroup ¶
type SSecurityGroup struct { Properties *SecurityGroupPropertiesFormat `json:"properties,omitempty"` ID string Name string Location string Type string Tags map[string]string // contains filtered or unexported fields }
func (*SSecurityGroup) GetDescription ¶
func (self *SSecurityGroup) GetDescription() string
func (*SSecurityGroup) GetGlobalId ¶
func (self *SSecurityGroup) GetGlobalId() string
func (*SSecurityGroup) GetId ¶
func (self *SSecurityGroup) GetId() string
func (*SSecurityGroup) GetMetadata ¶
func (self *SSecurityGroup) GetMetadata() *jsonutils.JSONDict
func (*SSecurityGroup) GetName ¶
func (self *SSecurityGroup) GetName() string
func (*SSecurityGroup) GetRules ¶
func (self *SSecurityGroup) GetRules() ([]secrules.SecurityRule, error)
func (*SSecurityGroup) GetStatus ¶
func (self *SSecurityGroup) GetStatus() string
func (*SSecurityGroup) IsEmulated ¶
func (self *SSecurityGroup) IsEmulated() bool
func (*SSecurityGroup) Refresh ¶
func (self *SSecurityGroup) Refresh() error
type SService ¶
type SService struct { ID string `json:"id,omitempty"` Namespace string `json:"namespace,omitempty"` RegistrationState string `json:"registrationState,omitempty"` ResourceTypes []ResourceType `json:"resourceTypes,omitempty"` }
type SSnapshot ¶
type SSnapshot struct { ID string Name string Location string ManagedBy string Sku *SnapshotSku Properties DiskProperties Type string // contains filtered or unexported fields }
func (*SSnapshot) GetDiskType ¶
func (*SSnapshot) GetGlobalId ¶
func (*SSnapshot) GetMetadata ¶
func (*SSnapshot) IsEmulated ¶
type SStorage ¶
type SStorage struct { Name string ResourceType string Tier string Kind string Locations []string Capabilities []Capabilitie // contains filtered or unexported fields }
func (*SStorage) CreateIDisk ¶
func (self *SStorage) CreateIDisk(name string, sizeGb int, desc string) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetCapacityMB ¶
func (*SStorage) GetEnabled ¶
func (*SStorage) GetGlobalId ¶
func (*SStorage) GetIDisk ¶
func (self *SStorage) GetIDisk(diskId string) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetIDisks ¶
func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SStorage) GetIStoragecache ¶
func (self *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SStorage) GetIZone ¶
func (self *SStorage) GetIZone() cloudprovider.ICloudZone
func (*SStorage) GetManagerId ¶
func (*SStorage) GetMediumType ¶
func (*SStorage) GetMetadata ¶
func (*SStorage) GetStorageConf ¶
func (self *SStorage) GetStorageConf() jsonutils.JSONObject
func (*SStorage) GetStorageType ¶
func (*SStorage) IsEmulated ¶
type SStorageAccount ¶
type SStorageAccount struct { Sku Sku `json:"sku,omitempty"` Kind string `json:"kind,omitempty"` Identity *Identity Properties AccountProperties Location string ID string Name string Type string Tags map[string]string // contains filtered or unexported fields }
func (*SStorageAccount) CreateContainer ¶
func (self *SStorageAccount) CreateContainer(containerName string) (*SContainer, error)
func (*SStorageAccount) GetAccountKey ¶
func (self *SStorageAccount) GetAccountKey() (accountKey string, err error)
func (*SStorageAccount) GetBlobBaseUrl ¶
func (self *SStorageAccount) GetBlobBaseUrl() string
func (*SStorageAccount) GetContainers ¶
func (self *SStorageAccount) GetContainers() ([]SContainer, error)
func (*SStorageAccount) UploadFile ¶
func (self *SStorageAccount) UploadFile(containerName string, filePath string) (string, error)
type SStoragecache ¶
type SStoragecache struct {
// contains filtered or unexported fields
}
func (*SStoragecache) CreateIImage ¶
func (self *SStoragecache) CreateIImage(snapshotId, imageName, osType, imageDesc string) (cloudprovider.ICloudImage, error)
func (*SStoragecache) DownloadImage ¶
func (self *SStoragecache) DownloadImage(userCred mcclient.TokenCredential, imageId string, extId string, path string) (jsonutils.JSONObject, error)
func (*SStoragecache) GetGlobalId ¶
func (self *SStoragecache) GetGlobalId() string
func (*SStoragecache) GetIImages ¶
func (self *SStoragecache) GetIImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetId ¶
func (self *SStoragecache) GetId() string
func (*SStoragecache) GetManagerId ¶
func (self *SStoragecache) GetManagerId() string
func (*SStoragecache) GetMetadata ¶
func (self *SStoragecache) GetMetadata() *jsonutils.JSONDict
func (*SStoragecache) GetName ¶
func (self *SStoragecache) GetName() string
func (*SStoragecache) GetStatus ¶
func (self *SStoragecache) GetStatus() string
func (*SStoragecache) IsEmulated ¶
func (self *SStoragecache) IsEmulated() bool
func (*SStoragecache) Refresh ¶
func (self *SStoragecache) Refresh() error
func (*SStoragecache) UploadImage ¶
func (self *SStoragecache) UploadImage(userCred mcclient.TokenCredential, imageId string, osArch, osType, osDist string, extId string, isForce bool) (string, error)
type SVMSize ¶
type SVMSize struct { //MaxDataDiskCount int32 `json:"maxDataDiskCount,omitempty"` //Unmarshal会出错 MemoryInMB int32 `json:"memoryInMB,omitempty"` NumberOfCores int32 `json:"numberOfCores,omitempty"` Name string OsDiskSizeInMB int32 `json:"osDiskSizeInMB,omitempty"` ResourceDiskSizeInMB int32 `json:"resourceDiskSizeInMB,omitempty"` }
type SVirtualMachineExtension ¶
type SVirtualMachineExtension struct { Location string `json:"location,omitempty"` Properties VirtualMachineExtensionProperties `json:"properties,omitempty"` }
type SVpc ¶
type SVpc struct { ID string Name string Etag string Type string Location string Tags map[string]string Properties VirtualNetworkPropertiesFormat `json:"properties,omitempty"` // contains filtered or unexported fields }
func (*SVpc) GetCidrBlock ¶
func (*SVpc) GetGlobalId ¶
func (*SVpc) GetISecurityGroups ¶
func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SVpc) GetIWireById ¶
func (self *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
func (*SVpc) GetIWires ¶
func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SVpc) GetIsDefault ¶
func (*SVpc) GetManagerId ¶
func (*SVpc) GetMetadata ¶
func (*SVpc) GetNetworks ¶
func (*SVpc) GetRegion ¶
func (self *SVpc) GetRegion() cloudprovider.ICloudRegion
func (*SVpc) IsEmulated ¶
func (*SVpc) SyncSecurityGroup ¶
type SWire ¶
type SWire struct {
// contains filtered or unexported fields
}
func (*SWire) CreateINetwork ¶
func (self *SWire) CreateINetwork(name string, cidr string, desc string) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetBandwidth ¶
func (*SWire) GetGlobalId ¶
func (*SWire) GetINetworkById ¶
func (self *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetINetworks ¶
func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
func (*SWire) GetIVpc ¶
func (self *SWire) GetIVpc() cloudprovider.ICloudVpc
func (*SWire) GetIZone ¶
func (self *SWire) GetIZone() cloudprovider.ICloudZone
func (*SWire) GetMetadata ¶
func (*SWire) IsEmulated ¶
type SZone ¶
type SZone struct { Name string // contains filtered or unexported fields }
func (*SZone) GetGlobalId ¶
func (*SZone) GetIClassicWires ¶
func (self *SZone) GetIClassicWires() ([]cloudprovider.ICloudWire, error)
func (*SZone) GetIHostById ¶
func (self *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SZone) GetIHosts ¶
func (self *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SZone) GetIRegion ¶
func (self *SZone) GetIRegion() cloudprovider.ICloudRegion
func (*SZone) GetIStorageById ¶
func (self *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SZone) GetIStorages ¶
func (self *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SZone) GetIWires ¶
func (self *SZone) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SZone) GetMetadata ¶
func (*SZone) IsEmulated ¶
type SecurityGroupPropertiesFormat ¶
type SecurityGroupPropertiesFormat struct { SecurityRules *[]SecurityRules `json:"securityRules,omitempty"` DefaultSecurityRules *[]SecurityRules `json:"defaultSecurityRules,omitempty"` NetworkInterfaces *[]Interface `json:"networkInterfaces,omitempty"` Subnets *[]Subnet `json:"subnets,omitempty"` ProvisioningState string //Possible values are: 'Updating', 'Deleting', and 'Failed' }
type SecurityRulePropertiesFormat ¶
type SecurityRulePropertiesFormat struct { Description string `json:"description,omitempty"` Protocol string `json:"protocol,omitempty"` SourcePortRange string `json:"sourcePortRange,omitempty"` DestinationPortRange string `json:"destinationPortRange,omitempty"` SourceAddressPrefix string `json:"sourceAddressPrefix,omitempty"` SourceAddressPrefixes []string `json:"sourceAddressPrefixes,omitempty"` DestinationAddressPrefix string `json:"destinationAddressPrefix,omitempty"` DestinationAddressPrefixes []string `json:"destinationAddressPrefixes,omitempty"` SourcePortRanges []string `json:"sourcePortRanges,omitempty"` DestinationPortRanges []string `json:"destinationPortRanges,omitempty"` Access string `json:"access,omitempty"` // Allow or Deny Priority int32 `json:"priority,omitempty"` Direction string `json:"direction,omitempty"` //Inbound or Outbound ProvisioningState string `json:"-"` }
func (*SecurityRulePropertiesFormat) String ¶
func (self *SecurityRulePropertiesFormat) String() string
type SecurityRules ¶
type SecurityRules struct { Properties SecurityRulePropertiesFormat Name string ID string }
type SecurityRulesSet ¶
type SecurityRulesSet []SecurityRules
func (SecurityRulesSet) Len ¶
func (v SecurityRulesSet) Len() int
func (SecurityRulesSet) Less ¶
func (v SecurityRulesSet) Less(i, j int) bool
func (SecurityRulesSet) Swap ¶
func (v SecurityRulesSet) Swap(i, j int)
type SnapshotSku ¶
type StorageProfile ¶
type StorageProfile struct { ImageReference ImageReference `json:"imageReference,omitempty"` OsDisk OSDisk `json:"osDisk,omitempty"` DataDisks []DataDisk `json:"dataDisks,omitempty"` }
type SubResource ¶
type Subnet ¶
type Subnet struct { Properties SubnetPropertiesFormat Name string ID string }
type SubnetPropertiesFormat ¶
type SubnetPropertiesFormat struct {
AddressPrefix string `json:"addressPrefix,omitempty"`
}
type TInternetChargeType ¶
type TInternetChargeType string
type VaultCertificate ¶
type VaultSecretGroup ¶
type VaultSecretGroup struct { SourceVault SubResource `json:"sourceVault,omitempty"` VaultCertificates []VaultCertificate `json:"vaultCertificates,omitempty"` }
type VirtualHardDisk ¶
type VirtualHardDisk struct {
Uri string `json:"uri,omitempty"`
}
type VirtualMachineExtensionProperties ¶
type VirtualMachineExtensionProperties struct { Publisher string `json:"publisher,omitempty"` Type string `json:"type,omitempty"` TypeHandlerVersion string `json:"typeHandlerVersion,omitempty"` ProtectedSettings interface{} `json:"protectedSettings,omitempty"` Settings interface{} `json:"settings,omitempty"` }
type VirtualMachineInstanceView ¶
type VirtualMachineInstanceView struct { UpdateDomain int FaultDomain int Status string StatusMessage string PowerState string PrivateIpAddress string PublicIpAddresses []string FullyQualifiedDomainName string GuestAgentStatus GuestAgentStatus ComputerName string OsName string OsVersion string Statuses []InstanceViewStatus }
type VirtualMachineProperties ¶
type VirtualMachineProperties struct { ProvisioningState string `json:"provisioningState,omitempty"` InstanceView *VirtualMachineInstanceView `json:"instanceView,omitempty"` DomainName *DomainName `json:"domainName,omitempty"` HardwareProfile HardwareProfile `json:"hardwareProfile,omitempty"` NetworkProfile NetworkProfile `json:"networkProfile,omitempty"` StorageProfile StorageProfile `json:"storageProfile,omitempty"` DebugProfile *DebugProfile `json:"debugProfile,omitempty"` OsProfile OsProfile `json:"osProfile,omitempty"` VmId string `json:"vmId,omitempty"` }
type VirtualNetworkPropertiesFormat ¶
type VirtualNetworkPropertiesFormat struct { ProvisioningState string Status string VirtualNetworkSiteName string AddressSpace AddressSpace `json:"addressSpace,omitempty"` Subnets *[]SNetwork `json:"subnets,omitempty"` }
Source Files ¶
- azure.go
- classic_disk.go
- classic_eip.go
- classic_host.go
- classic_instance.go
- classic_instancenic.go
- classic_instancesize.go
- classic_network.go
- classic_secruitygroup.go
- classic_snapshot.go
- classic_storage.go
- classic_vpc.go
- classic_wire.go
- debug.go
- disk.go
- eip.go
- host.go
- image.go
- instance.go
- instancenic.go
- network.go
- region.go
- resourcegroup.go
- securitygroup.go
- service.go
- snapshot.go
- storage.go
- storageaccount.go
- storagecache.go
- upload.go
- vpc.go
- wire.go
- zone.go