Versions in this module Expand all Collapse all v1 v1.0.3 Dec 29, 2023 v1.0.2 Dec 29, 2023 v1.0.1 Dec 29, 2023 v1.0.0 Dec 29, 2023 Changes in this version + const CLOUD_PROVIDER_UCLOUD + const CLOUD_PROVIDER_UCLOUD_CN + const EIP_CHARGE_TYPE_BY_BANDWIDTH + const EIP_CHARGE_TYPE_BY_TRAFFIC + const UCLOUD_API_HOST + const UCLOUD_API_VERSION + const UCLOUD_DEFAULT_REGION + var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo + var StorageTypes = []string + var UCLOUD_API_RESULT_KEYS = map[string]string + var UCLOUD_REGION_NAMES = map[string]string + var UCLOUD_REGION_NAMES_EN = map[string]string + var UCLOUD_ZONE_NAMES = map[string]string + var UCLOUD_ZONE_NAMES_EN = map[string]string + func BuildParams(params SParams, privateKey string) jsonutils.JSONObject + func DoAction(client *SUcloudClient, action string, params SParams, resultKey string, ...) error + func DoListAll(client *SUcloudClient, action string, params SParams, resultKey string, ...) error + func GetBucketName(regionId string, imageId string) string + func GetSignature(params SParams, privateKey string) string + type DiskSet struct + DiskID string + DiskType string + Drive string + Encrypted string + IsBoot bool + Size int + Type string + type Domain struct + CDN []string + CustomCDN []interface{} + CustomSrc []interface{} + Src []string + type EIPAddr struct + IP string + OperatorName string + type IPSet struct + IP string + IPId string + MAC string + SubnetID string + Type string + VPCID string + type NetworkInfo struct + Network string + SubnetCount int + type Resource struct + ResourceID string + ResourceName string + ResourceType string + Zone string + type SBucket struct + Biz string + BucketID string + BucketName string + CDNDomainID []string + CreateTime int64 + Domain Domain + HasUserDomain int64 + ModifyTime int64 + Region string + Tag string + Type string + func (b *SBucket) AbortMultipartUpload(ctx context.Context, key string, uploadId string) error + func (b *SBucket) CompleteMultipartUpload(ctx context.Context, key string, uploadId string, partEtags []string) error + func (b *SBucket) CopyObject(ctx context.Context, destKey string, srcBucket, srcKey string, ...) error + func (b *SBucket) CopyPart(ctx context.Context, key string, uploadId string, partIndex int, ...) (string, error) + func (b *SBucket) DeleteObject(ctx context.Context, key string) error + func (b *SBucket) GetAccessUrls() []cloudprovider.SBucketAccessUrl + func (b *SBucket) GetAcl() cloudprovider.TBucketACLType + func (b *SBucket) GetCreatedAt() time.Time + func (b *SBucket) GetGlobalId() string + func (b *SBucket) GetIRegion() cloudprovider.ICloudRegion + func (b *SBucket) GetLocation() string + func (b *SBucket) GetName() string + func (b *SBucket) GetObject(ctx context.Context, key string, rangeOpt *cloudprovider.SGetObjectRange) (io.ReadCloser, error) + func (b *SBucket) GetProjectId() string + func (b *SBucket) GetStats() cloudprovider.SBucketStats + func (b *SBucket) GetStorageClass() string + func (b *SBucket) GetTempUrl(method string, key string, expire time.Duration) (string, error) + func (b *SBucket) ListObjects(prefix string, marker string, delimiter string, maxCount int) (cloudprovider.SListObjectResult, error) + func (b *SBucket) NewMultipartUpload(ctx context.Context, key string, cannedAcl cloudprovider.TBucketACLType, ...) (string, error) + func (b *SBucket) PutObject(ctx context.Context, key string, input io.Reader, sizeBytes int64, ...) error + func (b *SBucket) SetAcl(aclStr cloudprovider.TBucketACLType) error + func (b *SBucket) UploadPart(ctx context.Context, key string, uploadId string, partIndex int, ...) (string, error) + type SDisk struct + ChargeType string + CreateTime int64 + DeviceName string + DiskType string + ExpiredTime int64 + IsExpire string + Name string + SizeGB int + SnapshotCount int + SnapshotLimit int + Status string + Tag string + UDataArkMode string + UDiskID string + UHostID string + UHostIP string + UHostName string + Version string + Zone string + 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) 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) GetStorageType() string + func (self *SDisk) GetSysTags() map[string]string + func (self *SDisk) GetTemplateId() string + func (self *SDisk) IsEmulated() bool + 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 struct + BandwidthMb int + BandwidthType int + ChargeType string + CreateTime int64 + EIPAddr []EIPAddr + EIPID string + Expire bool + ExpireTime int64 + Name string + PayMode string + Remark string + Resource Resource + ShareBandwidthSet ShareBandwidthSet + Status string + Tag string + Weight int + func (self *SEip) Associate(conf *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) GetINetworkId() 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) IsEmulated() bool + func (self *SEip) Refresh() error + type SFile struct + BucketName string + CreateTime int64 + FileName string + Hash string + MimeType string + ModifyTime int64 + Size int64 + StorageClass string + func (self *SFile) Delete() error + func (self *SFile) FetchFileUrl() string + func (self *SFile) GetAcl() cloudprovider.TBucketACLType + func (self *SFile) GetContentType() string + func (self *SFile) GetETag() string + func (self *SFile) GetHost() string + func (self *SFile) GetIBucket() cloudprovider.ICloudBucket + func (self *SFile) GetKey() string + func (self *SFile) GetLastModified() time.Time + func (self *SFile) GetMeta() http.Header + func (self *SFile) GetSizeBytes() int64 + func (self *SFile) GetStorageClass() string + func (self *SFile) GetUrl() string + func (self *SFile) SetAcl(cloudprovider.TBucketACLType) error + func (self *SFile) SetMeta(ctx context.Context, meta http.Header) error + func (self *SFile) Upload() error + type SHost struct + func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error) + func (self *SHost) CreateVM(desc *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 (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 + func (self *SHost) Refresh() error + type SImage struct + CreateTime int64 + ImageDescription string + ImageID string + ImageName string + ImageSizeGB int64 + ImageType string + OSName string + OSType string + State string + Zone string + func (img *SImage) GetBios() cloudprovider.TBiosType + func (img *SImage) GetFullOsName() string + func (img *SImage) GetOsLang() string + func (self *SImage) Delete(ctx context.Context) error + func (self *SImage) GetCreatedAt() time.Time + 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) 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 struct + AutoRenew string + BasicImageID string + BasicImageName string + BootDiskState string + CPU int + ChargeType string + CreateTime int64 + DiskSet []DiskSet + ExpireTime int64 + GPU int + HostType string + HotplugFeature bool + IPSet []IPSet + ImageID string + IsExpire string + LifeCycle string + MemoryMB int + Name string + NetCapFeature bool + NetCapability string + NetworkState string + OSName string + OSType string + Remark string + State string + StorageType string + SubnetType string + Tag string + TimemachineFeature string + TotalDiskSpace int + UHostID string + UHostType string + Zone string + func (ins *SInstance) GetBios() cloudprovider.TBiosType + func (ins *SInstance) GetFullOsName() string + func (ins *SInstance) GetOsArch() string + func (ins *SInstance) GetOsDist() string + func (ins *SInstance) GetOsLang() string + func (ins *SInstance) GetOsType() cloudprovider.TOsType + func (ins *SInstance) GetOsVersion() string + func (self *SInstance) AttachDisk(ctx context.Context, diskId string) error + func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error + func (self *SInstance) ChangeConfig2(ctx context.Context, instanceType string) 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) GetBootOrder() string + func (self *SInstance) GetCreatedAt() time.Time + func (self *SInstance) GetError() error + func (self *SInstance) GetExpiredAt() time.Time + 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) GetInstanceType() string + func (self *SInstance) GetLocalDisk(diskId, storageType string, sizeGB int, isBoot bool) SDisk + func (self *SInstance) GetMachine() string + func (self *SInstance) GetName() string + func (self *SInstance) GetProjectId() string + func (self *SInstance) GetSecurityGroupIds() ([]string, error) + func (self *SInstance) GetSecurityGroups() ([]SSecurityGroup, error) + func (self *SInstance) GetStatus() string + func (self *SInstance) GetSysTags() map[string]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) IsEmulated() bool + func (self *SInstance) RebuildRoot(ctx context.Context, desc *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 struct + func (self *SInstanceNic) GetDriver() string + func (self *SInstanceNic) GetINetworkId() string + func (self *SInstanceNic) GetIP() string + func (self *SInstanceNic) GetId() string + func (self *SInstanceNic) GetMAC() string + func (self *SInstanceNic) InClassicNetwork() bool + type SInstanceType struct + CPU int + GPU int + MemoryMB int + UHostType string + func ParseInstanceType(instanceType string) (SInstanceType, error) + type SNetwork struct + CreateTime int64 + Gateway string + HasNATGW bool + Name string + Netmask string + Remark string + RouteTableID string + Subnet string + SubnetID string + SubnetName string + SubnetType int + Tag string + VPCID string + VPCName string + VRouterID string + Zone string + 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) IsEmulated() bool + func (self *SNetwork) Refresh() error + type SParams struct + func NewUcloudParams() SParams + func (self *SParams) GetParams() jsonutils.JSONDict + func (self *SParams) PrettyString() string + func (self *SParams) Set(key string, value interface{}) + func (self *SParams) SetAction(action string) + func (self *SParams) SetPagination(limit, offset int) + func (self *SParams) String() string + type SProject struct + CreateTime int64 + IsDefault bool + MemberCount int64 + ParentID string + ParentName string + ProjectID string + ProjectName string + ResourceCount int64 + func (self *SProject) GetGlobalId() string + func (self *SProject) GetId() string + func (self *SProject) GetName() string + func (self *SProject) GetStatus() string + func (self *SProject) IsEmulated() bool + func (self *SProject) Refresh() error + type SRegion struct + RegionID string + func (region *SRegion) CreateIBucket(name string, storageClassStr string, aclStr string) error + func (region *SRegion) DeleteIBucket(name string) error + func (region *SRegion) GetCapabilities() []string + func (region *SRegion) GetIBucketById(bucketId string) (cloudprovider.ICloudBucket, error) + func (region *SRegion) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error) + func (region *SRegion) GetIBuckets() ([]cloudprovider.ICloudBucket, error) + func (region *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error) + func (region *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, error) + func (region *SRegion) IBucketExist(name string) (bool, error) + func (self *SRegion) AssociateEip(eipId string, instanceId string) error + func (self *SRegion) AttachDisk(zoneId string, instanceId string, diskId string) error + func (self *SRegion) CreateBucket(name, bucketType string) error + func (self *SRegion) CreateDisk(zoneId string, category string, name string, sizeGb int) (string, error) + func (self *SRegion) CreateEIP(eip *cloudprovider.SEip) (cloudprovider.ICloudEIP, 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(name, imageId, hostType, password, vpcId, SubnetId string, ...) (string, error) + func (self *SRegion) CreateNetwork(vpcId string, name string, cidr string, desc string) (*SNetwork, error) + func (self *SRegion) CreateSecurityGroup(name, description string) (string, error) + func (self *SRegion) CreateSnapshot(zoneId, diskId, name, desc string) (string, error) + func (self *SRegion) DeallocateEIP(eipId string) error + func (self *SRegion) DeleteBucket(name string) error + func (self *SRegion) DeleteDisk(zoneId string, diskId string) error + func (self *SRegion) DeleteImage(imageId string) error + func (self *SRegion) DeleteNetwork(networkId string) error + func (self *SRegion) DeleteSecurityGroup(secgroupId string) error + func (self *SRegion) DeleteSnapshot(snapshotId string, zoneId string) error + func (self *SRegion) DeleteVM(instanceId string) error + func (self *SRegion) DeleteVpc(vpcId string) error + func (self *SRegion) DetachDisk(zoneId string, instanceId string, diskId string) error + func (self *SRegion) DissociateEip(eipId string, instanceId string) error + func (self *SRegion) DoAction(action string, params SParams, result interface{}) error + func (self *SRegion) DoListAll(action string, params SParams, result interface{}) error + func (self *SRegion) DoListPart(action string, limit int, offset int, params SParams, result interface{}) (int, int, error) + func (self *SRegion) GetClient() *SUcloudClient + func (self *SRegion) GetCloudEnv() string + func (self *SRegion) GetDisk(diskId string) (*SDisk, error) + func (self *SRegion) GetDisks(zoneId string, diskType string, diskIds []string) ([]SDisk, error) + func (self *SRegion) GetEipById(eipId 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 (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error) + func (self *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error) + func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error) + func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error) + func (self *SRegion) GetId() string + func (self *SRegion) GetImage(imageId string) (SImage, error) + func (self *SRegion) GetImageByName(name string) (*SImage, error) + func (self *SRegion) GetImages(imageType string, imageId string) ([]SImage, error) + func (self *SRegion) GetInstanceByID(instanceId string) (SInstance, error) + func (self *SRegion) GetInstanceVNCUrl(instanceId string) (*cloudprovider.ServerVncOutput, error) + func (self *SRegion) GetInstances(zoneId string, instanceId string) ([]SInstance, error) + func (self *SRegion) GetName() string + func (self *SRegion) GetNetworks(vpcId string) ([]SNetwork, error) + func (self *SRegion) GetProvider() string + func (self *SRegion) GetSecurityGroup(secGroupId string) (*SSecurityGroup, error) + func (self *SRegion) GetSecurityGroups(secGroupId string, resourceId string, name string) ([]SSecurityGroup, error) + func (self *SRegion) GetSkus(zoneId string) ([]cloudprovider.ICloudSku, error) + func (self *SRegion) GetSnapshotById(zoneId string, snapshotId string) (SSnapshot, error) + func (self *SRegion) GetSnapshots(zoneId string, diskId string, snapshotId string) ([]SSnapshot, error) + func (self *SRegion) GetStatus() string + func (self *SRegion) GetVips() ([]SVip, error) + func (self *SRegion) GetVpcs(vpcId string) ([]SVPC, error) + func (self *SRegion) ImportImage(name string, ufileUrl string, osType string, osVersion string, ...) (string, error) + func (self *SRegion) IsEmulated() bool + func (self *SRegion) RebuildRoot(instanceId, imageId, password string) error + func (self *SRegion) Refresh() error + func (self *SRegion) RenewInstance(instanceId string, bc billing.SBillingCycle) error + func (self *SRegion) ResetVMPasswd(instanceId, password string) error + func (self *SRegion) ResizeVM(instanceId string, cpu, memoryMB int) error + func (self *SRegion) StartVM(instanceId string) error + func (self *SRegion) StopVM(instanceId string) error + func (self *SRegion) UpdateEipBandwidth(eipId string, bw int) error + func (self *SRegion) UpdateVM(instanceId, name string) error + type SSecurityGroup struct + CreateTime int64 + FWID string + GroupID string + Name string + Remark string + ResourceCount int + Rule []SecurityGroupRule + Tag string + Type string + 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) GetProjectId() string + func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error) + func (self *SSecurityGroup) GetStatus() string + func (self *SSecurityGroup) GetVpcId() string + func (self *SSecurityGroup) Refresh() error + type SSnapshot struct + ChargeType string + Comment string + CreateTime int64 + DiskType int + ExpiredTime int64 + IsUDiskAvailable bool + Name string + SizeGB int32 + SnapshotID string + Status string + UDiskID string + UDiskName string + UHostID string + Version string + func (self *SSnapshot) Delete() error + func (self *SSnapshot) GetDiskId() string + func (self *SSnapshot) GetDiskType() string + func (self *SSnapshot) GetGlobalId() string + func (self *SSnapshot) GetId() string + func (self *SSnapshot) GetName() string + func (self *SSnapshot) GetProjectId() string + func (self *SSnapshot) GetSizeMb() int32 + func (self *SSnapshot) GetStatus() string + func (self *SSnapshot) IsEmulated() bool + func (self *SSnapshot) Refresh() error + type SStorage struct + 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 + func (self *SStorage) Refresh() error + type SStoragecache struct + 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 SUcloudClient struct + func NewUcloudClient(cfg *UcloudClientConfig) (*SUcloudClient, error) + func (self *SUcloudClient) DoAction(action string, params SParams, result interface{}) error + func (self *SUcloudClient) DoListAll(action string, params SParams, result interface{}) error + func (self *SUcloudClient) DoListPart(action string, limit int, offset int, params SParams, result interface{}) (int, int, error) + func (self *SUcloudClient) FetchProjects() ([]SProject, error) + func (self *SUcloudClient) GetAccountId() string + func (self *SUcloudClient) GetCapabilities() []string + func (self *SUcloudClient) GetIHostById(id string) (cloudprovider.ICloudHost, error) + func (self *SUcloudClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error) + func (self *SUcloudClient) GetIRegions() []cloudprovider.ICloudRegion + func (self *SUcloudClient) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (self *SUcloudClient) GetIVpcById(id string) (cloudprovider.ICloudVpc, error) + func (self *SUcloudClient) GetRegion(regionId string) *SRegion + func (self *SUcloudClient) GetRegions() []SRegion + func (self *SUcloudClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error) + func (self *SUcloudClient) UpdateAccount(accessKey, secret string) error + type SUcloudError struct + Action string + Message string + RetCode int64 + func (self *SUcloudError) Error() string + type SVPC struct + CreateTime int64 + Name string + Network []string + NetworkInfo []NetworkInfo + SubnetCount int + Tag string + UpdateTime int64 + VPCID string + 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(wireId string) (cloudprovider.ICloudWire, error) + func (self *SVPC) GetIWires() ([]cloudprovider.ICloudWire, error) + func (self *SVPC) GetId() string + func (self *SVPC) GetIsDefault() bool + func (self *SVPC) GetName() string + func (self *SVPC) GetRegion() cloudprovider.ICloudRegion + func (self *SVPC) GetStatus() string + func (self *SVPC) IsEmulated() bool + func (self *SVPC) Refresh() error + type SVip struct + CreateTime int64 + Name string + RealIp string + Remark string + SubnetId string + Tag string + VIP string + VIPId string + VPCId string + Zone string + func (vip *SVip) GetAssociateId() string + func (vip *SVip) GetAssociateType() string + func (vip *SVip) GetGlobalId() string + func (vip *SVip) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error) + func (vip *SVip) GetId() string + func (vip *SVip) GetMacAddress() string + func (vip *SVip) GetName() string + func (vip *SVip) GetStatus() string + type SVipAddr struct + SubnetId string + VIP string + func (ip *SVipAddr) GetGlobalId() string + func (ip *SVipAddr) GetINetworkId() string + func (ip *SVipAddr) GetIP() string + func (ip *SVipAddr) IsPrimary() bool + type SVncInfo struct + Action string + UHostID string + VNCIP string + VNCPassword string + VNCPort int64 + type SWire struct + 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 + func (self *SWire) Refresh() error + type SZone struct + RegionId string + ZoneId string + 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) GetInstances() ([]SInstance, error) + func (self *SZone) GetName() string + func (self *SZone) GetStatus() string + func (self *SZone) IsEmulated() bool + func (self *SZone) Refresh() error + type SecurityGroupRule struct + DstPort string + Priority string + ProtocolType string + Remark string + RuleAction string + SrcIP string + func (self *SecurityGroupRule) Delete() error + func (self *SecurityGroupRule) GetAction() secrules.TSecurityRuleAction + func (self *SecurityGroupRule) GetCIDRs() []string + func (self *SecurityGroupRule) GetDescription() string + func (self *SecurityGroupRule) GetDirection() secrules.TSecurityRuleDirection + func (self *SecurityGroupRule) GetGlobalId() string + func (self *SecurityGroupRule) GetPorts() string + func (self *SecurityGroupRule) GetPriority() int + func (self *SecurityGroupRule) GetProtocol() string + func (self *SecurityGroupRule) Update(opts *cloudprovider.SecurityGroupRuleUpdateOptions) error + func (self SecurityGroupRule) String() string + type ShareBandwidthSet struct + ShareBandwidth int + ShareBandwidthID string + ShareBandwidthName string + type UcloudClientConfig struct + func NewUcloudClientConfig(accessKeyId, accessKeySecret string) *UcloudClientConfig + func (cfg *UcloudClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *UcloudClientConfig + func (cfg *UcloudClientConfig) Debug(debug bool) *UcloudClientConfig + func (cfg *UcloudClientConfig) ProjectId(projectId string) *UcloudClientConfig + type UcloudTags struct + func (self *UcloudTags) GetSysTags() map[string]string + func (self *UcloudTags) GetTags() (map[string]string, error) + func (self *UcloudTags) SetTags(tags map[string]string, replace bool) error