Documentation ¶
Index ¶
- Constants
- Variables
- func GetBucketName(regionId string, imageId string) string
- type CtyunClientConfig
- type CtyunTags
- type FixedIP
- type SCtyunClient
- func (self *SCtyunClient) Do(req *http.Request) (*http.Response, error)
- func (self *SCtyunClient) GetAccessEnv() string
- func (client *SCtyunClient) GetAccountId() string
- func (self *SCtyunClient) GetBalance()
- func (self *SCtyunClient) GetCapabilities() []string
- func (self *SCtyunClient) GetCloudRegionExternalIdPrefix() string
- func (self *SCtyunClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
- func (self *SCtyunClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
- func (self *SCtyunClient) GetIRegions() []cloudprovider.ICloudRegion
- func (self *SCtyunClient) GetRegion(id string) (*SRegion, error)
- func (self *SCtyunClient) GetRegions() ([]SRegion, error)
- func (self *SCtyunClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- type SDisk
- func (self *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)
- func (self *SDisk) Delete(ctx context.Context) error
- func (self *SDisk) GetAccessPath() string
- func (self *SDisk) GetBillingType() string
- func (self *SDisk) GetCacheMode() string
- func (self *SDisk) GetCreatedAt() time.Time
- 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(idStr string) (cloudprovider.ICloudSnapshot, error)
- func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (self *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
- func (self *SDisk) GetIStorageId() string
- 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) GetProjectId() string
- func (self *SDisk) GetStatus() string
- func (self *SDisk) GetTemplateId() string
- func (self *SDisk) Rebuild(ctx context.Context) error
- func (self *SDisk) Refresh() error
- func (self *SDisk) Reset(ctx context.Context, snapshotId string) (string, error)
- func (self *SDisk) Resize(ctx context.Context, newSizeMB int64) error
- type SEip
- func (self *SEip) Associate(opts *cloudprovider.AssociateConfig) error
- func (self *SEip) ChangeBandwidth(bw int) error
- func (self *SEip) Delete() error
- func (self *SEip) Dissociate() error
- func (self *SEip) GetAssociationExternalId() string
- func (self *SEip) GetAssociationType() string
- func (self *SEip) GetBandwidth() int
- func (self *SEip) GetBillingType() string
- func (self *SEip) GetCreatedAt() time.Time
- func (self *SEip) GetExpiredAt() time.Time
- func (self *SEip) GetGlobalId() string
- func (self *SEip) GetId() string
- func (self *SEip) GetInternetChargeType() string
- func (self *SEip) GetIpAddr() string
- func (self *SEip) GetMode() string
- func (self *SEip) GetName() string
- func (self *SEip) GetProjectId() string
- func (self *SEip) GetStatus() string
- func (self *SEip) Refresh() error
- type SHost
- func (self *SHost) CreateVM(opts *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
- func (self *SHost) GetAccessIp() string
- func (self *SHost) GetAccessMac() string
- func (self *SHost) GetCpuCount() int
- 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 (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
- func (self *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (self *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (self *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (self *SHost) GetId() string
- func (self *SHost) GetIsMaintenance() bool
- 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() int64
- func (self *SHost) GetStorageType() string
- func (self *SHost) GetSysInfo() jsonutils.JSONObject
- func (self *SHost) GetVersion() string
- func (self *SHost) IsEmulated() bool
- type SImage
- func (self *SImage) Delete(ctx context.Context) error
- func (self *SImage) GetBios() cloudprovider.TBiosType
- func (self *SImage) GetCreateTime() time.Time
- func (self *SImage) GetCreatedAt() time.Time
- func (self *SImage) GetFullOsName() string
- func (self *SImage) GetGlobalId() string
- func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (self *SImage) GetId() string
- func (self *SImage) GetImageFormat() string
- func (self *SImage) GetImageStatus() string
- func (self *SImage) GetImageType() cloudprovider.TImageType
- func (self *SImage) GetMinOsDiskSizeGb() int
- func (self *SImage) GetMinRamSizeMb() int
- func (self *SImage) GetName() string
- func (self *SImage) GetOsArch() string
- func (self *SImage) GetOsDist() string
- func (self *SImage) GetOsLang() string
- func (self *SImage) GetOsType() cloudprovider.TOsType
- func (self *SImage) GetOsVersion() string
- func (self *SImage) GetSizeByte() int64
- func (self *SImage) GetStatus() string
- func (self *SImage) IsEmulated() bool
- func (self *SImage) Refresh() error
- type SInstance
- func (self *SInstance) AttachDisk(ctx context.Context, diskId string) error
- func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
- func (self *SInstance) DeleteVM(ctx context.Context) error
- func (self *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error
- func (self *SInstance) DetachDisk(ctx context.Context, diskId string) error
- func (self *SInstance) GetBillingType() string
- func (self *SInstance) GetBios() cloudprovider.TBiosType
- func (self *SInstance) GetBootOrder() string
- func (self *SInstance) GetCreatedAt() time.Time
- func (self *SInstance) GetError() error
- func (self *SInstance) GetExpiredAt() time.Time
- func (self *SInstance) GetFullOsName() string
- func (self *SInstance) GetGlobalId() string
- func (self *SInstance) GetHostname() 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) GetImage() (*SImage, error)
- func (self *SInstance) GetInstanceType() string
- func (self *SInstance) GetMachine() string
- func (self *SInstance) GetName() string
- func (self *SInstance) GetOsArch() string
- func (self *SInstance) GetOsDist() string
- func (self *SInstance) GetOsLang() string
- func (self *SInstance) GetOsType() cloudprovider.TOsType
- func (self *SInstance) GetOsVersion() string
- func (self *SInstance) GetProjectId() string
- func (self *SInstance) GetSecurityGroupIds() ([]string, error)
- func (self *SInstance) GetStatus() string
- func (self *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
- func (self *SInstance) GetVcpuCount() int
- func (self *SInstance) GetVdi() string
- func (self *SInstance) GetVga() string
- func (self *SInstance) GetVmemSizeMB() int
- func (self *SInstance) RebuildRoot(ctx context.Context, opts *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
- func (self *SInstance) Refresh() error
- func (self *SInstance) Renew(bc billing.SBillingCycle) error
- func (self *SInstance) SetSecurityGroups(secgroupIds []string) error
- func (self *SInstance) StartVM(ctx context.Context) error
- func (self *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
- func (self *SInstance) UpdateUserData(userData string) error
- func (self *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error
- type SInstanceNic
- type SKeypair
- 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) GetName() string
- func (self *SNetwork) GetProjectId() string
- func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope
- func (self *SNetwork) GetServerType() string
- func (self *SNetwork) GetStatus() string
- func (self *SNetwork) Refresh() error
- type SProduct
- type SRegion
- func (self *SRegion) AssignSecurityGroup(vmId, groupId string) error
- func (self *SRegion) AssociateEip(eipId, instanceId string) error
- func (self *SRegion) AttachDisk(id, diskId string) error
- func (self *SRegion) AttachKeypair(vmId, keyName string) error
- func (self *SRegion) ChangeBandwidthEip(eipId string, bandwidth int) error
- func (self *SRegion) ChangeVMConfig(id, instanceType string) error
- func (self *SRegion) CreateDisk(zoneId, name, diskType string, size int) (*SDisk, error)
- func (self *SRegion) CreateEIP(opts *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
- func (self *SRegion) CreateEip(opts *cloudprovider.SEip) (*SEip, error)
- func (self *SRegion) CreateISecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
- func (self *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
- func (self *SRegion) CreateInstance(zoneId string, opts *cloudprovider.SManagedVMCreateConfig) (string, error)
- func (self *SRegion) CreateNetwork(vpcId string, opts *cloudprovider.SNetworkCreateOptions) (*SNetwork, error)
- func (self *SRegion) CreateSecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (*SSecurityGroup, error)
- func (self *SRegion) CreateSecurityGroupRule(groupId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) error
- func (self *SRegion) CreateVpc(opts *cloudprovider.VpcCreateOptions) (*SVpc, error)
- func (self *SRegion) DeleteDisk(diskId string) error
- func (self *SRegion) DeleteEip(id string) error
- func (self *SRegion) DeleteNetwork(subnetId string) error
- func (self *SRegion) DeleteSecgroupRule(groupId, ruleId string, direction secrules.TSecurityRuleDirection) error
- func (self *SRegion) DeleteSecurityGroup(id string) error
- func (self *SRegion) DeleteVM(id string) error
- func (self *SRegion) DeleteVpc(vpcId string) error
- func (self *SRegion) DetachDisk(id, diskId string) error
- func (self *SRegion) DetachKeypair(vmId, keyName string) error
- func (self *SRegion) DissociateEip(eipId string) error
- func (region *SRegion) GetCapabilities() []string
- func (self *SRegion) GetClient() *SCtyunClient
- func (self *SRegion) GetCloudEnv() string
- func (self *SRegion) GetDisk(diskId string) (*SDisk, error)
- func (self *SRegion) GetDisks() ([]SDisk, error)
- func (self *SRegion) GetEip(eipId string) (*SEip, error)
- func (self *SRegion) GetEips(status string) ([]SEip, error)
- func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
- func (self *SRegion) GetGlobalId() string
- func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable
- func (self *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
- func (self *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error)
- func (self *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)
- func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (self *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
- func (self *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)
- func (self *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, 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) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
- func (self *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (region *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, 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) GetImages(imageType string) ([]SImage, error)
- func (self *SRegion) GetInstance(id string) (*SInstance, error)
- func (self *SRegion) GetInstanceVnc(vmId string) (string, error)
- func (self *SRegion) GetInstances(zoneId string, ids []string) ([]SInstance, error)
- func (self *SRegion) GetKeypairs(name string) ([]SKeypair, error)
- func (self *SRegion) GetName() string
- func (self *SRegion) GetNetwork(subnetId string) (*SNetwork, error)
- func (self *SRegion) GetNetwroks(vpcId string) ([]SNetwork, error)
- func (self *SRegion) GetProduct() (*SProduct, error)
- func (self *SRegion) GetProvider() string
- func (self *SRegion) GetResourceId(orderId string) (string, error)
- func (self *SRegion) GetSecurityGroup(id string) (*SSecurityGroup, error)
- func (self *SRegion) GetSecurityGroups() ([]SSecurityGroup, error)
- func (self *SRegion) GetServerSkus(zoneId string) ([]ServerSku, error)
- func (self *SRegion) GetStatus() string
- func (self *SRegion) GetVpc(vpcId string) (*SVpc, error)
- func (self *SRegion) GetVpcs() ([]SVpc, error)
- func (self *SRegion) GetZones() ([]SZone, error)
- func (self *SRegion) ImportKeypair(name, publicKey string) (*SKeypair, error)
- func (self *SRegion) RebuildRoot(vmId string, opts *cloudprovider.SManagedVMRebuildRootConfig) error
- func (self *SRegion) RenewVM(vmId string, bc *billing.SBillingCycle) ([]string, error)
- func (self *SRegion) ResetVMPassword(id, password string) error
- func (self *SRegion) ResizeDisk(diskId string, newSizeGB int64) error
- func (self *SRegion) StartVM(id string) error
- func (self *SRegion) StopVM(id string) error
- func (self *SRegion) UnsignSecurityGroup(vmId, groupId string) error
- func (self *SRegion) UpdateSecurityGroupRule(groupId, id string, direction secrules.TSecurityRuleDirection, ...) error
- func (self *SRegion) UpdateVM(vmId string, opts cloudprovider.SInstanceUpdateOptions) error
- type SSecurityGroup
- func (self *SSecurityGroup) CreateRule(opts *cloudprovider.SecurityGroupRuleCreateOptions) (cloudprovider.ISecurityGroupRule, error)
- func (self *SSecurityGroup) Delete() error
- func (self *SSecurityGroup) GetDescription() string
- func (self *SSecurityGroup) GetGlobalId() string
- func (self *SSecurityGroup) GetId() string
- func (self *SSecurityGroup) GetName() string
- func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)
- func (self *SSecurityGroup) GetStatus() string
- func (self *SSecurityGroup) GetTags() (map[string]string, error)
- func (self *SSecurityGroup) GetVpcId() string
- func (self *SSecurityGroup) Refresh() error
- type SSecurityGroupRule
- func (self *SSecurityGroupRule) Delete() error
- func (self *SSecurityGroupRule) GetAction() secrules.TSecurityRuleAction
- func (self *SSecurityGroupRule) GetCIDRs() []string
- func (self *SSecurityGroupRule) GetDescription() string
- func (self *SSecurityGroupRule) GetDirection() secrules.TSecurityRuleDirection
- func (self *SSecurityGroupRule) GetGlobalId() string
- func (self *SSecurityGroupRule) GetPorts() string
- func (self *SSecurityGroupRule) GetPriority() int
- func (self *SSecurityGroupRule) GetProtocol() string
- func (self *SSecurityGroupRule) Update(opts *cloudprovider.SecurityGroupRuleUpdateOptions) error
- type SStorage
- func (self *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
- func (self *SStorage) GetCapacityMB() int64
- func (self *SStorage) GetCapacityUsedMB() int64
- func (self *SStorage) GetEnabled() bool
- func (self *SStorage) GetGlobalId() string
- func (self *SStorage) GetIDiskById(idStr 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) GetMediumType() string
- func (self *SStorage) GetMountPoint() 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) IsSysDiskStore() bool
- type SStoragecache
- func (self *SStoragecache) GetGlobalId() string
- func (self *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
- func (self *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
- func (self *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)
- func (self *SStoragecache) GetId() string
- func (self *SStoragecache) GetName() string
- func (self *SStoragecache) GetPath() string
- func (self *SStoragecache) GetStatus() string
- func (self *SStoragecache) IsEmulated() bool
- func (self *SStoragecache) Refresh() error
- func (self *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, ...) (string, error)
- type SVpc
- func (self *SVpc) Delete() error
- func (self *SVpc) GetCidrBlock() string
- func (self *SVpc) GetGlobalId() string
- func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
- func (self *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
- func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
- func (self *SVpc) GetIWireById(id string) (cloudprovider.ICloudWire, error)
- func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (self *SVpc) GetId() string
- func (self *SVpc) GetIsDefault() bool
- func (self *SVpc) GetName() string
- func (self *SVpc) GetRegion() cloudprovider.ICloudRegion
- func (self *SVpc) GetStatus() string
- func (self *SVpc) Refresh() error
- type SWire
- func (self *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (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
- type SZone
- func (self *SZone) GetGlobalId() string
- func (self *SZone) GetI18n() cloudprovider.SModelI18nTable
- 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) GetStorages() ([]SStorage, error)
- type ServerSku
Constants ¶
View Source
const ( CLOUD_PROVIDER_CTYUN = api.CLOUD_PROVIDER_CTYUN CLOUD_PROVIDER_CTYUN_CN = "天翼云" CLOUD_PROVIDER_CTYUN_EN = CLOUD_PROVIDER_CTYUN SERVICE_ECS = "ecs" SERVICE_VPC = "vpc" SERVICE_IMAGE = "image" SERVICE_ACCT = "acct" SERVICE_EBS = "ebs" )
Variables ¶
View Source
var CtyunRegionIdMap = map[string]string{
"07323cf87fa811ea977e0242ac110002": "cn-lasa-4",
"200000001627": "cn-fuzhou-5",
"200000001681": "cn-ln-liaoyang-1",
"200000001703": "cn-sd-qd20-public-ctcloud",
"200000001704": "cn-gx-nn23-public-ctcloud",
"200000001781": "cn-hb-wh41-public-ctcloud",
"200000001788": "cn-wulumuqi-27",
"200000001790": "cn-sh36-public-ctcloud",
"200000001852": "cn-huabei2-public-ctcloud",
"200000001858": "cfbr-fsao1-public-ctcloud",
"200000001859": "cfae-fdxb1-public-ctcloud",
"200000001860": "cfde-ffra1-public-ctcloud",
"200000001861": "cfsg-fsin3-public-ctcloud",
"200000002368": "cn-xinan1-public-ctcloud",
"200000002401": "cn-hn-cs42-public-ctcloud",
"200000002527": "cn-jx-khn5-public-ctcloud",
"21c52b2a876e11ea9f6a0242ac110002": "cn-hangzhou-2",
"22c0f506ef1d11ea80620242ac110002": "cn-nanjing-4",
"276826f4313311eaaae30242ac110002": "cn-wuhan-3",
"2cdd393e876f11ea98880242ac110002": "cn-yaan-2",
"4009c41a876e11eabdc50242ac110002": "cn-wuhu-1",
"415089caaea711eab0790242ac110002": "cn-kunming-2",
"45d9efdad66f11ec9aab0242ac110002": "cn-hefei2",
"461f819e6e3e11ea9ad30242ac110002": "cn-fujian-3",
"49829300a71211ea95240242ac110002": "cn-jinzhong-2",
"52c69bbc042411ec8dac0242ac110002": "cn-nanjing-5",
"6019b5007a0b11eab5db0242ac110002": "cn-huhehaote-6",
"60a39fca876e11ea91cf0242ac110002": "cn-nanjing-3",
"705213b6876e11eaa5740242ac110002": "cn-haikou-2",
"7dcbf0ba919c11ea83d60242ac110002": "cn-tianjin-2",
"8062c840876e11ea9d060242ac110002": "cn-wuhan-5",
"8d11979c4d5d11eab0520242ac110002": "cn-foshan-3",
"8ef3dba6876e11ea8c2a0242ac110002": "cn-nanning-2",
"9833d24065a211eaa6070242ac110002": "cn-chenzhou-4",
"9859b8964d5d11eaba270242ac110002": "cn-jiangxi-2",
"990ba31c22ec11eaaebd0242ac110002": "cn-hunan-3",
"995b39bae63811ec8c4b0242ac110002": "cn-guangzhou-5",
"a10d954c70f411eab3650242ac110002": "cn-chongqing-2",
"a17034a4794111eaaa590242ac110002": "cn-shanghai-7",
"a2ed23940b3911ea98040242ac110002": "cn-shanxi-2",
"aaf589124d5d11eaa04d0242ac110002": "cn-guiyang-1",
"ad51908ca3db11ea96c20242ac110002": "cn-haerbin-2",
"aefabf04a3df11eaa3650242ac110002": "cn-zhengzhou-2",
"b6bb383e876c11ea8a5e0242ac110002": "cn-beijing-5",
"b7e069bc876e11eaa4c00242ac110002": "cn-xian-4",
"bb9fdb42056f11eda1610242ac110002": "cn-huadong1-public-ctcloud",
"d7d93102848711ea9ff10242ac110002": "cn-fuzhou-4",
"dc3aceb4412211ecb8e70242ac110002": "cn-xian-5",
"dff35c48876e11eaadc90242ac110002": "cn-lanzhou-3",
"eeed8c16e13111e9a5b40242ac110002": "cn-nanjing-2",
}
View Source
var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{ "cn-beijing-5": api.RegionBeijing, "cn-hangzhou-2": api.RegionHangzhou, "cn-nanjing-4": api.RegionNanjing, "cn-wuhan-3": api.RegionWuhan, "cn-yaan-2": api.RegionXian, "cn-wuhu-1": api.RegionWuhu, "cn-kunming-2": api.RegionKunming, "cn-hefei2": api.RegionHefei, "cn-fujian-3": api.RegionFujian, "cn-jinzhong-2": api.RegionJinzhong, "cn-nanjing-5": api.RegionNanning, "cn-huhehaote-6": api.RegionHuhehaote, "cn-nanjing-3": api.RegionNanjing, "cn-haikou-2": api.RegionHaikou, "cn-tianjin-2": api.RegionTianjin, "cn-wuhan-5": api.RegionWuhan, "cn-foshan-3": api.RegionFoshan, "cn-nanning-2": api.RegionNanning, "cn-chenzhou-4": api.RegionChengzhou, "cn-jiangxi-2": api.RegionJiangxi, "cn-hunan-3": api.RegionChangsha, "cn-guangzhou-5": api.RegionGuangzhou, "cn-chongqing-2": api.RegionChongqing, "cn-shanghai-7": api.RegionShanghai, "cn-shanxi-2": api.RegionXian, "cn-guiyang-1": api.RegionGuiyang, "cn-haerbin-2": api.RegionHaerbin, "cn-zhengzhou-2": api.RegionZhengzhou, "cn-xian-4": api.RegionXian, "cn-xian-5": api.RegionXian, "cn-lanzhou-3": api.RegionLanzhou, "cn-nanjing-2": api.RegionNanjing, }
Functions ¶
func GetBucketName ¶
Types ¶
type CtyunClientConfig ¶
type CtyunClientConfig struct {
// contains filtered or unexported fields
}
func NewSCtyunClientConfig ¶
func NewSCtyunClientConfig(accessKey, accessSecret string) *CtyunClientConfig
func (*CtyunClientConfig) CloudproviderConfig ¶
func (cfg *CtyunClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *CtyunClientConfig
func (*CtyunClientConfig) Debug ¶
func (cfg *CtyunClientConfig) Debug(debug bool) *CtyunClientConfig
type SCtyunClient ¶
type SCtyunClient struct { *CtyunClientConfig // contains filtered or unexported fields }
func NewSCtyunClient ¶
func NewSCtyunClient(cfg *CtyunClientConfig) (*SCtyunClient, error)
func (*SCtyunClient) GetAccessEnv ¶
func (self *SCtyunClient) GetAccessEnv() string
func (*SCtyunClient) GetAccountId ¶
func (client *SCtyunClient) GetAccountId() string
func (*SCtyunClient) GetBalance ¶
func (self *SCtyunClient) GetBalance()
func (*SCtyunClient) GetCapabilities ¶
func (self *SCtyunClient) GetCapabilities() []string
func (*SCtyunClient) GetCloudRegionExternalIdPrefix ¶
func (self *SCtyunClient) GetCloudRegionExternalIdPrefix() string
func (*SCtyunClient) GetIProjects ¶
func (self *SCtyunClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
func (*SCtyunClient) GetIRegionById ¶
func (self *SCtyunClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
func (*SCtyunClient) GetIRegions ¶
func (self *SCtyunClient) GetIRegions() []cloudprovider.ICloudRegion
func (*SCtyunClient) GetRegions ¶
func (self *SCtyunClient) GetRegions() ([]SRegion, error)
func (*SCtyunClient) GetSubAccounts ¶
func (self *SCtyunClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
type SDisk ¶
type SDisk struct { multicloud.SDisk CtyunTags multicloud.SBillingBase DiskName string DiskFreeze bool IsPackaged bool DiskMode string MultiAttach bool ProjectId string RegionId string DiskType string ExpireTime string IsEncrypt bool DiskSize int AzName string DiskStatus string CreateTime int64 DiskId string InstanceId string IsSystemVolume bool // contains filtered or unexported fields }
func (*SDisk) CreateISnapshot ¶
func (self *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetAccessPath ¶
func (*SDisk) GetBillingType ¶
func (*SDisk) GetCacheMode ¶
func (*SDisk) GetCreatedAt ¶
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(idStr string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetISnapshots ¶
func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetIStorage ¶
func (self *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
func (*SDisk) GetIStorageId ¶
func (*SDisk) GetIsAutoDelete ¶
func (*SDisk) GetIsNonPersistent ¶
func (*SDisk) GetMountpoint ¶
func (*SDisk) GetProjectId ¶
func (*SDisk) GetTemplateId ¶
type SEip ¶
type SEip struct { multicloud.SEipBase CtyunTags Id string Name string EipAddress string AssociationId string AssociationType string PrivateIPAddress string Bandwidth int Status string Tags string CreatedAt time.Time UpdatedAt time.Time ExpiredAt string ProjectId string // contains filtered or unexported fields }
func (*SEip) Associate ¶
func (self *SEip) Associate(opts *cloudprovider.AssociateConfig) error
func (*SEip) ChangeBandwidth ¶
func (*SEip) Dissociate ¶
func (*SEip) GetAssociationExternalId ¶
func (*SEip) GetAssociationType ¶
func (*SEip) GetBandwidth ¶
func (*SEip) GetBillingType ¶
func (*SEip) GetCreatedAt ¶
func (*SEip) GetExpiredAt ¶
func (*SEip) GetGlobalId ¶
func (*SEip) GetInternetChargeType ¶
func (*SEip) GetProjectId ¶
type SHost ¶
type SHost struct { multicloud.SHostBase // contains filtered or unexported fields }
func (*SHost) CreateVM ¶
func (self *SHost) CreateVM(opts *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
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) GetIHostNics ¶
func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
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(id string) (cloudprovider.ICloudVM, error)
func (*SHost) GetIsMaintenance ¶
func (*SHost) GetMemSizeMB ¶
func (*SHost) GetNodeCount ¶
func (*SHost) GetStorageSizeMB ¶
func (*SHost) GetStorageType ¶
func (*SHost) GetSysInfo ¶
func (self *SHost) GetSysInfo() jsonutils.JSONObject
func (*SHost) GetVersion ¶
func (*SHost) IsEmulated ¶
type SImage ¶
type SImage struct { multicloud.SImageBase CtyunTags Architecture string AzName string BootMode string ContainerFormat string CreatedTime int Description string DestinationUser string DiskFormat string DiskId string DiskSize int ImageClass string ImageId string ImageName string ImageType string MaximumRAM string MinimumRAM string OsDistro string OsType string OsVersion string ProjectId string Size int64 SourceServerId string SourceUser string Status string Tags string UpdatedTime string Visibility string // contains filtered or unexported fields }
func (*SImage) GetBios ¶
func (self *SImage) GetBios() cloudprovider.TBiosType
func (*SImage) GetCreateTime ¶
func (*SImage) GetCreatedAt ¶
func (*SImage) GetFullOsName ¶
func (*SImage) GetGlobalId ¶
func (*SImage) GetIStoragecache ¶
func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SImage) GetImageFormat ¶
func (*SImage) GetImageStatus ¶
func (*SImage) GetImageType ¶
func (self *SImage) GetImageType() cloudprovider.TImageType
func (*SImage) GetMinOsDiskSizeGb ¶
func (*SImage) GetMinRamSizeMb ¶
func (*SImage) GetOsType ¶
func (self *SImage) GetOsType() cloudprovider.TOsType
func (*SImage) GetOsVersion ¶
func (*SImage) GetSizeByte ¶
func (*SImage) IsEmulated ¶
type SInstance ¶
type SInstance struct { multicloud.SInstanceBase CtyunTags multicloud.SBillingBase AzName string ExpiredTime string CreatedTime time.Time ProjectId string AttachedVolume []string InstanceId string DisplayName string InstanceName string OsType int InstanceStatus string OnDemand bool KeypairName string Addresses []struct { VpcName string AddressList []struct { Addr string Version int Type string } } SecGroupList []struct { SecurityGroupName string SecurityGroupId string } VipInfoList []interface{} AffinityGroup string Image struct { ImageId string ImageName string } Flavor struct { FlavorId string FlavorName string FlavorCPU int FlavorRAM int GpuType string GpuCount string GpuVendor string VideoMemSize string } ResourceId string UpdatedTime time.Time AvailableDay int ZabbixName string PrivateIP string PrivateIPv6 string VipCount int VpcId string VpcName string SubnetIDList []string FixedIPList []string FloatingIP string NetworkCardList []SInstanceNic // contains filtered or unexported fields }
func (*SInstance) AttachDisk ¶
func (*SInstance) ChangeConfig ¶
func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
func (*SInstance) DeployVM ¶
func (self *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error
func (*SInstance) DetachDisk ¶
func (*SInstance) GetBillingType ¶
func (*SInstance) GetBios ¶
func (self *SInstance) GetBios() cloudprovider.TBiosType
func (*SInstance) GetBootOrder ¶
func (*SInstance) GetCreatedAt ¶
func (*SInstance) GetExpiredAt ¶
func (*SInstance) GetFullOsName ¶
func (*SInstance) GetGlobalId ¶
func (*SInstance) GetHostname ¶
func (*SInstance) GetHypervisor ¶
func (*SInstance) GetIDisks ¶
func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SInstance) GetIHost ¶
func (self *SInstance) GetIHost() cloudprovider.ICloudHost
func (*SInstance) GetInstanceType ¶
func (*SInstance) GetMachine ¶
func (*SInstance) GetOsType ¶
func (self *SInstance) GetOsType() cloudprovider.TOsType
func (*SInstance) GetOsVersion ¶
func (*SInstance) GetProjectId ¶
func (*SInstance) GetSecurityGroupIds ¶
func (*SInstance) GetVNCInfo ¶
func (self *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
func (*SInstance) GetVcpuCount ¶
func (*SInstance) GetVmemSizeMB ¶
func (*SInstance) RebuildRoot ¶
func (self *SInstance) RebuildRoot(ctx context.Context, opts *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
func (*SInstance) SetSecurityGroups ¶
func (*SInstance) StopVM ¶
func (self *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
func (*SInstance) UpdateUserData ¶
func (*SInstance) UpdateVM ¶
func (self *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error
type SInstanceNic ¶
type SInstanceNic struct { IPv4Address string IPv6Address []string IsMaster bool SubnetCidr string NetworkCardId string Gateway string SecurityGroup []string SubnetId string cloudprovider.DummyICloudNic // contains filtered or unexported fields }
func (*SInstanceNic) GetDriver ¶
func (self *SInstanceNic) GetDriver() string
func (*SInstanceNic) GetINetworkId ¶
func (self *SInstanceNic) GetINetworkId() string
func (*SInstanceNic) GetIP ¶
func (self *SInstanceNic) GetIP() string
func (*SInstanceNic) GetId ¶
func (self *SInstanceNic) GetId() string
func (*SInstanceNic) GetMAC ¶
func (self *SInstanceNic) GetMAC() string
func (*SInstanceNic) InClassicNetwork ¶
func (self *SInstanceNic) InClassicNetwork() bool
type SNetwork ¶
type SNetwork struct { multicloud.SResourceBase CtyunTags SubnetId string Name string Description string VpcId string CIDR string AvailableIPCount int GatewayIP string AvailabilityZones []string RouteTableId string NetworkAclId string Start string End string Ipv6Enabled int Ipv6CIDR string Ipv6Start string Ipv6End string Ipv6GatewayIP string DnsList []string NtpList []string Type int CreateAt time.Time // 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) GetProjectId ¶
func (*SNetwork) GetPublicScope ¶
func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope
func (*SNetwork) GetServerType ¶
type SRegion ¶
type SRegion struct { multicloud.SRegion multicloud.SNoLbRegion multicloud.SNoObjectStorageRegion IsMultiZones bool RegionParent string RegionId string RegionType string ZoneList []string RegionName string // contains filtered or unexported fields }
func (*SRegion) AssignSecurityGroup ¶
func (*SRegion) AssociateEip ¶
func (*SRegion) AttachDisk ¶
func (*SRegion) AttachKeypair ¶
func (*SRegion) ChangeBandwidthEip ¶
func (*SRegion) ChangeVMConfig ¶
func (*SRegion) CreateDisk ¶
func (*SRegion) CreateEIP ¶
func (self *SRegion) CreateEIP(opts *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
func (*SRegion) CreateISecurityGroup ¶
func (self *SRegion) CreateISecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) CreateIVpc ¶
func (self *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
func (*SRegion) CreateInstance ¶
func (self *SRegion) CreateInstance(zoneId string, opts *cloudprovider.SManagedVMCreateConfig) (string, error)
func (*SRegion) CreateNetwork ¶
func (self *SRegion) CreateNetwork(vpcId string, opts *cloudprovider.SNetworkCreateOptions) (*SNetwork, error)
func (*SRegion) CreateSecurityGroup ¶
func (self *SRegion) CreateSecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (*SSecurityGroup, error)
func (*SRegion) CreateSecurityGroupRule ¶
func (self *SRegion) CreateSecurityGroupRule(groupId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) error
func (*SRegion) CreateVpc ¶
func (self *SRegion) CreateVpc(opts *cloudprovider.VpcCreateOptions) (*SVpc, error)
func (*SRegion) DeleteDisk ¶
func (*SRegion) DeleteNetwork ¶
func (*SRegion) DeleteSecgroupRule ¶
func (self *SRegion) DeleteSecgroupRule(groupId, ruleId string, direction secrules.TSecurityRuleDirection) error
func (*SRegion) DeleteSecurityGroup ¶
func (*SRegion) DetachDisk ¶
func (*SRegion) DetachKeypair ¶
func (*SRegion) DissociateEip ¶
func (*SRegion) GetCapabilities ¶
func (*SRegion) GetClient ¶
func (self *SRegion) GetClient() *SCtyunClient
func (*SRegion) GetCloudEnv ¶
func (*SRegion) GetGeographicInfo ¶
func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
func (*SRegion) GetGlobalId ¶
func (*SRegion) GetI18n ¶
func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable
func (*SRegion) GetIDiskById ¶
func (self *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
func (*SRegion) GetIEipById ¶
func (self *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error)
func (*SRegion) GetIHostById ¶
func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SRegion) GetIHosts ¶
func (self *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SRegion) GetISecurityGroupById ¶
func (self *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISecurityGroups ¶
func (self *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, 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) GetIStoragecaches ¶
func (self *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIStorages ¶
func (self *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SRegion) GetIVMById ¶
func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, 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) GetInstances ¶
func (*SRegion) GetProduct ¶
func (*SRegion) GetProvider ¶
func (*SRegion) GetSecurityGroup ¶
func (self *SRegion) GetSecurityGroup(id string) (*SSecurityGroup, error)
func (*SRegion) GetSecurityGroups ¶
func (self *SRegion) GetSecurityGroups() ([]SSecurityGroup, error)
func (*SRegion) GetServerSkus ¶
func (*SRegion) ImportKeypair ¶
func (*SRegion) RebuildRoot ¶
func (self *SRegion) RebuildRoot(vmId string, opts *cloudprovider.SManagedVMRebuildRootConfig) error
func (*SRegion) ResetVMPassword ¶
func (*SRegion) UnsignSecurityGroup ¶
func (*SRegion) UpdateSecurityGroupRule ¶
func (self *SRegion) UpdateSecurityGroupRule(groupId, id string, direction secrules.TSecurityRuleDirection, opts *cloudprovider.SecurityGroupRuleUpdateOptions) error
func (*SRegion) UpdateVM ¶
func (self *SRegion) UpdateVM(vmId string, opts cloudprovider.SInstanceUpdateOptions) error
type SSecurityGroup ¶
type SSecurityGroup struct { multicloud.SSecurityGroup CtyunTags SecurityGroupName string Id string VMNum int Origin string //VpcName string //VpcId string CreationTime time.Time Description string ProjectId string SecurityGroupRuleList []SSecurityGroupRule // contains filtered or unexported fields }
func (*SSecurityGroup) CreateRule ¶
func (self *SSecurityGroup) CreateRule(opts *cloudprovider.SecurityGroupRuleCreateOptions) (cloudprovider.ISecurityGroupRule, error)
func (*SSecurityGroup) Delete ¶
func (self *SSecurityGroup) Delete() error
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) GetName ¶
func (self *SSecurityGroup) GetName() string
func (*SSecurityGroup) GetRules ¶
func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)
func (*SSecurityGroup) GetStatus ¶
func (self *SSecurityGroup) GetStatus() string
func (*SSecurityGroup) GetVpcId ¶
func (self *SSecurityGroup) GetVpcId() string
func (*SSecurityGroup) Refresh ¶
func (self *SSecurityGroup) Refresh() error
type SSecurityGroupRule ¶
type SSecurityGroupRule struct { Direction string Priority int Ethertype string Protocol string DestCidrIP string Description string Origin string CreateTime time.Time Id string Action string SecurityGroupId string Range string // contains filtered or unexported fields }
func (*SSecurityGroupRule) Delete ¶
func (self *SSecurityGroupRule) Delete() error
func (*SSecurityGroupRule) GetAction ¶
func (self *SSecurityGroupRule) GetAction() secrules.TSecurityRuleAction
func (*SSecurityGroupRule) GetCIDRs ¶
func (self *SSecurityGroupRule) GetCIDRs() []string
func (*SSecurityGroupRule) GetDescription ¶
func (self *SSecurityGroupRule) GetDescription() string
func (*SSecurityGroupRule) GetDirection ¶
func (self *SSecurityGroupRule) GetDirection() secrules.TSecurityRuleDirection
func (*SSecurityGroupRule) GetGlobalId ¶
func (self *SSecurityGroupRule) GetGlobalId() string
func (*SSecurityGroupRule) GetPorts ¶
func (self *SSecurityGroupRule) GetPorts() string
func (*SSecurityGroupRule) GetPriority ¶
func (self *SSecurityGroupRule) GetPriority() int
func (*SSecurityGroupRule) GetProtocol ¶
func (self *SSecurityGroupRule) GetProtocol() string
func (*SSecurityGroupRule) Update ¶
func (self *SSecurityGroupRule) Update(opts *cloudprovider.SecurityGroupRuleUpdateOptions) error
type SStorage ¶
type SStorage struct { multicloud.SStorageBase CtyunTags Name string // contains filtered or unexported fields }
func (*SStorage) CreateIDisk ¶
func (self *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetCapacityMB ¶
func (*SStorage) GetCapacityUsedMB ¶
func (*SStorage) GetEnabled ¶
func (*SStorage) GetGlobalId ¶
func (*SStorage) GetIDiskById ¶
func (self *SStorage) GetIDiskById(idStr 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) GetMediumType ¶
func (*SStorage) GetMountPoint ¶
func (*SStorage) GetStorageConf ¶
func (self *SStorage) GetStorageConf() jsonutils.JSONObject
func (*SStorage) GetStorageType ¶
func (*SStorage) IsEmulated ¶
func (*SStorage) IsSysDiskStore ¶
type SStoragecache ¶
type SStoragecache struct { multicloud.SResourceBase CtyunTags // contains filtered or unexported fields }
func (*SStoragecache) GetGlobalId ¶
func (self *SStoragecache) GetGlobalId() string
func (*SStoragecache) GetICloudImages ¶
func (self *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetICustomizedCloudImages ¶
func (self *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetIImageById ¶
func (self *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)
func (*SStoragecache) GetId ¶
func (self *SStoragecache) GetId() string
func (*SStoragecache) GetName ¶
func (self *SStoragecache) GetName() string
func (*SStoragecache) GetPath ¶
func (self *SStoragecache) GetPath() 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(ctx context.Context, image *cloudprovider.SImageCreateOption, update func(progress float32)) (string, error)
type SVpc ¶
type SVpc struct { multicloud.SVpc CtyunTags VpcId string Name string Description string CIDR string Ipv6Enabled bool SubnetIDs []string NatGatewayIDs []string ProjectId string Ipv6CIDRS []string EnableIpv6 bool SecondaryCIDRS []string // contains filtered or unexported fields }
func (*SVpc) GetCidrBlock ¶
func (*SVpc) GetGlobalId ¶
func (*SVpc) GetIRouteTableById ¶
func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetIRouteTables ¶
func (self *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetISecurityGroups ¶
func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SVpc) GetIWireById ¶
func (self *SVpc) GetIWireById(id string) (cloudprovider.ICloudWire, error)
func (*SVpc) GetIWires ¶
func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SVpc) GetIsDefault ¶
func (*SVpc) GetRegion ¶
func (self *SVpc) GetRegion() cloudprovider.ICloudRegion
type SWire ¶
type SWire struct { multicloud.SResourceBase CtyunTags // contains filtered or unexported fields }
func (*SWire) CreateINetwork ¶
func (self *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (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 { multicloud.SResourceBase CtyunTags AzDisplayName string Name string // contains filtered or unexported fields }
func (*SZone) GetGlobalId ¶
func (*SZone) GetI18n ¶
func (self *SZone) GetI18n() cloudprovider.SModelI18nTable
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) GetStorages ¶
type ServerSku ¶
type ServerSku struct { GpuVendor string `json:"gpuVendor"` CPUInfo string `json:"cpuInfo"` BaseBandwidth float64 `json:"baseBandwidth"` FlavorName string `json:"flavorName"` VideoMemSize int `json:"videoMemSize"` FlavorType string `json:"flavorType"` FlavorSeries string `json:"flavorSeries"` FlavorRAM int `json:"flavorRAM"` NicMultiQueue int `json:"nicMultiQueue"` Pps string `json:"pps"` FlavorCPU int `json:"flavorCPU"` Bandwidth int `json:"bandwidth"` GpuType string `json:"gpuType"` FlavorId string `json:"flavorID"` GpuCount int `json:"gpuCount"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.