Documentation ¶
Index ¶
- Constants
- Variables
- type JDCloudClientConfig
- type JdcloudTags
- type Logger
- type SBalance
- type SDBInstance
- func (self *SDBInstance) Delete() error
- func (self *SDBInstance) GetCategory() string
- func (self *SDBInstance) GetConnectionStr() string
- func (self *SDBInstance) GetCreatedAt() time.Time
- func (self *SDBInstance) GetDiskSizeGB() int
- func (self *SDBInstance) GetEngine() string
- func (self *SDBInstance) GetEngineVersion() string
- func (self *SDBInstance) GetExpiredAt() time.Time
- func (self *SDBInstance) GetGlobalId() string
- func (self *SDBInstance) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)
- func (self *SDBInstance) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
- func (self *SDBInstance) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)
- func (self *SDBInstance) GetIVpcId() string
- func (self *SDBInstance) GetId() string
- func (self *SDBInstance) GetInstanceType() string
- func (self *SDBInstance) GetInternalConnectionStr() string
- func (self *SDBInstance) GetMaintainTime() string
- func (self *SDBInstance) GetMasterInstanceId() string
- func (self *SDBInstance) GetName() string
- func (self *SDBInstance) GetPort() int
- func (self *SDBInstance) GetStatus() string
- func (self *SDBInstance) GetStorageType() string
- func (self *SDBInstance) GetVcpuCount() int
- func (self *SDBInstance) GetVmemSizeMB() int
- func (self *SDBInstance) GetZone1Id() string
- func (self *SDBInstance) GetZone2Id() string
- func (self *SDBInstance) GetZone3Id() string
- func (self *SDBInstance) Refresh() error
- type SDBInstanceAccount
- func (self *SDBInstanceAccount) GetGlobalId() string
- func (self *SDBInstanceAccount) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error)
- func (self *SDBInstanceAccount) GetId() string
- func (self *SDBInstanceAccount) GetName() string
- func (self *SDBInstanceAccount) GetStatus() string
- type SDBInstanceAccountPrivilege
- type SDBInstanceBackup
- func (self *SDBInstanceBackup) GetBackupMethod() cloudprovider.TBackupMethod
- func (self *SDBInstanceBackup) GetBackupMode() string
- func (self *SDBInstanceBackup) GetBackupSizeMb() int
- func (self *SDBInstanceBackup) GetDBInstanceId() string
- func (self *SDBInstanceBackup) GetDBNames() string
- func (self *SDBInstanceBackup) GetEndTime() time.Time
- func (self *SDBInstanceBackup) GetEngine() string
- func (self *SDBInstanceBackup) GetEngineVersion() string
- func (self *SDBInstanceBackup) GetGlobalId() string
- func (self *SDBInstanceBackup) GetId() string
- func (self *SDBInstanceBackup) GetName() string
- func (self *SDBInstanceBackup) GetStartTime() time.Time
- func (self *SDBInstanceBackup) GetStatus() string
- type SDBInstanceDatabase
- type SDisk
- func (d *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)
- func (d *SDisk) Delete(ctx context.Context) error
- func (d *SDisk) GetAccessPath() string
- func (d *SDisk) GetBillingType() string
- func (d *SDisk) GetCacheMode() string
- func (d *SDisk) GetDiskFormat() string
- func (d *SDisk) GetDiskSizeMB() int
- func (d *SDisk) GetDiskType() string
- func (d *SDisk) GetDriver() string
- func (d *SDisk) GetExpiredAt() time.Time
- func (d *SDisk) GetFsFormat() string
- func (d *SDisk) GetGlobalId() string
- func (d *SDisk) GetISnapshot(id string) (cloudprovider.ICloudSnapshot, error)
- func (s *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (d *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
- func (d *SDisk) GetId() string
- func (d *SDisk) GetIops() int
- func (d *SDisk) GetIsAutoDelete() bool
- func (d *SDisk) GetIsNonPersistent() bool
- func (d *SDisk) GetMountpoint() string
- func (d *SDisk) GetName() string
- func (d *SDisk) GetProjectId() string
- func (d *SDisk) GetStatus() string
- func (d *SDisk) GetSysTags() map[string]string
- func (d *SDisk) GetTemplateId() string
- func (d *SDisk) IsEmulated() bool
- func (s *SDisk) Rebuild(ctx context.Context) error
- func (d *SDisk) Refresh() error
- func (s *SDisk) Reset(ctx context.Context, snapshotId string) (string, error)
- func (s *SDisk) Resize(ctx context.Context, newSizeMB int64) error
- type SEip
- func (e *SEip) Associate(conf *cloudprovider.AssociateConfig) error
- func (e *SEip) ChangeBandwidth(bw int) error
- func (e *SEip) Delete() error
- func (e *SEip) Dissociate() error
- func (e *SEip) GetAssociationExternalId() string
- func (e *SEip) GetAssociationType() string
- func (e *SEip) GetBandwidth() int
- func (e *SEip) GetBillingType() string
- func (e *SEip) GetCreatedAt() time.Time
- func (e *SEip) GetExpiredAt() time.Time
- func (e *SEip) GetGlobalId() string
- func (e *SEip) GetINetworkId() string
- func (e *SEip) GetId() string
- func (e *SEip) GetInternetChargeType() string
- func (e *SEip) GetIpAddr() string
- func (e *SEip) GetMode() string
- func (e *SEip) GetName() string
- func (e *SEip) GetProjectId() string
- func (e *SEip) GetStatus() string
- func (e *SEip) IsEmulated() bool
- func (e *SEip) Refresh() error
- type SHost
- func (h *SHost) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
- func (h *SHost) GetAccessIp() string
- func (h *SHost) GetAccessMac() string
- func (h *SHost) GetCpuCount() int
- func (h *SHost) GetCpuDesc() string
- func (h *SHost) GetCpuMhz() int
- func (h *SHost) GetEnabled() bool
- func (h *SHost) GetGlobalId() string
- func (h *SHost) GetHostStatus() string
- func (h *SHost) GetHostType() string
- func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
- func (h *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (h *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (h *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (h *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (h *SHost) GetId() string
- func (h *SHost) GetIsMaintenance() bool
- func (h *SHost) GetMemSizeMB() int
- func (h *SHost) GetName() string
- func (h *SHost) GetNodeCount() int8
- func (h *SHost) GetSN() string
- func (h *SHost) GetStatus() string
- func (h *SHost) GetStorageSizeMB() int64
- func (h *SHost) GetStorageType() string
- func (h *SHost) GetSysInfo() jsonutils.JSONObject
- func (h *SHost) GetVersion() string
- func (h *SHost) IsEmulated() bool
- func (h *SHost) Refresh() error
- type SImage
- func (i *SImage) Delete(ctx context.Context) error
- func (i *SImage) GetBios() cloudprovider.TBiosType
- func (i *SImage) GetCreatedAt() time.Time
- func (i *SImage) GetDescription() string
- func (i *SImage) GetFullOsName() string
- func (i *SImage) GetGlobalId() string
- func (i *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (i *SImage) GetId() string
- func (i *SImage) GetImageFormat() string
- func (i *SImage) GetImageStatus() string
- func (i *SImage) GetImageType() cloudprovider.TImageType
- func (i *SImage) GetMinOsDiskSizeGb() int
- func (i *SImage) GetMinRamSizeMb() int
- func (i *SImage) GetName() string
- func (i *SImage) GetOsArch() string
- func (i *SImage) GetOsDist() string
- func (i *SImage) GetOsLang() string
- func (i *SImage) GetOsType() cloudprovider.TOsType
- func (i *SImage) GetOsVersion() string
- func (i *SImage) GetSizeByte() int64
- func (i *SImage) GetStatus() string
- func (i *SImage) IsEmulated() bool
- func (i *SImage) Refresh() error
- type SInstance
- func (in *SInstance) AttachDisk(ctx context.Context, diskId string) error
- func (in *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
- func (in *SInstance) DeleteVM(ctx context.Context) error
- func (self *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error
- func (in *SInstance) DetachDisk(ctx context.Context, diskId string) error
- func (i *SInstance) GetBillingType() string
- func (i *SInstance) GetBios() cloudprovider.TBiosType
- func (i *SInstance) GetBootOrder() string
- func (self *SInstance) GetError() error
- func (i *SInstance) GetExpiredAt() time.Time
- func (i *SInstance) GetFullOsName() string
- func (i *SInstance) GetGlobalId() string
- func (i *SInstance) GetHostname() string
- func (in *SInstance) GetHypervisor() string
- func (in *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (in *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (in *SInstance) GetIHost() cloudprovider.ICloudHost
- func (in *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)
- func (i *SInstance) GetId() string
- func (i *SInstance) GetImage() (*SImage, error)
- func (i *SInstance) GetInstanceType() string
- func (i *SInstance) GetMachine() string
- func (i *SInstance) GetName() string
- func (i *SInstance) GetOsArch() string
- func (i *SInstance) GetOsDist() string
- func (i *SInstance) GetOsLang() string
- func (i *SInstance) GetOsType() cloudprovider.TOsType
- func (i *SInstance) GetOsVersion() string
- func (in *SInstance) GetProjectId() string
- func (in *SInstance) GetSecurityGroupIds() ([]string, error)
- func (i *SInstance) GetStatus() string
- func (in *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
- func (in *SInstance) GetVcpuCount() int
- func (i *SInstance) GetVdi() string
- func (i *SInstance) GetVga() string
- func (in *SInstance) GetVmemSizeMB() int
- func (i *SInstance) IsEmulated() bool
- func (self *SInstance) RebuildRoot(ctx context.Context, config *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
- func (i *SInstance) Refresh() error
- func (self *SInstance) Renew(bc billing.SBillingCycle) error
- func (in *SInstance) SetSecurityGroups(ids []string) error
- func (in *SInstance) StartVM(ctx context.Context) error
- func (in *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
- func (in *SInstance) UpdateUserData(userData string) error
- func (in *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error
- type SInstanceNic
- type SInstanceType
- type SJDCloudClient
- func (self *SJDCloudClient) DescribeAccountAmount() (*SBalance, error)
- func (self *SJDCloudClient) GetAccountId() string
- func (self *SJDCloudClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
- func (self *SJDCloudClient) GetIRegions() []cloudprovider.ICloudRegion
- func (self *SJDCloudClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
- func (self *SJDCloudClient) GetRdsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
- func (self *SJDCloudClient) GetRegion(regionId string) *SRegion
- func (self *SJDCloudClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- type SNetwork
- func (n *SNetwork) Cidr() string
- func (n *SNetwork) Delete() error
- func (n *SNetwork) GetAllocTimeoutSeconds() int
- func (n *SNetwork) GetGateway() string
- func (n *SNetwork) GetGlobalId() string
- func (n *SNetwork) GetIWire() cloudprovider.ICloudWire
- func (n *SNetwork) GetId() string
- func (n *SNetwork) GetIpEnd() string
- func (n *SNetwork) GetIpMask() int8
- func (n *SNetwork) GetIpStart() string
- func (n *SNetwork) GetIsPublic() bool
- func (n *SNetwork) GetName() string
- func (n *SNetwork) GetProjectId() string
- func (n *SNetwork) GetPublicScope() rbacscope.TRbacScope
- func (n *SNetwork) GetServerType() string
- func (n *SNetwork) GetStatus() string
- func (n *SNetwork) IsEmulated() bool
- func (n *SNetwork) Refresh() error
- type SNetworkInterface
- func (nic *SNetworkInterface) GetAssociateId() string
- func (nic *SNetworkInterface) GetAssociateType() string
- func (nic *SNetworkInterface) GetGlobalId() string
- func (nic *SNetworkInterface) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)
- func (nic *SNetworkInterface) GetId() string
- func (nic *SNetworkInterface) GetMacAddress() string
- func (nic *SNetworkInterface) GetName() string
- func (nic *SNetworkInterface) GetStatus() string
- type SNetworkInterfacePrivateIp
- type SRegion
- func (self *SRegion) DeleteDBInstance(id string) error
- func (r *SRegion) FillHost(instance *SInstance)
- func (r *SRegion) GetCapabilities() []string
- func (self *SRegion) GetClient() *SJDCloudClient
- func (self *SRegion) GetDBInstance(id string) (*SDBInstance, error)
- func (self *SRegion) GetDBInstanceAccounts(id string, pageNumber, pageSize int) ([]SDBInstanceAccount, int, error)
- func (self *SRegion) GetDBInstanceBackups(id string, pageNumber, pageSize int) ([]SDBInstanceBackup, int, error)
- func (self *SRegion) GetDBInstanceDatabases(id string, pageNumber, pageSize int) ([]SDBInstanceDatabase, int, error)
- func (self *SRegion) GetDBInstances(pageNumber int, pageSize int) ([]SDBInstance, int, error)
- func (r *SRegion) GetDiskById(id string) (*SDisk, error)
- func (r *SRegion) GetDisks(instanceId, zoneId, diskType string, diskIds []string, ...) ([]SDisk, int, error)
- func (r *SRegion) GetEIPById(id string) (*SEip, error)
- func (r *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
- func (r *SRegion) GetGlobalId() string
- func (r *SRegion) GetI18n() cloudprovider.SModelI18nTable
- func (self *SRegion) GetIDBInstanceById(id string) (cloudprovider.ICloudDBInstance, error)
- func (self *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error)
- func (r *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
- func (r *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error)
- func (r *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)
- func (r *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (r *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
- func (r *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (r *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
- func (r *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
- func (r *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (r *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (region *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (r *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
- func (r *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error)
- func (r *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
- func (r *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
- func (r *SRegion) GetId() string
- func (r *SRegion) GetImage(imageId string) (*SImage, error)
- func (r *SRegion) GetImages(imageIds []string, imageSource string, pageNumber, pageSize int) ([]SImage, int, error)
- func (r *SRegion) GetInstanceById(id string) (*SInstance, error)
- func (r *SRegion) GetInstances(zoneId string, ids []string, pangeNumber, pageSize int) ([]SInstance, int, error)
- func (r *SRegion) GetName() string
- func (r *SRegion) GetNetworkById(id string) (*SNetwork, error)
- func (r *SRegion) GetNetworks(vpcId string, pageNumber int, pageSize int) ([]SNetwork, int, error)
- func (r *SRegion) GetProvider() string
- func (r *SRegion) GetSecurityGroups(vpcId string, securityGroupIds []string, pageNumber int, pageSize int) ([]SSecurityGroup, int, error)
- func (r *SRegion) GetSnapshotById(id string) (*SSnapshot, error)
- func (r *SRegion) GetSnapshots(diskId string, pageNumber, pageSize int) ([]SSnapshot, int, error)
- func (r *SRegion) GetStatus() string
- func (r *SRegion) GetVpcById(id string) (*SVpc, error)
- func (r *SRegion) GetVpcs(pageNumber, pageSize int) (vpcs []SVpc, total int, err error)
- func (r *SRegion) InstanceTypes(instanceTypes ...string) ([]SInstanceType, error)
- func (r *SRegion) IsEmulated() bool
- func (r *SRegion) Refresh() error
- type SSecurityGroup
- func (sg *SSecurityGroup) Delete() error
- func (sg *SSecurityGroup) GetDescription() string
- func (sg *SSecurityGroup) GetGlobalId() string
- func (sg *SSecurityGroup) GetId() string
- func (sg *SSecurityGroup) GetName() string
- func (sg *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)
- func (sg *SSecurityGroup) GetStatus() string
- func (sg *SSecurityGroup) GetVpcId() string
- type SSnapshot
- func (s *SSnapshot) Delete() error
- func (s *SSnapshot) GetDiskId() string
- func (s *SSnapshot) GetDiskType() string
- func (s *SSnapshot) GetGlobalId() string
- func (s *SSnapshot) GetId() string
- func (s *SSnapshot) GetName() string
- func (s *SSnapshot) GetProjectId() string
- func (s *SSnapshot) GetSizeMb() int32
- func (s *SSnapshot) GetStatus() string
- func (s *SSnapshot) IsEmulated() bool
- func (s *SSnapshot) Refresh() error
- type SStorage
- func (s *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
- func (s *SStorage) DisableSync() bool
- func (s *SStorage) GetCapacityMB() int64
- func (s *SStorage) GetCapacityUsedMB() int64
- func (s *SStorage) GetEnabled() bool
- func (s *SStorage) GetGlobalId() string
- func (s *SStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error)
- func (s *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (s *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (s *SStorage) GetIZone() cloudprovider.ICloudZone
- func (s *SStorage) GetId() string
- func (s *SStorage) GetMediumType() string
- func (s *SStorage) GetMountPoint() string
- func (s *SStorage) GetName() string
- func (s *SStorage) GetStatus() string
- func (s *SStorage) GetStorageConf() jsonutils.JSONObject
- func (s *SStorage) GetStorageType() string
- func (s *SStorage) IsEmulated() bool
- func (s *SStorage) IsSysDiskStore() bool
- func (s *SStorage) Refresh() error
- type SStoragecache
- func (sc *SStoragecache) GetGlobalId() string
- func (sc *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
- func (sc *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
- func (sc *SStoragecache) GetIImageById(exId string) (cloudprovider.ICloudImage, error)
- func (sc *SStoragecache) GetId() string
- func (sc *SStoragecache) GetName() string
- func (sc *SStoragecache) GetPath() string
- func (sc *SStoragecache) GetStatus() string
- func (sc *SStoragecache) IsEmulated() bool
- func (sc *SStoragecache) Refresh() error
- func (sc *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, ...) (string, error)
- type SVpc
- func (v *SVpc) Delete() error
- func (v *SVpc) GetCidrBlock() string
- func (v *SVpc) GetGlobalId() string
- func (v *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
- func (v *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
- func (v *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
- func (v *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
- func (v *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (v *SVpc) GetId() string
- func (v *SVpc) GetIsDefault() bool
- func (v *SVpc) GetName() string
- func (v *SVpc) GetRegion() cloudprovider.ICloudRegion
- func (v *SVpc) GetStatus() string
- func (v *SVpc) GetWire() *SWire
- func (v *SVpc) IsEmulated() bool
- func (v *SVpc) Refresh() error
- type SWire
- func (w *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
- func (w *SWire) CreateNetworks() (*SNetwork, error)
- func (w *SWire) GetBandwidth() int
- func (w *SWire) GetGlobalId() string
- func (w *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)
- func (w *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
- func (w *SWire) GetIVpc() cloudprovider.ICloudVpc
- func (w *SWire) GetIZone() cloudprovider.ICloudZone
- func (w *SWire) GetId() string
- func (w *SWire) GetName() string
- func (w *SWire) GetStatus() string
- func (w *SWire) IsEmulated() bool
- func (w *SWire) Refresh() error
- type SZone
- func (z *SZone) GetGlobalId() string
- func (z *SZone) GetI18n() cloudprovider.SModelI18nTable
- func (z *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (z *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
- func (z *SZone) GetIRegion() cloudprovider.ICloudRegion
- func (z *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (z *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (z *SZone) GetId() string
- func (z *SZone) GetName() string
- func (z *SZone) GetStatus() string
- func (z *SZone) IsEmulated() bool
- func (z *SZone) Refresh() error
Constants ¶
View Source
const ( CLOUD_PROVIDER_JDCLOUD = api.CLOUD_PROVIDER_JDCLOUD CLOUD_PROVIDER_JDCLOUD_CN = "京东云" CLOUD_PROVIDER_JDCLOUD_EN = "JDcloud" JDCLOUD_DEFAULT_REGION = "cn-north-1" )
Variables ¶
View Source
var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{ "cn-south-1": {Latitude: 23.129110, Longitude: 113.264381, City: api.CITY_GUANG_ZHOU, CountryCode: api.COUNTRY_CODE_CN}, "cn-north-1": {Latitude: 39.904202, Longitude: 116.407394, City: api.CITY_BEI_JING, CountryCode: api.COUNTRY_CODE_CN}, "cn-east-2": {Latitude: 31.210344, Longitude: 121.455364, City: api.CITY_SHANG_HAI, CountryCode: api.COUNTRY_CODE_CN}, "cn-east-1": {Latitude: 33.939763, Longitude: 118.267582, City: api.CITY_SU_QIAN, CountryCode: api.COUNTRY_CODE_CN}, }
View Source
var ZonesInRegion = map[string][]sZoneIden{
"cn-north-1": {
{
Id: "cn-north-1a",
Name: "可用区A",
},
{
Id: "cn-north-1b",
Name: "可用区B",
},
{
Id: "cn-north-1c",
Name: "可用区C",
},
},
"cn-east-1": {
{
Id: "cn-east-1a",
Name: "可用区A",
},
},
"cn-east-2": {
{
Id: "cn-east-2a",
Name: "可用区A",
},
{
Id: "cn-east-2b",
Name: "可用区B",
},
{
Id: "cn-east-2c",
Name: "可用区C",
},
},
"cn-south-1": {
{
Id: "cn-south-1a",
Name: "可用区A",
},
{
Id: "cn-south-1b",
Name: "可用区B",
},
{
Id: "cn-south-1c",
Name: "可用区C",
},
},
}
Functions ¶
This section is empty.
Types ¶
type JDCloudClientConfig ¶
type JDCloudClientConfig struct {
// contains filtered or unexported fields
}
func NewJDCloudClientConfig ¶
func NewJDCloudClientConfig(accessKey, accessSecret string) *JDCloudClientConfig
func (*JDCloudClientConfig) CloudproviderConfig ¶
func (cfg *JDCloudClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *JDCloudClientConfig
func (*JDCloudClientConfig) Debug ¶
func (cfg *JDCloudClientConfig) Debug(debug bool) *JDCloudClientConfig
type JdcloudTags ¶
type JdcloudTags struct { }
func (*JdcloudTags) GetSysTags ¶
func (self *JdcloudTags) GetSysTags() map[string]string
type SBalance ¶
type SBalance struct {
apis.DescribeAccountAmountResult
}
type SDBInstance ¶
type SDBInstance struct { multicloud.SDBInstanceBase JdcloudTags models.DBInstance // contains filtered or unexported fields }
func (*SDBInstance) Delete ¶
func (self *SDBInstance) Delete() error
func (*SDBInstance) GetCategory ¶
func (self *SDBInstance) GetCategory() string
func (*SDBInstance) GetConnectionStr ¶
func (self *SDBInstance) GetConnectionStr() string
func (*SDBInstance) GetCreatedAt ¶
func (self *SDBInstance) GetCreatedAt() time.Time
func (*SDBInstance) GetDiskSizeGB ¶
func (self *SDBInstance) GetDiskSizeGB() int
func (*SDBInstance) GetEngine ¶
func (self *SDBInstance) GetEngine() string
func (*SDBInstance) GetEngineVersion ¶
func (self *SDBInstance) GetEngineVersion() string
func (*SDBInstance) GetExpiredAt ¶
func (self *SDBInstance) GetExpiredAt() time.Time
func (*SDBInstance) GetGlobalId ¶
func (self *SDBInstance) GetGlobalId() string
func (*SDBInstance) GetIDBInstanceAccounts ¶
func (self *SDBInstance) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)
func (*SDBInstance) GetIDBInstanceBackups ¶
func (self *SDBInstance) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
func (*SDBInstance) GetIDBInstanceDatabases ¶
func (self *SDBInstance) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)
func (*SDBInstance) GetIVpcId ¶
func (self *SDBInstance) GetIVpcId() string
func (*SDBInstance) GetId ¶
func (self *SDBInstance) GetId() string
func (*SDBInstance) GetInstanceType ¶
func (self *SDBInstance) GetInstanceType() string
func (*SDBInstance) GetInternalConnectionStr ¶
func (self *SDBInstance) GetInternalConnectionStr() string
func (*SDBInstance) GetMaintainTime ¶
func (self *SDBInstance) GetMaintainTime() string
func (*SDBInstance) GetMasterInstanceId ¶
func (self *SDBInstance) GetMasterInstanceId() string
func (*SDBInstance) GetName ¶
func (self *SDBInstance) GetName() string
func (*SDBInstance) GetPort ¶
func (self *SDBInstance) GetPort() int
func (*SDBInstance) GetStatus ¶
func (self *SDBInstance) GetStatus() string
func (*SDBInstance) GetStorageType ¶
func (self *SDBInstance) GetStorageType() string
func (*SDBInstance) GetVcpuCount ¶
func (self *SDBInstance) GetVcpuCount() int
func (*SDBInstance) GetVmemSizeMB ¶
func (self *SDBInstance) GetVmemSizeMB() int
func (*SDBInstance) GetZone1Id ¶
func (self *SDBInstance) GetZone1Id() string
func (*SDBInstance) GetZone2Id ¶
func (self *SDBInstance) GetZone2Id() string
func (*SDBInstance) GetZone3Id ¶
func (self *SDBInstance) GetZone3Id() string
func (*SDBInstance) Refresh ¶
func (self *SDBInstance) Refresh() error
type SDBInstanceAccount ¶
type SDBInstanceAccount struct { multicloud.SDBInstanceAccountBase JdcloudTags models.Account // contains filtered or unexported fields }
func (*SDBInstanceAccount) GetGlobalId ¶
func (self *SDBInstanceAccount) GetGlobalId() string
func (*SDBInstanceAccount) GetIDBInstanceAccountPrivileges ¶
func (self *SDBInstanceAccount) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error)
func (*SDBInstanceAccount) GetId ¶
func (self *SDBInstanceAccount) GetId() string
func (*SDBInstanceAccount) GetName ¶
func (self *SDBInstanceAccount) GetName() string
func (*SDBInstanceAccount) GetStatus ¶
func (self *SDBInstanceAccount) GetStatus() string
type SDBInstanceAccountPrivilege ¶
type SDBInstanceAccountPrivilege struct { models.AccountPrivilege Account string }
func (*SDBInstanceAccountPrivilege) GetDBName ¶
func (self *SDBInstanceAccountPrivilege) GetDBName() string
func (*SDBInstanceAccountPrivilege) GetGlobalId ¶
func (self *SDBInstanceAccountPrivilege) GetGlobalId() string
func (*SDBInstanceAccountPrivilege) GetPrivilege ¶
func (self *SDBInstanceAccountPrivilege) GetPrivilege() string
type SDBInstanceBackup ¶
type SDBInstanceBackup struct { multicloud.SDBInstanceBackupBase JdcloudTags models.Backup // contains filtered or unexported fields }
func (*SDBInstanceBackup) GetBackupMethod ¶
func (self *SDBInstanceBackup) GetBackupMethod() cloudprovider.TBackupMethod
func (*SDBInstanceBackup) GetBackupMode ¶
func (self *SDBInstanceBackup) GetBackupMode() string
func (*SDBInstanceBackup) GetBackupSizeMb ¶
func (self *SDBInstanceBackup) GetBackupSizeMb() int
func (*SDBInstanceBackup) GetDBInstanceId ¶
func (self *SDBInstanceBackup) GetDBInstanceId() string
func (*SDBInstanceBackup) GetDBNames ¶
func (self *SDBInstanceBackup) GetDBNames() string
func (*SDBInstanceBackup) GetEndTime ¶
func (self *SDBInstanceBackup) GetEndTime() time.Time
func (*SDBInstanceBackup) GetEngine ¶
func (self *SDBInstanceBackup) GetEngine() string
func (*SDBInstanceBackup) GetEngineVersion ¶
func (self *SDBInstanceBackup) GetEngineVersion() string
func (*SDBInstanceBackup) GetGlobalId ¶
func (self *SDBInstanceBackup) GetGlobalId() string
func (*SDBInstanceBackup) GetId ¶
func (self *SDBInstanceBackup) GetId() string
func (*SDBInstanceBackup) GetName ¶
func (self *SDBInstanceBackup) GetName() string
func (*SDBInstanceBackup) GetStartTime ¶
func (self *SDBInstanceBackup) GetStartTime() time.Time
func (*SDBInstanceBackup) GetStatus ¶
func (self *SDBInstanceBackup) GetStatus() string
type SDBInstanceDatabase ¶
type SDBInstanceDatabase struct { multicloud.SDBInstanceDatabaseBase JdcloudTags models.Database // contains filtered or unexported fields }
func (*SDBInstanceDatabase) GetCharacterSet ¶
func (self *SDBInstanceDatabase) GetCharacterSet() string
func (*SDBInstanceDatabase) GetGlobalId ¶
func (self *SDBInstanceDatabase) GetGlobalId() string
func (*SDBInstanceDatabase) GetId ¶
func (self *SDBInstanceDatabase) GetId() string
func (*SDBInstanceDatabase) GetName ¶
func (self *SDBInstanceDatabase) GetName() string
func (*SDBInstanceDatabase) GetStatus ¶
func (self *SDBInstanceDatabase) GetStatus() string
type SDisk ¶
type SDisk struct { multicloud.SDisk JdcloudTags multicloud.SBillingBase models.Disk ImageId string IsSystemDisk bool // contains filtered or unexported fields }
func (*SDisk) CreateISnapshot ¶
func (d *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetAccessPath ¶
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 (d *SDisk) GetISnapshot(id string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetISnapshots ¶
func (s *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetIStorage ¶
func (d *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
func (*SDisk) GetIsAutoDelete ¶
func (*SDisk) GetIsNonPersistent ¶
func (*SDisk) GetMountpoint ¶
func (*SDisk) GetProjectId ¶
func (*SDisk) GetSysTags ¶
func (*SDisk) GetTemplateId ¶
func (*SDisk) IsEmulated ¶
type SEip ¶
type SEip struct { multicloud.SEipBase JdcloudTags models.ElasticIp // contains filtered or unexported fields }
func (*SEip) Associate ¶
func (e *SEip) Associate(conf *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) GetINetworkId ¶
func (*SEip) GetInternetChargeType ¶
func (*SEip) GetProjectId ¶
func (*SEip) IsEmulated ¶
type SHost ¶
type SHost struct { multicloud.SHostBase // contains filtered or unexported fields }
func (*SHost) CreateVM ¶
func (h *SHost) CreateVM(desc *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 (h *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SHost) GetIStorages ¶
func (h *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SHost) GetIVMById ¶
func (h *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 (h *SHost) GetSysInfo() jsonutils.JSONObject
func (*SHost) GetVersion ¶
func (*SHost) IsEmulated ¶
type SImage ¶
type SImage struct { multicloud.SImageBase JdcloudTags models.Image // contains filtered or unexported fields }
func (*SImage) GetBios ¶
func (i *SImage) GetBios() cloudprovider.TBiosType
func (*SImage) GetCreatedAt ¶
func (*SImage) GetDescription ¶
func (*SImage) GetFullOsName ¶
func (*SImage) GetGlobalId ¶
func (*SImage) GetIStoragecache ¶
func (i *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SImage) GetImageFormat ¶
func (*SImage) GetImageStatus ¶
func (*SImage) GetImageType ¶
func (i *SImage) GetImageType() cloudprovider.TImageType
func (*SImage) GetMinOsDiskSizeGb ¶
func (*SImage) GetMinRamSizeMb ¶
func (*SImage) GetOsType ¶
func (i *SImage) GetOsType() cloudprovider.TOsType
func (*SImage) GetOsVersion ¶
func (*SImage) GetSizeByte ¶
func (*SImage) IsEmulated ¶
type SInstance ¶
type SInstance struct { multicloud.SInstanceBase multicloud.SBillingBase JdcloudTags models.Instance // contains filtered or unexported fields }
func (*SInstance) AttachDisk ¶
func (*SInstance) ChangeConfig ¶
func (in *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 (i *SInstance) GetBios() cloudprovider.TBiosType
func (*SInstance) GetBootOrder ¶
func (*SInstance) GetExpiredAt ¶
func (*SInstance) GetFullOsName ¶
func (*SInstance) GetGlobalId ¶
func (*SInstance) GetHostname ¶
func (*SInstance) GetHypervisor ¶
func (*SInstance) GetIDisks ¶
func (in *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SInstance) GetIHost ¶
func (in *SInstance) GetIHost() cloudprovider.ICloudHost
func (*SInstance) GetInstanceType ¶
func (*SInstance) GetMachine ¶
func (*SInstance) GetOsType ¶
func (i *SInstance) GetOsType() cloudprovider.TOsType
func (*SInstance) GetOsVersion ¶
func (*SInstance) GetProjectId ¶
func (*SInstance) GetSecurityGroupIds ¶
func (*SInstance) GetVNCInfo ¶
func (in *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
func (*SInstance) GetVcpuCount ¶
func (*SInstance) GetVmemSizeMB ¶
func (*SInstance) IsEmulated ¶
func (*SInstance) RebuildRoot ¶
func (self *SInstance) RebuildRoot(ctx context.Context, config *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
func (*SInstance) SetSecurityGroups ¶
func (*SInstance) StopVM ¶
func (in *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
func (*SInstance) UpdateUserData ¶
func (*SInstance) UpdateVM ¶
func (in *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error
type SInstanceNic ¶
type SInstanceNic struct { cloudprovider.DummyICloudNic models.InstanceNetworkInterface // contains filtered or unexported fields }
func (*SInstanceNic) GetDriver ¶
func (in *SInstanceNic) GetDriver() string
func (*SInstanceNic) GetINetworkId ¶
func (in *SInstanceNic) GetINetworkId() string
func (*SInstanceNic) GetIP ¶
func (in *SInstanceNic) GetIP() string
func (*SInstanceNic) GetId ¶
func (in *SInstanceNic) GetId() string
func (*SInstanceNic) GetMAC ¶
func (in *SInstanceNic) GetMAC() string
func (*SInstanceNic) InClassicNetwork ¶
func (in *SInstanceNic) InClassicNetwork() bool
type SInstanceType ¶
type SInstanceType struct {
models.InstanceType
}
func (*SInstanceType) GetCpu ¶
func (it *SInstanceType) GetCpu() int
func (*SInstanceType) GetMemoryMB ¶
func (it *SInstanceType) GetMemoryMB() int
type SJDCloudClient ¶
type SJDCloudClient struct { *JDCloudClientConfig // contains filtered or unexported fields }
func NewJDCloudClient ¶
func NewJDCloudClient(cfg *JDCloudClientConfig) (*SJDCloudClient, error)
func (*SJDCloudClient) DescribeAccountAmount ¶
func (self *SJDCloudClient) DescribeAccountAmount() (*SBalance, error)
func (*SJDCloudClient) GetAccountId ¶
func (self *SJDCloudClient) GetAccountId() string
func (*SJDCloudClient) GetEcsMetrics ¶
func (self *SJDCloudClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SJDCloudClient) GetIRegions ¶
func (self *SJDCloudClient) GetIRegions() []cloudprovider.ICloudRegion
func (*SJDCloudClient) GetMetrics ¶
func (self *SJDCloudClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SJDCloudClient) GetRdsMetrics ¶
func (self *SJDCloudClient) GetRdsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SJDCloudClient) GetRegion ¶
func (self *SJDCloudClient) GetRegion(regionId string) *SRegion
func (*SJDCloudClient) GetSubAccounts ¶
func (self *SJDCloudClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
type SNetwork ¶
type SNetwork struct { multicloud.SResourceBase JdcloudTags models.Subnet // contains filtered or unexported fields }
func (*SNetwork) GetAllocTimeoutSeconds ¶
func (*SNetwork) GetGateway ¶
func (*SNetwork) GetGlobalId ¶
func (*SNetwork) GetIWire ¶
func (n *SNetwork) GetIWire() cloudprovider.ICloudWire
func (*SNetwork) GetIpStart ¶
func (*SNetwork) GetIsPublic ¶
func (*SNetwork) GetProjectId ¶
func (*SNetwork) GetPublicScope ¶
func (n *SNetwork) GetPublicScope() rbacscope.TRbacScope
func (*SNetwork) GetServerType ¶
func (*SNetwork) IsEmulated ¶
type SNetworkInterface ¶
type SNetworkInterface struct { multicloud.SNetworkInterfaceBase JdcloudTags models.NetworkInterface // contains filtered or unexported fields }
func (*SNetworkInterface) GetAssociateId ¶
func (nic *SNetworkInterface) GetAssociateId() string
func (*SNetworkInterface) GetAssociateType ¶
func (nic *SNetworkInterface) GetAssociateType() string
func (*SNetworkInterface) GetGlobalId ¶
func (nic *SNetworkInterface) GetGlobalId() string
func (*SNetworkInterface) GetICloudInterfaceAddresses ¶
func (nic *SNetworkInterface) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)
func (*SNetworkInterface) GetId ¶
func (nic *SNetworkInterface) GetId() string
func (*SNetworkInterface) GetMacAddress ¶
func (nic *SNetworkInterface) GetMacAddress() string
func (*SNetworkInterface) GetName ¶
func (nic *SNetworkInterface) GetName() string
func (*SNetworkInterface) GetStatus ¶
func (nic *SNetworkInterface) GetStatus() string
type SNetworkInterfacePrivateIp ¶
type SNetworkInterfacePrivateIp struct { models.NetworkInterfacePrivateIp // contains filtered or unexported fields }
func (*SNetworkInterfacePrivateIp) GetGlobalId ¶
func (ip *SNetworkInterfacePrivateIp) GetGlobalId() string
func (*SNetworkInterfacePrivateIp) GetINetworkId ¶
func (ip *SNetworkInterfacePrivateIp) GetINetworkId() string
func (*SNetworkInterfacePrivateIp) GetIP ¶
func (ip *SNetworkInterfacePrivateIp) GetIP() string
func (*SNetworkInterfacePrivateIp) IsPrimary ¶
func (ip *SNetworkInterfacePrivateIp) IsPrimary() bool
type SRegion ¶
type SRegion struct { cloudprovider.SFakeOnPremiseRegion multicloud.SRegion multicloud.SNoObjectStorageRegion ID string `json:"id"` Name string `json:"Name"` // contains filtered or unexported fields }
func (*SRegion) DeleteDBInstance ¶
func (*SRegion) GetCapabilities ¶
func (*SRegion) GetClient ¶
func (self *SRegion) GetClient() *SJDCloudClient
func (*SRegion) GetDBInstance ¶
func (self *SRegion) GetDBInstance(id string) (*SDBInstance, error)
func (*SRegion) GetDBInstanceAccounts ¶
func (*SRegion) GetDBInstanceBackups ¶
func (*SRegion) GetDBInstanceDatabases ¶
func (*SRegion) GetDBInstances ¶
func (*SRegion) GetGeographicInfo ¶
func (r *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
func (*SRegion) GetGlobalId ¶
func (*SRegion) GetI18n ¶
func (r *SRegion) GetI18n() cloudprovider.SModelI18nTable
func (*SRegion) GetIDBInstanceById ¶
func (self *SRegion) GetIDBInstanceById(id string) (cloudprovider.ICloudDBInstance, error)
func (*SRegion) GetIDBInstances ¶
func (self *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error)
func (*SRegion) GetIDiskById ¶
func (r *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
func (*SRegion) GetIEipById ¶
func (r *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error)
func (*SRegion) GetIHostById ¶
func (r *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SRegion) GetIHosts ¶
func (r *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SRegion) GetIStorageById ¶
func (r *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SRegion) GetIStoragecacheById ¶
func (r *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIStoragecaches ¶
func (r *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIStorages ¶
func (r *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SRegion) GetIVMById ¶
func (r *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
func (*SRegion) GetIVpcById ¶
func (r *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
func (*SRegion) GetIZoneById ¶
func (r *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
func (*SRegion) GetIZones ¶
func (r *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
func (*SRegion) GetInstances ¶
func (*SRegion) GetNetworks ¶
func (*SRegion) GetProvider ¶
func (*SRegion) GetSecurityGroups ¶
func (*SRegion) GetSnapshots ¶
func (*SRegion) InstanceTypes ¶
func (r *SRegion) InstanceTypes(instanceTypes ...string) ([]SInstanceType, error)
func (*SRegion) IsEmulated ¶
type SSecurityGroup ¶
type SSecurityGroup struct { multicloud.SSecurityGroup JdcloudTags models.NetworkSecurityGroup // contains filtered or unexported fields }
func (*SSecurityGroup) Delete ¶
func (sg *SSecurityGroup) Delete() error
func (*SSecurityGroup) GetDescription ¶
func (sg *SSecurityGroup) GetDescription() string
func (*SSecurityGroup) GetGlobalId ¶
func (sg *SSecurityGroup) GetGlobalId() string
func (*SSecurityGroup) GetId ¶
func (sg *SSecurityGroup) GetId() string
func (*SSecurityGroup) GetName ¶
func (sg *SSecurityGroup) GetName() string
func (*SSecurityGroup) GetRules ¶
func (sg *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)
func (*SSecurityGroup) GetStatus ¶
func (sg *SSecurityGroup) GetStatus() string
func (*SSecurityGroup) GetVpcId ¶
func (sg *SSecurityGroup) GetVpcId() string
type SSnapshot ¶
type SSnapshot struct { multicloud.SResourceBase JdcloudTags models.Snapshot // contains filtered or unexported fields }
func (*SSnapshot) GetDiskType ¶
func (*SSnapshot) GetGlobalId ¶
func (*SSnapshot) GetProjectId ¶
func (*SSnapshot) IsEmulated ¶
type SStorage ¶
type SStorage struct { multicloud.SStorageBase JdcloudTags // contains filtered or unexported fields }
func (*SStorage) CreateIDisk ¶
func (s *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
func (*SStorage) DisableSync ¶
func (*SStorage) GetCapacityMB ¶
func (*SStorage) GetCapacityUsedMB ¶
func (*SStorage) GetEnabled ¶
func (*SStorage) GetGlobalId ¶
func (*SStorage) GetIDiskById ¶
func (s *SStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetIDisks ¶
func (s *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SStorage) GetIStoragecache ¶
func (s *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SStorage) GetIZone ¶
func (s *SStorage) GetIZone() cloudprovider.ICloudZone
func (*SStorage) GetMediumType ¶
func (*SStorage) GetMountPoint ¶
func (*SStorage) GetStorageConf ¶
func (s *SStorage) GetStorageConf() jsonutils.JSONObject
func (*SStorage) GetStorageType ¶
func (*SStorage) IsEmulated ¶
func (*SStorage) IsSysDiskStore ¶
type SStoragecache ¶
type SStoragecache struct { multicloud.SResourceBase JdcloudTags // contains filtered or unexported fields }
func (*SStoragecache) GetGlobalId ¶
func (sc *SStoragecache) GetGlobalId() string
func (*SStoragecache) GetICloudImages ¶
func (sc *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetICustomizedCloudImages ¶
func (sc *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetIImageById ¶
func (sc *SStoragecache) GetIImageById(exId string) (cloudprovider.ICloudImage, error)
func (*SStoragecache) GetId ¶
func (sc *SStoragecache) GetId() string
func (*SStoragecache) GetName ¶
func (sc *SStoragecache) GetName() string
func (*SStoragecache) GetPath ¶
func (sc *SStoragecache) GetPath() string
func (*SStoragecache) GetStatus ¶
func (sc *SStoragecache) GetStatus() string
func (*SStoragecache) IsEmulated ¶
func (sc *SStoragecache) IsEmulated() bool
func (*SStoragecache) Refresh ¶
func (sc *SStoragecache) Refresh() error
func (*SStoragecache) UploadImage ¶
func (sc *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, callback func(progress float32)) (string, error)
type SVpc ¶
type SVpc struct { multicloud.SVpc JdcloudTags models.Vpc // contains filtered or unexported fields }
func (*SVpc) GetCidrBlock ¶
func (*SVpc) GetGlobalId ¶
func (*SVpc) GetIRouteTableById ¶
func (v *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetIRouteTables ¶
func (v *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetISecurityGroups ¶
func (v *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SVpc) GetIWireById ¶
func (v *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
func (*SVpc) GetIWires ¶
func (v *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SVpc) GetIsDefault ¶
func (*SVpc) GetRegion ¶
func (v *SVpc) GetRegion() cloudprovider.ICloudRegion
func (*SVpc) IsEmulated ¶
type SWire ¶
type SWire struct { multicloud.SResourceBase JdcloudTags // contains filtered or unexported fields }
func (*SWire) CreateINetwork ¶
func (w *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
func (*SWire) CreateNetworks ¶
func (*SWire) GetBandwidth ¶
func (*SWire) GetGlobalId ¶
func (*SWire) GetINetworkById ¶
func (w *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetINetworks ¶
func (w *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
func (*SWire) GetIVpc ¶
func (w *SWire) GetIVpc() cloudprovider.ICloudVpc
func (*SWire) GetIZone ¶
func (w *SWire) GetIZone() cloudprovider.ICloudZone
func (*SWire) IsEmulated ¶
type SZone ¶
type SZone struct { multicloud.SResourceBase JdcloudTags ID string Name string // contains filtered or unexported fields }
func (*SZone) GetGlobalId ¶
func (*SZone) GetI18n ¶
func (z *SZone) GetI18n() cloudprovider.SModelI18nTable
func (*SZone) GetIHostById ¶
func (z *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SZone) GetIHosts ¶
func (z *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SZone) GetIRegion ¶
func (z *SZone) GetIRegion() cloudprovider.ICloudRegion
func (*SZone) GetIStorageById ¶
func (z *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SZone) GetIStorages ¶
func (z *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SZone) IsEmulated ¶
Source Files ¶
- balance.go
- disk.go
- doc.go
- eip.go
- host.go
- image.go
- instance.go
- instancenic.go
- instancetype.go
- jdcloud.go
- latitud_and_longitude.go
- log.go
- monitor.go
- network.go
- networkinterface.go
- rds.go
- rds_account.go
- rds_backup.go
- rds_database.go
- rds_privilege.go
- region.go
- securitygroup.go
- snapshot.go
- storage.go
- storagecache.go
- tag_base.go
- utils.go
- vpc.go
- wire.go
- zone.go
Click to show internal directories.
Click to hide internal directories.