Documentation ¶
Index ¶
- Constants
- type ImageImportTask
- type ImageOwnerType
- type ImageStatusType
- type ImageUsageType
- type InstanceChargeType
- type SAliyunClient
- func (self *SAliyunClient) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (self *SAliyunClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
- func (self *SAliyunClient) GetIRegions() []cloudprovider.ICloudRegion
- func (self *SAliyunClient) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SAliyunClient) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
- func (self *SAliyunClient) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
- func (self *SAliyunClient) GetRegion(regionId string) *SRegion
- func (self *SAliyunClient) GetRegions() []SRegion
- type SDedicatedHostAttribute
- type SDedicatedHostGenerations
- type SDedicatedHostTypes
- type SDisk
- 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) GetFsFormat() string
- func (self *SDisk) GetGlobalId() string
- func (self *SDisk) GetIStorge() cloudprovider.ICloudStorage
- func (self *SDisk) GetId() string
- func (self *SDisk) GetIsAutoDelete() bool
- func (self *SDisk) GetIsNonPersistent() bool
- func (self *SDisk) GetMountpoint() string
- func (self *SDisk) GetName() string
- func (self *SDisk) GetStatus() string
- func (self *SDisk) GetTemplateId() string
- func (self *SDisk) IsEmulated() bool
- func (self *SDisk) Refresh() error
- type SDiskCategories
- type SEipAddress
- 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(gid 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) 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
- func (self *SHost) VMGlobalId2Id(gid string) string
- type SImage
- type SInstance
- func (self *SInstance) DeleteVM() error
- func (self *SInstance) GetBios() string
- func (self *SInstance) GetBootOrder() string
- func (self *SInstance) GetCreateTime() time.Time
- func (self *SInstance) GetEIP() cloudprovider.ICloudEIP
- func (self *SInstance) GetGlobalId() string
- func (self *SInstance) GetHypervisor() string
- func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, 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) 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) Refresh() error
- func (self *SInstance) StartVM() error
- func (self *SInstance) StopVM(isForce bool) error
- type SInstanceNic
- type SInstanceType
- type SInstanceTypes
- type SIpAddress
- type SKeypair
- type SMountInstances
- type SNetworkInterface
- type SNetworkInterfaces
- type SNextHops
- type SOperationLocks
- type SPermission
- type SPermissions
- type SRegion
- func (self *SRegion) CreateIVpc(name string, desc string, cidr string) (cloudprovider.ICloudVpc, error)
- func (self *SRegion) CreateInstance(name string, imageId string, instanceType string, securityGroupId string, ...) (string, error)
- func (self *SRegion) CreateInstanceSimple(name string, imgId string, cpu int, memGB int, storageType string, ...) (*SInstance, error)
- func (self *SRegion) DeleteImage(imageId string) error
- func (self *SRegion) DeleteVM(instanceId string) error
- func (self *SRegion) DeleteVpc(vpcId string) error
- func (self *SRegion) GetClient() *SAliyunClient
- func (self *SRegion) GetDisks(instanceId string, zoneId string, category string, diskIds []string, ...) ([]SDisk, int, error)
- func (self *SRegion) GetGlobalId() string
- func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, 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(status ImageStatusType, owner ImageOwnerType, imageId []string, name string, ...) ([]SImage, int, error)
- func (self *SRegion) GetInstance(instanceId string) (*SInstance, error)
- func (self *SRegion) GetInstanceStatus(instanceId string) (string, error)
- func (self *SRegion) GetInstanceTypes() ([]SInstanceType, error)
- func (self *SRegion) GetInstanceVNCUrl(instanceId string) (string, error)
- func (self *SRegion) GetInstances(zoneId string, ids []string, offset int, limit int) ([]SInstance, int, error)
- func (self *SRegion) GetKeypairs(finger string, name string, offset int, limit int) ([]SKeypair, int, error)
- func (self *SRegion) GetLatitude() float32
- func (self *SRegion) GetLongitude() float32
- func (self *SRegion) GetMatchInstanceTypes(cpu int, memMB int, gpu int, zoneId string) ([]SInstanceType, error)
- func (self *SRegion) GetName() string
- func (self *SRegion) GetOSSExternalDomain() string
- func (self *SRegion) GetOSSInternalDomain() string
- func (self *SRegion) GetOssClient() (*oss.Client, error)
- func (self *SRegion) GetProvider() string
- func (self *SRegion) GetRouteTables(ids []string, offset int, limit int) ([]SRouteTable, int, error)
- func (self *SRegion) GetSecurityGroupDetails(secGroupId string) (*SSecurityGroup, error)
- func (self *SRegion) GetSecurityGroups(vpcId string, offset int, limit int) ([]SSecurityGroup, int, error)
- func (self *SRegion) GetStatus() string
- func (self *SRegion) GetTaskStatus(action TaskActionType, taskId string) (string, error)
- func (self *SRegion) GetTasks(action TaskActionType, taskId []string, offset int, limit int) ([]STask, int, error)
- func (self *SRegion) GetVRouters(offset int, limit int) ([]SVRouter, int, error)
- func (self *SRegion) GetVSwitches(ids []string, vpcId string, offset int, limit int) ([]SVSwitch, int, error)
- func (self *SRegion) GetVpcs(vpcId []string, offset int, limit int) ([]SVpc, int, error)
- func (self *SRegion) ImportImage(name string, bucket string, key string) (*ImageImportTask, error)
- func (self *SRegion) ImportKeypair(name string, pubKey string) (*SKeypair, error)
- func (self *SRegion) IsEmulated() bool
- func (self *SRegion) ModifyInstanceVNCUrlPassword(instanceId string, passwd string) error
- func (self *SRegion) Refresh() error
- func (self *SRegion) StartVM(instanceId string) error
- func (self *SRegion) StopVM(instanceId string, isForce bool) error
- func (self *SRegion) UpdateInstancePassword(instId string, passwd string) error
- type SResourceCreation
- type SResources
- type SResourcesInfo
- type SRouteEntry
- type SRouteEntrys
- type SRouteTable
- type SRouteTableIds
- type SSecurityGroup
- type SSecurityGroupIds
- 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) 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) 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 SStoragecache
- 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) 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, extId string, isForce bool) (string, error)
- type SSupportedDataDiskCategories
- type SSupportedInstanceGenerations
- type SSupportedInstanceTypeFamilies
- type SSupportedInstanceTypes
- type SSupportedNetworkTypes
- type SSupportedSystemDiskCategories
- type STags
- type STask
- type SUserCIDRs
- type SVRouter
- type SVSwitch
- func (self *SVSwitch) Delete() error
- func (self *SVSwitch) GetGateway() string
- func (self *SVSwitch) GetGlobalId() string
- func (self *SVSwitch) GetIWire() cloudprovider.ICloudWire
- func (self *SVSwitch) GetId() string
- func (self *SVSwitch) GetIpEnd() string
- func (self *SVSwitch) GetIpMask() int8
- func (self *SVSwitch) GetIpStart() string
- func (self *SVSwitch) GetIsPublic() bool
- func (self *SVSwitch) GetName() string
- func (self *SVSwitch) GetServerType() string
- func (self *SVSwitch) GetStatus() string
- func (self *SVSwitch) IsEmulated() bool
- func (self *SVSwitch) Refresh() error
- type SVSwitchIds
- type SVolumeCategories
- type SVpc
- func (self *SVpc) Delete() error
- func (self *SVpc) GetCidrBlock() string
- func (self *SVpc) GetGlobalId() string
- 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) GetName() string
- func (self *SVpc) GetRegion() cloudprovider.ICloudRegion
- func (self *SVpc) GetSecurityGroups() ([]SSecurityGroup, error)
- func (self *SVpc) GetStatus() string
- func (self *SVpc) IsEmulated() bool
- func (self *SVpc) Refresh() error
- type SVpcAttributes
- 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) 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) 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) GetName() string
- func (self *SZone) GetStatus() string
- func (self *SZone) IsEmulated() bool
- func (self *SZone) Refresh() error
- type SecurityGroupPermissionNicType
- type SpotStrategyType
- type TaskActionType
Constants ¶
View Source
const ( CLOUD_PROVIDER_ALIYUN = models.CLOUD_PROVIDER_ALIYUN CLOUD_PROVIDER_ALIYUN_CN = "阿里云" ALIYUN_DEFAULT_REGION = "cn-hangzhou" ALIYUN_API_VERSION = "2014-05-26" )
View Source
const ( InstanceStatusStopped = "Stopped" InstanceStatusRunning = "Running" InstanceStatusStopping = "Stopping" InstanceStatusStarting = "Starting" )
View Source
const ( ImportImageTask = TaskActionType("ImportImage") ExportImageTask = TaskActionType("ExportImage") )
View Source
const ( VpcAvailable = "Available" VpcPending = "Pending" )
View Source
const ( VSwitchPending = "Pending" VSwitchAvailable = "Available" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageImportTask ¶
type ImageOwnerType ¶
type ImageOwnerType string
const ( ImageOwnerSystem ImageOwnerType = "system" ImageOwnerSelf ImageOwnerType = "self" ImageOwnerOthers ImageOwnerType = "others" ImageOwnerMarketplace ImageOwnerType = "marketplace" )
type ImageStatusType ¶
type ImageStatusType string
const ( ImageStatusCreating ImageStatusType = "Creating" ImageStatusAvailable ImageStatusType = "Available" ImageStatusUnAvailable ImageStatusType = "UnAvailable" ImageStatusCreateFailed ImageStatusType = "CreateFailed" )
type ImageUsageType ¶
type ImageUsageType string
const ( ImageUsageInstance ImageUsageType = "instance" ImageUsageNone ImageUsageType = "none" )
type InstanceChargeType ¶
type InstanceChargeType string
const ( PrePaidInstanceChargeType InstanceChargeType = "PrePaid" PostPaidInstanceChargeType InstanceChargeType = "PostPaid" DefaultInstanceChargeType = PostPaidInstanceChargeType )
type SAliyunClient ¶
type SAliyunClient struct {
// contains filtered or unexported fields
}
func NewAliyunClient ¶
func (*SAliyunClient) GetIHostById ¶
func (self *SAliyunClient) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SAliyunClient) GetIRegionById ¶
func (self *SAliyunClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
func (*SAliyunClient) GetIRegions ¶
func (self *SAliyunClient) GetIRegions() []cloudprovider.ICloudRegion
func (*SAliyunClient) GetIStorageById ¶
func (self *SAliyunClient) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SAliyunClient) GetIStoragecacheById ¶
func (self *SAliyunClient) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
func (*SAliyunClient) GetIVpcById ¶
func (self *SAliyunClient) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
func (*SAliyunClient) GetRegion ¶
func (self *SAliyunClient) GetRegion(regionId string) *SRegion
func (*SAliyunClient) GetRegions ¶
func (self *SAliyunClient) GetRegions() []SRegion
type SDedicatedHostAttribute ¶
type SDedicatedHostGenerations ¶
type SDedicatedHostGenerations struct {
DedicatedHostGeneration []string
}
type SDedicatedHostTypes ¶
type SDedicatedHostTypes struct {
DedicatedHostType []string
}
type SDisk ¶
type SDisk struct { AttachedTime time.Time AutoSnapshotPolicyId string Category string CreationTime time.Time DeleteAutoSnapshot bool DeleteWithInstance bool Description string DetachedTime time.Time Device string DiskChargeType string DiskId string DiskName string EnableAutoSnapshot bool EnableAutomatedSnapshotPolicy bool Encrypted bool ExpiredTime time.Time ImageId string InstanceId string MountInstances SMountInstances OperationLocks SOperationLocks Portable bool ProductCode string RegionId string ResourceGroupId string Size int SourceSnapshotId string Status string Tags STags Type string ZoneId string // contains filtered or unexported fields }
func (*SDisk) GetCacheMode ¶
func (*SDisk) GetDiskFormat ¶
func (*SDisk) GetDiskSizeMB ¶
func (*SDisk) GetDiskType ¶
func (*SDisk) GetFsFormat ¶
func (*SDisk) GetGlobalId ¶
func (*SDisk) GetIStorge ¶
func (self *SDisk) GetIStorge() cloudprovider.ICloudStorage
func (*SDisk) GetIsAutoDelete ¶
func (*SDisk) GetIsNonPersistent ¶
func (*SDisk) GetMountpoint ¶
func (*SDisk) GetTemplateId ¶
func (*SDisk) IsEmulated ¶
type SDiskCategories ¶
type SDiskCategories struct {
DiskCategories []string
}
type SEipAddress ¶
func (*SEipAddress) GetAllocationId ¶
func (self *SEipAddress) GetAllocationId() string
func (*SEipAddress) GetChargeType ¶
func (self *SEipAddress) GetChargeType() string
func (*SEipAddress) GetIP ¶
func (self *SEipAddress) GetIP() string
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(gid string) (cloudprovider.ICloudVM, error)
func (*SHost) GetIWires ¶
func (self *SHost) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SHost) GetManagerId ¶
func (*SHost) GetMemSizeMB ¶
func (*SHost) GetNodeCount ¶
func (*SHost) GetStorageSizeMB ¶
func (*SHost) GetStorageType ¶
func (*SHost) GetSysInfo ¶
func (self *SHost) GetSysInfo() jsonutils.JSONObject
func (*SHost) IsEmulated ¶
func (*SHost) VMGlobalId2Id ¶
type SImage ¶
type SImage struct { Architecture string CreationTime time.Time Description string ImageId string ImageName string OSName string OSType string ImageOwnerAlias ImageOwnerType IsSupportCloudinit bool IsSupportIoOptimized bool Platform string Size int Status ImageStatusType Usage string // contains filtered or unexported fields }
func (*SImage) GetGlobalId ¶
func (*SImage) GetIStoragecache ¶
func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SImage) IsEmulated ¶
type SInstance ¶
type SInstance struct { AutoReleaseTime string ClusterId string Cpu int8 CreationTime time.Time DedicatedHostAttribute SDedicatedHostAttribute Description string DeviceAvailable bool EipAddress SEipAddress ExpiredTime time.Time GPUAmount int GPUSpec string HostName string ImageId string InnerIpAddress SIpAddress InstanceChargeType InstanceChargeType InstanceId string InstanceName string InstanceNetworkType string InstanceType string InstanceTypeFamily string InternetChargeType string InternetMaxBandwidthIn int InternetMaxBandwidthOut int IoOptimized bool Memory int NetworkInterfaces SNetworkInterfaces OSName string OSType string OperationLocks SOperationLocks PublicIpAddress SIpAddress Recyclable bool RegionId string ResourceGroupId string SaleCycle string SecurityGroupIds SSecurityGroupIds SerialNumber string SpotPriceLimit string SpotStrategy string StartTime time.Time Status string StoppedMode string VlanId string VpcAttributes SVpcAttributes ZoneId string // contains filtered or unexported fields }
func (*SInstance) GetBootOrder ¶
func (*SInstance) GetCreateTime ¶
func (*SInstance) GetEIP ¶
func (self *SInstance) GetEIP() cloudprovider.ICloudEIP
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) GetVNCInfo ¶
func (self *SInstance) GetVNCInfo() (jsonutils.JSONObject, error)
func (*SInstance) GetVcpuCount ¶
func (*SInstance) GetVmemSizeMB ¶
func (*SInstance) IsEmulated ¶
type SInstanceNic ¶
type SInstanceNic struct {
// contains filtered or unexported fields
}
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 SInstanceType ¶
type SInstanceType struct { CpuCoreCount int MemorySize float32 EniQuantity int // 实例规格支持网卡数量 GPUAmount int GPUSpec string InstanceTypeFamily string InstanceTypeId string LocalStorageCategory string LocalStorageAmount int LocalStorageCapacity int64 InstanceBandwidthRx int InstanceBandwidthTx int InstancePpsRx int InstancePpsTx int }
type SInstanceTypes ¶
type SInstanceTypes struct {
InstanceTypes []string
}
type SIpAddress ¶
type SIpAddress struct {
IpAddress []string
}
type SMountInstances ¶
type SMountInstances struct {
MountInstance []string
}
type SNetworkInterface ¶
type SNetworkInterfaces ¶
type SNetworkInterfaces struct {
NetworkInterface []SNetworkInterface
}
type SOperationLocks ¶
type SOperationLocks struct {
LockReason []string
}
type SPermission ¶
type SPermission struct { CreateTime time.Time Description string DestCidrIp string DestGroupId string DestGroupName string DestGroupOwnerAccount string Direction string IpProtocol string NicType SecurityGroupPermissionNicType Policy string PortRange string Priority int SourceCidrIp string SourceGroupId string SourceGroupName string SourceGroupOwnerAccount string }
type SPermissions ¶
type SPermissions struct {
Permission []SPermission
}
type SRegion ¶
func (*SRegion) CreateIVpc ¶
func (*SRegion) CreateInstance ¶
func (*SRegion) CreateInstanceSimple ¶
func (*SRegion) DeleteImage ¶
func (*SRegion) GetClient ¶
func (self *SRegion) GetClient() *SAliyunClient
func (*SRegion) GetGlobalId ¶
func (*SRegion) GetIHostById ¶
func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, 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) GetImages ¶
func (self *SRegion) GetImages(status ImageStatusType, owner ImageOwnerType, imageId []string, name string, offset int, limit int) ([]SImage, int, error)
func (*SRegion) GetInstance ¶
func (*SRegion) GetInstanceStatus ¶
func (*SRegion) GetInstanceTypes ¶
func (self *SRegion) GetInstanceTypes() ([]SInstanceType, error)
func (*SRegion) GetInstanceVNCUrl ¶
func (*SRegion) GetInstances ¶
func (*SRegion) GetKeypairs ¶
func (*SRegion) GetLatitude ¶
func (*SRegion) GetLongitude ¶
func (*SRegion) GetMatchInstanceTypes ¶
func (*SRegion) GetOSSExternalDomain ¶
oss endpoint https://help.aliyun.com/document_detail/31837.html?spm=a2c4g.11186623.2.6.6E8ZkO
func (*SRegion) GetOSSInternalDomain ¶
func (*SRegion) GetProvider ¶
func (*SRegion) GetRouteTables ¶
func (*SRegion) GetSecurityGroupDetails ¶
func (self *SRegion) GetSecurityGroupDetails(secGroupId string) (*SSecurityGroup, error)
func (*SRegion) GetSecurityGroups ¶
func (*SRegion) GetTaskStatus ¶
func (self *SRegion) GetTaskStatus(action TaskActionType, taskId string) (string, error)
func (*SRegion) GetVRouters ¶
func (*SRegion) GetVSwitches ¶
func (*SRegion) ImportImage ¶
func (*SRegion) ImportKeypair ¶
func (*SRegion) IsEmulated ¶
func (*SRegion) ModifyInstanceVNCUrlPassword ¶
type SResourceCreation ¶
type SResourceCreation struct {
ResourceTypes []string
}
type SResources ¶
type SResources struct {
ResourcesInfo []SResourcesInfo
}
type SResourcesInfo ¶
type SResourcesInfo struct { DataDiskCategories SSupportedDataDiskCategories InstanceGenerations SSupportedInstanceGenerations InstanceTypeFamilies SSupportedInstanceTypeFamilies InstanceTypes SSupportedInstanceTypes IoOptimized bool NetworkTypes SSupportedNetworkTypes SystemDiskCategories SSupportedSystemDiskCategories }
type SRouteEntry ¶
type SRouteEntrys ¶
type SRouteEntrys struct {
RouteEntry []SRouteEntry
}
type SRouteTable ¶
type SRouteTableIds ¶
type SRouteTableIds struct {
RouteTableId []string
}
type SSecurityGroup ¶
type SSecurityGroupIds ¶
type SSecurityGroupIds struct {
SecurityGroupId []string
}
type SStorage ¶
type SStorage struct {
// 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) 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) GetStorageConf ¶
func (self *SStorage) GetStorageConf() jsonutils.JSONObject
func (*SStorage) GetStorageType ¶
func (*SStorage) IsEmulated ¶
type SStoragecache ¶
type SStoragecache struct {
// contains filtered or unexported fields
}
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) 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, extId string, isForce bool) (string, error)
type SSupportedDataDiskCategories ¶
type SSupportedDataDiskCategories struct {
SupportedDataDiskCategory []string
}
type SSupportedInstanceGenerations ¶
type SSupportedInstanceGenerations struct {
SupportedInstanceGeneration []string
}
type SSupportedInstanceTypeFamilies ¶
type SSupportedInstanceTypeFamilies struct {
SupportedInstanceTypeFamily []string
}
type SSupportedInstanceTypes ¶
type SSupportedInstanceTypes struct {
SupportedInstanceType []string
}
type SSupportedNetworkTypes ¶
type SSupportedNetworkTypes struct {
SupportedNetworkCategory []string
}
type SSupportedSystemDiskCategories ¶
type SSupportedSystemDiskCategories struct {
SupportedSystemDiskCategory []string
}
type SUserCIDRs ¶
type SUserCIDRs struct {
UserCidr []string
}
type SVSwitch ¶
type SVSwitch struct { AvailableIpAddressCount int CidrBlock string CreationTime time.Time Description string IsDefault bool Status string VSwitchId string VSwitchName string VpcId string ZoneId string // contains filtered or unexported fields }
func (*SVSwitch) GetGateway ¶
func (*SVSwitch) GetGlobalId ¶
func (*SVSwitch) GetIWire ¶
func (self *SVSwitch) GetIWire() cloudprovider.ICloudWire
func (*SVSwitch) GetIpStart ¶
func (*SVSwitch) GetIsPublic ¶
func (*SVSwitch) GetServerType ¶
func (*SVSwitch) IsEmulated ¶
type SVSwitchIds ¶
type SVSwitchIds struct {
VSwitchId []string
}
type SVolumeCategories ¶
type SVolumeCategories struct {
VolumeCategories []string
}
type SVpc ¶
type SVpc struct { CidrBlock string CreationTime time.Time Description string IsDefault bool RegionId string Status string UserCidrs SUserCIDRs VRouterId string VSwitchIds SVSwitchIds VpcId string VpcName string // contains filtered or unexported fields }
func (*SVpc) GetCidrBlock ¶
func (*SVpc) GetGlobalId ¶
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) GetRegion ¶
func (self *SVpc) GetRegion() cloudprovider.ICloudRegion
func (*SVpc) GetSecurityGroups ¶
func (self *SVpc) GetSecurityGroups() ([]SSecurityGroup, error)
func (*SVpc) IsEmulated ¶
type SVpcAttributes ¶
type SVpcAttributes struct { NatIpAddress string PrivateIpAddress SIpAddress VSwitchId string VpcId string }
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) IsEmulated ¶
type SZone ¶
type SZone struct { ZoneId string LocalName string DedicatedHostGenerations SDedicatedHostGenerations AvailableVolumeCategories SVolumeCategories /* 可供创建的具体资源,AvailableResourcesType 组成的数组 */ AvailableResources SResources /* 允许创建的资源类型集合 */ AvailableResourceCreation SResourceCreation /* 允许创建的实例规格类型 */ AvailableInstanceTypes SInstanceTypes /* 支持的磁盘种类集合 */ AvailableDiskCategories SDiskCategories AvailableDedicatedHostTypes SDedicatedHostTypes // contains filtered or unexported fields }
func (*SZone) GetGlobalId ¶
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) IsEmulated ¶
type SecurityGroupPermissionNicType ¶
type SecurityGroupPermissionNicType string
const ( IntranetNicType SecurityGroupPermissionNicType = "intranet" InternetNicType SecurityGroupPermissionNicType = "internet" )
type SpotStrategyType ¶
type SpotStrategyType string
const ( NoSpotStrategy SpotStrategyType = "NoSpot" SpotWithPriceLimitStrategy SpotStrategyType = "SpotWithPriceLimit" SpotAsPriceGoStrategy SpotStrategyType = "SpotAsPriceGo" DefaultSpotStrategy = NoSpotStrategy )
type TaskActionType ¶
type TaskActionType string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.