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_VOLCENGINE + const CLOUD_PROVIDER_VOLCENGINE_CN + const CLOUD_PROVIDER_VOLCENGINE_EN + const EIP_INSTANCE_TYPE_ALB + const EIP_INSTANCE_TYPE_CLB + const EIP_INSTANCE_TYPE_ECS + const EIP_INSTANCE_TYPE_ENI + const EIP_INSTANCE_TYPE_HAVIP + const EIP_INSTANCE_TYPE_NAT + const EIP_STATUS_ATTACHED + const EIP_STATUS_ATTACHING + const EIP_STATUS_AVAILABLE + const EIP_STATUS_DELETING + const EIP_STATUS_DETACHING + const InstanceStatusCreating + const InstanceStatusDeleting + const InstanceStatusError + const InstanceStatusRebooting + const InstanceStatusRebuilding + const InstanceStatusResizing + const InstanceStatusRunning + const InstanceStatusStarting + const InstanceStatusStopped + const InstanceStatusStopping + const OSS_META_HEADER + const VOLCENGINE_API + const VOLCENGINE_API_VERSION + const VOLCENGINE_BILLING_API + const VOLCENGINE_BILLING_API_VERSION + const VOLCENGINE_DEFAULT_REGION + const VOLCENGINE_IAM_API + const VOLCENGINE_IAM_API_VERSION + const VOLCENGINE_OBSERVE_API_VERSION + const VOLCENGINE_SERVICE_BILLING + const VOLCENGINE_SERVICE_ECS + const VOLCENGINE_SERVICE_IAM + const VOLCENGINE_SERVICE_NAT + const VOLCENGINE_SERVICE_OBSERVICE + const VOLCENGINE_SERVICE_STORAGE + const VOLCENGINE_SERVICE_TOS + const VOLCENGINE_SERVICE_VPC + const VOLCENGINE_TOS_API + var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo + var RegionEndpoint = map[string]string + var RegionLocations = map[string]string + var RegionLocationsEN = map[string]string + func GetBucketName(regionId string, imageId string) string + type ImageOwnerType string + const ImageOwnerPrivate + const ImageOwnerPublic + const ImageOwnerShared + type ImageStatusType string + const ImageStatusAvailable + const ImageStatusCreating + const ImageStatusError + type SAssociatedElasticIp struct + AllocationId string + EipAddress string + type SAvailableResource struct + SupportedResources []SSupportedResource + Type string + type SBalance struct + AccountId string + ArrearsBalance float64 + AvailableBalance float64 + CashBalance float64 + CreditLimit float64 + FreezeAmount float64 + type SBucket struct + CreationDate time.Time + Location string + Name 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, partNumber 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, body 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 SCallerIdentity struct + AccountId string + IdentityType string + PrincipalId string + RoleId string + UserId string + type SCidrList []string + type SDNATEntry struct + DnatEntryId string + DnatEntryName string + ExternalIp string + ExternalPort string + InternalIp string + InternalPort string + NatGatewayId string + Protocol string + Status string + func (dentry *SDNATEntry) Delete() error + func (dentry *SDNATEntry) GetExternalIp() string + func (dentry *SDNATEntry) GetExternalPort() int + func (dentry *SDNATEntry) GetGlobalId() string + func (dentry *SDNATEntry) GetId() string + func (dentry *SDNATEntry) GetInternalIp() string + func (dentry *SDNATEntry) GetInternalPort() int + func (dentry *SDNATEntry) GetIpProtocol() string + func (dentry *SDNATEntry) GetName() string + func (dentry *SDNATEntry) GetStatus() string + type SDisk struct + BillingType string + CreatedAt time.Time + DeleteWithInstance bool + Description string + ExpiredTime time.Time + ImageId string + InstanceId string + Kind string + PayType string + ProjectName string + Size int + Status string + TradeStatus int + UpdatedAt time.Time + VolumeId string + VolumeName string + VolumeType string + ZoneId string + func (disk *SDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error) + func (disk *SDisk) Delete(ctx context.Context) error + func (disk *SDisk) GetAccessPath() string + func (disk *SDisk) GetBillingType() string + func (disk *SDisk) GetCacheMode() string + func (disk *SDisk) GetCreatedAt() time.Time + func (disk *SDisk) GetDiskFormat() string + func (disk *SDisk) GetDiskSizeMB() int + func (disk *SDisk) GetDiskType() string + func (disk *SDisk) GetDriver() string + func (disk *SDisk) GetExpiredAt() time.Time + func (disk *SDisk) GetFsFormat() string + func (disk *SDisk) GetGlobalId() string + func (disk *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error) + func (disk *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error) + func (disk *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error) + func (disk *SDisk) GetId() string + func (disk *SDisk) GetIsAutoDelete() bool + func (disk *SDisk) GetIsNonPersistent() bool + func (disk *SDisk) GetMountpoint() string + func (disk *SDisk) GetName() string + func (disk *SDisk) GetProjectId() string + func (disk *SDisk) GetStatus() string + func (disk *SDisk) GetTemplateId() string + func (disk *SDisk) Rebuild(ctx context.Context) error + func (disk *SDisk) Refresh() error + func (disk *SDisk) Reset(ctx context.Context, snapshotId string) (string, error) + func (disk *SDisk) Resize(ctx context.Context, sizeMb int64) error + type SEipAddress struct + AllocationId string + AllocationTime time.Time + Bandwidth int + BillingType TBillingType + BusinessStatus string + Description string + EipAddress string + ExpiredTime time.Time + ISP string + InstanceId string + InstanceType string + LockReason string + Name string + ProjectName string + Status string + func (eipaddr *SEipAddress) Associate(conf *cloudprovider.AssociateConfig) error + func (eipaddr *SEipAddress) ChangeBandwidth(bw int) error + func (eipaddr *SEipAddress) Delete() error + func (eipaddr *SEipAddress) Dissociate() error + func (eipaddr *SEipAddress) GetAssociationExternalId() string + func (eipaddr *SEipAddress) GetAssociationType() string + func (eipaddr *SEipAddress) GetBandwidth() int + func (eipaddr *SEipAddress) GetGlobalId() string + func (eipaddr *SEipAddress) GetINetworkId() string + func (eipaddr *SEipAddress) GetId() string + func (eipaddr *SEipAddress) GetInternetChargeType() string + func (eipaddr *SEipAddress) GetIpAddr() string + func (eipaddr *SEipAddress) GetMode() string + func (eipaddr *SEipAddress) GetName() string + func (eipaddr *SEipAddress) GetProjectId() string + func (eipaddr *SEipAddress) GetStatus() string + func (eipaddr *SEipAddress) Refresh() error + type SHost struct + func (host *SHost) CreateVM(opts *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error) + func (host *SHost) GetAccessIp() string + func (host *SHost) GetAccessMac() string + func (host *SHost) GetCpuCount() int + func (host *SHost) GetCpuDesc() string + func (host *SHost) GetCpuMhz() int + func (host *SHost) GetEnabled() bool + func (host *SHost) GetGlobalId() string + func (host *SHost) GetHostStatus() string + func (host *SHost) GetHostType() string + func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error) + func (host *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (host *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (host *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error) + func (host *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error) + func (host *SHost) GetIWires() ([]cloudprovider.ICloudWire, error) + func (host *SHost) GetId() string + func (host *SHost) GetInstanceById(instanceId string) (*SInstance, error) + func (host *SHost) GetIsMaintenance() bool + func (host *SHost) GetMemSizeMB() int + func (host *SHost) GetName() string + func (host *SHost) GetNodeCount() int8 + func (host *SHost) GetSN() string + func (host *SHost) GetStatus() string + func (host *SHost) GetStorageSizeMB() int64 + func (host *SHost) GetStorageType() string + func (host *SHost) GetSysInfo() jsonutils.JSONObject + func (host *SHost) GetVersion() string + func (host *SHost) IsEmulated() bool + func (host *SHost) Refresh() error + type SImage struct + Architecture string + BootMode string + CreationTime time.Time + Description string + ImageId string + ImageName string + IsSupportCloudinit bool + IsSupportIoOptimized bool + OSName string + OSType string + Platform string + Size int + Status ImageStatusType + Usage string + Visibility string + func (img *SImage) Delete(ctx context.Context) error + func (img *SImage) GetBios() cloudprovider.TBiosType + func (img *SImage) GetCreatedAt() time.Time + func (img *SImage) GetFullOsName() string + func (img *SImage) GetGlobalId() string + func (img *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache + func (img *SImage) GetId() string + func (img *SImage) GetImageFormat() string + func (img *SImage) GetImageStatus() string + func (img *SImage) GetImageType() cloudprovider.TImageType + func (img *SImage) GetMinOsDiskSizeGb() int + func (img *SImage) GetMinRamSizeMb() int + func (img *SImage) GetName() string + func (img *SImage) GetOsArch() string + func (img *SImage) GetOsDist() string + func (img *SImage) GetOsLang() string + func (img *SImage) GetOsType() cloudprovider.TOsType + func (img *SImage) GetOsVersion() string + func (img *SImage) GetSizeByte() int64 + func (img *SImage) GetStatus() string + func (img *SImage) Refresh() error + type SInstance struct + Cpus int + CreatedAt time.Time + DeploymentSetId string + Description string + EipAddress SEipAddress + ExpiredAt time.Time + Hostname string + ImageId string + InstanceChargeType string + InstanceId string + InstanceName string + InstanceTypeId string + KeyPairId string + KeyPairName string + MemorySize int + NetworkInterfaces []SNetworkInterface + OsName string + OsType string + ProjectName string + RdmaIpAddress SRdmaIPAddress + SpotStrategy string + Status string + StoppedMode string + UpdatedAt time.Time + Uuid string + VpcId string + ZoneId string + func (ins *SInstance) GetBios() cloudprovider.TBiosType + func (ins *SInstance) GetOsArch() string + func (ins *SInstance) GetOsDist() string + func (ins *SInstance) GetOsLang() string + func (ins *SInstance) GetOsVersion() string + func (instance *SInstance) AttachDisk(ctx context.Context, diskId string) error + func (instance *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error + func (instance *SInstance) DeleteVM(ctx context.Context) error + func (instance *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error + func (instance *SInstance) DetachDisk(ctx context.Context, diskId string) error + func (instance *SInstance) GetBillingType() string + func (instance *SInstance) GetBootOrder() string + func (instance *SInstance) GetCreatedAt() time.Time + func (instance *SInstance) GetExpiredAt() time.Time + func (instance *SInstance) GetFullOsName() string + func (instance *SInstance) GetGlobalId() string + func (instance *SInstance) GetHostname() string + func (instance *SInstance) GetHypervisor() string + func (instance *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error) + func (instance *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error) + func (instance *SInstance) GetIHost() cloudprovider.ICloudHost + func (instance *SInstance) GetIHostId() string + func (instance *SInstance) GetINics() ([]cloudprovider.ICloudNic, error) + func (instance *SInstance) GetId() string + func (instance *SInstance) GetInstanceType() string + func (instance *SInstance) GetMachine() string + func (instance *SInstance) GetName() string + func (instance *SInstance) GetOsType() cloudprovider.TOsType + func (instance *SInstance) GetProjectId() string + func (instance *SInstance) GetSecurityGroupIds() ([]string, error) + func (instance *SInstance) GetStatus() string + func (instance *SInstance) GetUserData() (string, error) + func (instance *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error) + func (instance *SInstance) GetVcpuCount() int + func (instance *SInstance) GetVdi() string + func (instance *SInstance) GetVga() string + func (instance *SInstance) GetVmemSizeMB() int + func (instance *SInstance) RebuildRoot(ctx context.Context, desc *cloudprovider.SManagedVMRebuildRootConfig) (string, error) + func (instance *SInstance) Refresh() error + func (instance *SInstance) SaveImage(opts *cloudprovider.SaveImageOptions) (cloudprovider.ICloudImage, error) + func (instance *SInstance) SetSecurityGroups(secgroupIds []string) error + func (instance *SInstance) StartVM(ctx context.Context) error + func (instance *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error + func (instance *SInstance) UpdatePassword(passwd string) error + func (instance *SInstance) UpdateUserData(userData string) error + func (instance *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error + type SInstanceNic struct + type SKeypair struct + KeyPairFingerPrint string + KeyPairName string + type SMetricData struct + DataPoints []struct{ ... } + Dimensions []struct{ ... } + Legend string + type SNatGateway struct + BillingType int + BusinessStatus string + CreationTime time.Time + DeletedTime time.Time + Description string + ExpiredTime time.Time + LockReason string + NatGatewayId string + NatGatewayName string + NetworkInterfaceId string + OverdueTime time.Time + PrivateIP string + ProjectName string + Spec string + Status string + SubnetId string + UpdatedAt time.Time + VpcId string + ZoneId string + func (nat *SNatGateway) CreateINatDEntry(rule cloudprovider.SNatDRule) (cloudprovider.ICloudNatDEntry, error) + func (nat *SNatGateway) CreateINatSEntry(rule cloudprovider.SNatSRule) (cloudprovider.ICloudNatSEntry, error) + func (nat *SNatGateway) Delete() error + func (nat *SNatGateway) GetBandwidthMb() int + func (nat *SNatGateway) GetBillingType() string + func (nat *SNatGateway) GetCreatedAt() time.Time + func (nat *SNatGateway) GetExpiredAt() time.Time + func (nat *SNatGateway) GetGlobalId() string + func (nat *SNatGateway) GetINatDEntryByID(id string) (cloudprovider.ICloudNatDEntry, error) + func (nat *SNatGateway) GetINatDTable() ([]cloudprovider.ICloudNatDEntry, error) + func (nat *SNatGateway) GetINatSEntryByID(id string) (cloudprovider.ICloudNatSEntry, error) + func (nat *SNatGateway) GetINatSTable() ([]cloudprovider.ICloudNatSEntry, error) + func (nat *SNatGateway) GetINetworkId() string + func (nat *SNatGateway) GetId() string + func (nat *SNatGateway) GetIpAddr() string + func (nat *SNatGateway) GetName() string + func (nat *SNatGateway) GetNatSpec() string + func (nat *SNatGateway) GetStatus() string + func (nat *SNatGateway) Refresh() error + type SNetwork struct + AccountId string + AvailableIpAddressCount int + CidrBlock string + CreationTime time.Time + Description string + Ipv6CidrBlock string + IsDefault bool + NetworkAclId string + ProjectName string + RouteTable SRouteTable + Status string + SubnetId string + SubnetName string + TotalIpv4Count int + UpdateTime time.Time + VpcId string + ZoneId string + func (subnet *SNetwork) Delete() error + func (subnet *SNetwork) GetAllocTimeoutSeconds() int + func (subnet *SNetwork) GetGateway() string + func (subnet *SNetwork) GetGlobalId() string + func (subnet *SNetwork) GetIWire() cloudprovider.ICloudWire + func (subnet *SNetwork) GetId() string + func (subnet *SNetwork) GetIpEnd() string + func (subnet *SNetwork) GetIpMask() int8 + func (subnet *SNetwork) GetIpStart() string + func (subnet *SNetwork) GetIsPublic() bool + func (subnet *SNetwork) GetName() string + func (subnet *SNetwork) GetProjectId() string + func (subnet *SNetwork) GetPublicScope() rbacscope.TRbacScope + func (subnet *SNetwork) GetServerType() string + func (subnet *SNetwork) GetStatus() string + func (subnet *SNetwork) Refresh() error + type SNetworkInterface struct + AssociatedElasticIp SAssociatedElasticIp + CreationTime time.Time + InstanceId string + MacAddress string + NetworkInterfaceId string + NetworkInterfaceName string + PrimaryIpAddress string + PrivateIpAddresses []string + PrivateIpSets SPrivateIpSets + ResourceGroupId string + SecurityGroupIds SSecurityGroupIds + Status string + SubnetId string + Type string + VpcId string + ZoneId string + func (nic *SNetworkInterface) AssignAddress(ipAddrs []string) error + func (nic *SNetworkInterface) GetAssociateId() string + func (nic *SNetworkInterface) GetAssociateType() string + func (nic *SNetworkInterface) GetDriver() string + func (nic *SNetworkInterface) GetGlobalId() string + func (nic *SNetworkInterface) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error) + func (nic *SNetworkInterface) GetINetworkId() string + func (nic *SNetworkInterface) GetIP() string + func (nic *SNetworkInterface) GetId() string + func (nic *SNetworkInterface) GetMAC() string + func (nic *SNetworkInterface) GetMacAddress() string + func (nic *SNetworkInterface) GetName() string + func (nic *SNetworkInterface) GetStatus() string + func (nic *SNetworkInterface) GetSubAddress() ([]string, error) + func (nic *SNetworkInterface) InClassicNetwork() bool + func (nic *SNetworkInterface) UnassignAddress(ipAddrs []string) error + type SObject struct + func (obj *SObject) GetAcl() cloudprovider.TBucketACLType + func (obj *SObject) GetIBucket() cloudprovider.ICloudBucket + func (obj *SObject) GetMeta() http.Header + func (obj *SObject) SetAcl(aclStr cloudprovider.TBucketACLType) error + func (obj *SObject) SetMeta(ctx context.Context, meta http.Header) error + type SPrivateIp struct + Primary bool + PrivateIpAddress string + func (ip *SPrivateIp) GetGlobalId() string + func (ip *SPrivateIp) GetINetworkId() string + func (ip *SPrivateIp) GetIP() string + func (ip *SPrivateIp) IsPrimary() bool + type SPrivateIpSets struct + PrivateIpSet []SPrivateIp + type SProject struct + AccountId int + CreateDate time.Time + Description string + DisplayName string + ParentProjectName string + Path string + ProjectName string + Status string + UpdateDate time.Time + func (project *SProject) GetGlobalId() string + func (project *SProject) GetId() string + func (project *SProject) GetName() string + func (project *SProject) GetStatus() string + func (project *SProject) Refresh() error + type SRdmaIPAddress []string + type SRegion struct + RegionId string + func (regioin *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error) + func (region *SRegion) AllocateEIP(opts *cloudprovider.SEip) (*SEipAddress, error) + func (region *SRegion) AssignAddres(nicId string, ipAddrs []string) error + func (region *SRegion) AssociateEip(eipId string, instanceId string) error + func (region *SRegion) AssociateRouteTable(rtableId string, SubnetId string) error + func (region *SRegion) AttachDisk(instanceId string, diskId string) error + func (region *SRegion) AttachKeypair(instanceId string, name string) error + func (region *SRegion) ChangeConfig(instanceId string, instanceTypeId string) error + func (region *SRegion) CreateDisk(zoneId string, category string, name string, sizeGb int, desc string, ...) (string, error) + func (region *SRegion) CreateDnatEntry(rule cloudprovider.SNatDRule, natGatewayId string) (string, error) + func (region *SRegion) CreateEIP(opts *cloudprovider.SEip) (cloudprovider.ICloudEIP, error) + func (region *SRegion) CreateIBucket(name string, storageClassStr string, aclStr string) error + func (region *SRegion) CreateISecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error) + func (region *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error) + func (region *SRegion) CreateInstance(zoneId string, opts *cloudprovider.SManagedVMCreateConfig) (string, error) + func (region *SRegion) CreateNatGateway(opts *cloudprovider.NatGatewayCreateOptions) (*SNatGateway, error) + func (region *SRegion) CreateSecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (string, error) + func (region *SRegion) CreateSecurityGroupRule(secGrpId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) error + func (region *SRegion) CreateSnatEntry(rule cloudprovider.SNatSRule, natGatewayId string) (string, error) + func (region *SRegion) CreateSubnet(zoneId string, vpcId string, name string, cidr string, desc string) (string, error) + func (region *SRegion) CreateVpc(opts *cloudprovider.VpcCreateOptions) (*SVpc, error) + func (region *SRegion) DeallocateEIP(eipId string) error + func (region *SRegion) DeleteDisk(diskId string) error + func (region *SRegion) DeleteDnatEntry(dnatEntryId string) error + func (region *SRegion) DeleteIBucket(name string) error + func (region *SRegion) DeleteImage(imageId string) error + func (region *SRegion) DeleteNatGateway(natId string, isForce bool) error + func (region *SRegion) DeleteSecurityGroup(id string) error + func (region *SRegion) DeleteSnatEntry(snatEntryId string) error + func (region *SRegion) DeleteSubnet(SubnetId string) error + func (region *SRegion) DeleteVM(instanceId string) error + func (region *SRegion) DeleteVpc(vpcId string) error + func (region *SRegion) DeployVM(instanceId string, opts *cloudprovider.SInstanceDeployOptions) error + func (region *SRegion) DetachDisk(instanceId string, diskId string) error + func (region *SRegion) DetachKeyPair(instanceId string, name string) error + func (region *SRegion) DissociateEip(eipId string, instanceId string) error + func (region *SRegion) ExportImage(imageId, bucketName string) (string, error) + func (region *SRegion) FetchSubnets(ids []string, zoneId string, vpcId string) ([]SNetwork, error) + func (region *SRegion) GetAllVpcs() ([]SVpc, error) + func (region *SRegion) GetCapabilities() []string + func (region *SRegion) GetClient() *SVolcEngineClient + func (region *SRegion) GetCloudEnv() string + func (region *SRegion) GetDisk(diskId string) (*SDisk, error) + func (region *SRegion) GetDisks(instanceId string, zoneId string, category string, diskIds []string) ([]SDisk, error) + func (region *SRegion) GetDnatEntries(natGatewayId string, pageNumber int, pageSize int) ([]SDNATEntry, int, error) + func (region *SRegion) GetDnatEntry(natGatewayId string, dnatEntryID string) (SDNATEntry, error) + func (region *SRegion) GetEip(eipId string) (*SEipAddress, error) + func (region *SRegion) GetEips(eipIds []string, associatedId string, addresses []string, pageNumber int, ...) ([]SEipAddress, int, error) + func (region *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo + func (region *SRegion) GetGlobalId() string + func (region *SRegion) GetI18n() cloudprovider.SModelI18nTable + func (region *SRegion) GetIBucketById(name string) (cloudprovider.ICloudBucket, error) + func (region *SRegion) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error) + func (region *SRegion) GetIBuckets() ([]cloudprovider.ICloudBucket, error) + func (region *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error) + func (region *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error) + func (region *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error) + func (region *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error) + func (region *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error) + func (region *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error) + func (region *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (region *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error) + func (region *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error) + func (region *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (region *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error) + func (region *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, error) + func (region *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error) + func (region *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error) + func (region *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error) + func (region *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error) + func (region *SRegion) GetId() string + func (region *SRegion) GetImage(imageId string) (*SImage, error) + func (region *SRegion) GetImageByName(name string) (*SImage, error) + func (region *SRegion) GetImageStatus(imageId string) (ImageStatusType, error) + func (region *SRegion) GetImages(visibility string, imageIds []string, name string) ([]SImage, error) + func (region *SRegion) GetInstance(instanceId string) (*SInstance, error) + func (region *SRegion) GetInstanceStatus(instanceId string) (string, error) + func (region *SRegion) GetInstances(zoneId string, ids []string) ([]SInstance, error) + func (region *SRegion) GetKeypairs(finger string, name string, limit int, token string) ([]SKeypair, string, error) + func (region *SRegion) GetName() string + func (region *SRegion) GetNatGateways(vpcId string, natGatewayId string, pageNumber int, pageSize int) ([]SNatGateway, int, error) + func (region *SRegion) GetNetworkInterfaces(instanceId string, pageNumber int, pageSize int) ([]SNetworkInterface, int, error) + func (region *SRegion) GetProvider() string + func (region *SRegion) GetRouteTables(ids []string, pageNumber int, pageSize int) ([]SRouteTable, int, error) + func (region *SRegion) GetSecurityGroup(secGroupId string) (*SSecurityGroup, error) + func (region *SRegion) GetSecurityGroupRules(secGroupId string) ([]SSecurityGroupRule, error) + func (region *SRegion) GetSecurityGroups(vpcId, name string, securityGroupIds []string, pageSize int, pageNumber int) ([]SSecurityGroup, int, error) + func (region *SRegion) GetSnatEntries(natGatewayId string, pageNumber int, pageSize int) ([]SSNATEntry, int, error) + func (region *SRegion) GetSnatEntry(natGatewayId string, snatEntryID string) (SSNATEntry, error) + func (region *SRegion) GetStatus() string + func (region *SRegion) GetSubAddress(nicId string) ([]string, error) + func (region *SRegion) GetSubnetAttributes(SubnetId string) (*SNetwork, error) + func (region *SRegion) GetSubnets(ids []string, zoneId string, vpcId string, pageNumber int, pageSize int) ([]SNetwork, int, error) + func (region *SRegion) GetTosClient() (*tos.ClientV2, error) + func (region *SRegion) GetVpcs(vpcIds []string, pageNumber int, pageSize int) ([]SVpc, int, error) + func (region *SRegion) GetZones(id string) ([]SZone, error) + func (region *SRegion) IBucketExist(name string) (bool, error) + func (region *SRegion) ImportImage(name string, osArch string, osType string, platform, platformVersion string, ...) (string, error) + func (region *SRegion) ImportKeypair(name string, pubKey string) (*SKeypair, error) + func (region *SRegion) Refresh() error + func (region *SRegion) RenewInstance(instanceId string, bc billing.SBillingCycle) error + func (region *SRegion) ResizeDisk(diskId string, sizeGb int64) error + func (region *SRegion) SaveImage(instanceId string, opts *cloudprovider.SaveImageOptions) (*SImage, error) + func (region *SRegion) StartVM(instanceId string) error + func (region *SRegion) StopVM(instanceId string, isForce, stopCharging bool) error + func (region *SRegion) UnassignAddress(nicId string, ipAddrs []string) error + func (region *SRegion) UnassociateRouteTable(rtableId string, SubnetId string) error + func (region *SRegion) UpdateEipBandwidth(eipId string, bw int) error + func (region *SRegion) UpdateInstancePassword(instanceId string, passwd string) error + func (region *SRegion) UpdateVM(instanceId string, name, description string) error + func (self *SRegion) DescribeInstanceVncUrl(id string) (string, error) + func (self *SRegion) GetStorageTypes(zoneId string) ([]sStorageType, error) + func (self *SRegion) ModifyNetworkInterfaceAttributes(id string, secgroupIds []string) error + type SRouteEntry struct + Description string + DestinationCidrBlock string + NextHopId string + NextHopName string + NextHopType string + RouteEntryId string + RouteEntryName string + RouteTableId string + Status string + Type string + VpcId string + func (route *SRouteEntry) GetCidr() string + func (route *SRouteEntry) GetGlobalId() string + func (route *SRouteEntry) GetId() string + func (route *SRouteEntry) GetName() string + func (route *SRouteEntry) GetNextHop() string + func (route *SRouteEntry) GetNextHopType() string + func (route *SRouteEntry) GetStatus() string + func (route *SRouteEntry) GetType() string + func (route *SRouteEntry) Refresh() error + type SRouteEntrys []*SRouteEntry + type SRouteTable struct + AccountId string + CreationTime time.Time + Description string + ProjectName string + RouteEntrys SRouteEntrys + RouteTableId string + RouteTableName string + RouteTableType string + SubnetIds SubnetIds + UpdateTime time.Time + VpcId string + VpcName string + func (routeTable *SRouteTable) IsSystem() bool + func (table *SRouteTable) CreateRoute(route cloudprovider.RouteSet) error + func (table *SRouteTable) GetAssociations() []cloudprovider.RouteTableAssociation + func (table *SRouteTable) GetDescription() string + func (table *SRouteTable) GetGlobalId() string + func (table *SRouteTable) GetIRoutes() ([]cloudprovider.ICloudRoute, error) + func (table *SRouteTable) GetId() string + func (table *SRouteTable) GetName() string + func (table *SRouteTable) GetRegionId() string + func (table *SRouteTable) GetStatus() string + func (table *SRouteTable) GetType() cloudprovider.RouteTableType + func (table *SRouteTable) GetVpcId() string + func (table *SRouteTable) Refresh() error + func (table *SRouteTable) RemoteGetRoutes(pageNumber int, pageSize int) ([]*SRouteEntry, int, error) + func (table *SRouteTable) RemoveRoute(route cloudprovider.RouteSet) error + func (table *SRouteTable) UpdateRoute(route cloudprovider.RouteSet) error + type SSNATEntry struct + EipAddress string + EipId string + NatGatewayId string + SnatEntryId string + SnatEntryName string + SourceCidr string + Status string + SubnetId string + func (sentry *SSNATEntry) Delete() error + func (sentry *SSNATEntry) GetGlobalId() string + func (sentry *SSNATEntry) GetIP() string + func (sentry *SSNATEntry) GetId() string + func (sentry *SSNATEntry) GetName() string + func (sentry *SSNATEntry) GetNetworkId() string + func (sentry *SSNATEntry) GetSourceCIDR() string + func (sentry *SSNATEntry) GetStatus() string + func (sentry *SSNATEntry) Refresh() error + type SSecurityGroup struct + CreationTime time.Time + Description string + ProjectName string + SecurityGroupId string + SecurityGroupName string + ServiceManaged bool + Status string + Type string + UpdateTime time.Time + VpcId string + func (secgroup *SSecurityGroup) Delete() error + func (secgroup *SSecurityGroup) GetCreatedAt() time.Time + func (secgroup *SSecurityGroup) GetDescription() string + func (secgroup *SSecurityGroup) GetGlobalId() string + func (secgroup *SSecurityGroup) GetId() string + func (secgroup *SSecurityGroup) GetName() string + func (secgroup *SSecurityGroup) GetProjectId() string + func (secgroup *SSecurityGroup) GetReferences() ([]cloudprovider.SecurityGroupReference, error) + func (secgroup *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error) + func (secgroup *SSecurityGroup) GetStatus() string + func (secgroup *SSecurityGroup) GetVpcId() string + func (secgroup *SSecurityGroup) Refresh() error + func (secgroup *SSecurityGroup) SetTags(tags map[string]string, replace bool) error + func (self *SSecurityGroup) CreateRule(opts *cloudprovider.SecurityGroupRuleCreateOptions) (cloudprovider.ISecurityGroupRule, error) + type SSecurityGroupIds []string + type SSecurityGroupRule struct + CidrIp string + CreationTime time.Time + Description string + Direction string + Policy string + PortEnd int + PortStart int + PrefixListCidrs SCidrList + PrefixListId string + Priority int + Protocol string + SourceGroupId string + UpdateTime time.Time + 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 struct + func (storage *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error) + func (storage *SStorage) GetCapacityMB() int64 + func (storage *SStorage) GetCapacityUsedMB() int64 + func (storage *SStorage) GetEnabled() bool + func (storage *SStorage) GetGlobalId() string + func (storage *SStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error) + func (storage *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error) + func (storage *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache + func (storage *SStorage) GetIZone() cloudprovider.ICloudZone + func (storage *SStorage) GetId() string + func (storage *SStorage) GetMediumType() string + func (storage *SStorage) GetMountPoint() string + func (storage *SStorage) GetName() string + func (storage *SStorage) GetStatus() string + func (storage *SStorage) GetStorageConf() jsonutils.JSONObject + func (storage *SStorage) GetStorageType() string + func (storage *SStorage) IsEmulated() bool + func (storage *SStorage) IsSysDiskStore() bool + type SStoragecache struct + func (scache *SStoragecache) GetGlobalId() string + func (scache *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error) + func (scache *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error) + func (scache *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error) + func (scache *SStoragecache) GetId() string + func (scache *SStoragecache) GetName() string + func (scache *SStoragecache) GetPath() string + func (scache *SStoragecache) GetStatus() string + func (scache *SStoragecache) Refresh() error + func (scache *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, ...) (string, error) + type SSupportedResource struct + Status string + Value string + type SUser struct + AccountId string + CreateDate time.Time + Description string + DisplayName string + Email string + EmailIsVerify bool + Id int + MobilePhone string + MobilePhoneIsVerify bool + Source string + Status string + Trn string + UpdateDate time.Time + UserName string + type SUserCIDRs []string + type SVolcEngineClient struct + func NewVolcEngineClient(cfg *VolcEngineClientConfig) (*SVolcEngineClient, error) + func (client *SVolcEngineClient) CreateIProject(name string) (cloudprovider.ICloudProject, error) + func (client *SVolcEngineClient) CreateProject(name string) (*SProject, error) + func (client *SVolcEngineClient) GetAccessEnv() string + func (client *SVolcEngineClient) GetAccountId() string + func (client *SVolcEngineClient) GetCallerIdentity() (*SCallerIdentity, error) + func (client *SVolcEngineClient) GetIProjects() ([]cloudprovider.ICloudProject, error) + func (client *SVolcEngineClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error) + func (client *SVolcEngineClient) GetIRegions() []cloudprovider.ICloudRegion + func (client *SVolcEngineClient) GetProject(name string) (*SProject, error) + func (client *SVolcEngineClient) GetProjects() ([]SProject, error) + func (client *SVolcEngineClient) GetRegion(regionId string) *SRegion + func (client *SVolcEngineClient) GetRegions() []SRegion + func (client *SVolcEngineClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error) + func (client *SVolcEngineClient) ListProjects(limit int, offset int) ([]SProject, int, error) + func (client *SVolcEngineClient) QueryBalance() (*SBalance, error) + func (region *SVolcEngineClient) GetCapabilities() []string + func (self *SVolcEngineClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SVolcEngineClient) GetMetricData(regionId string, start, end time.Time, ...) ([]SMetricData, error) + func (self *SVolcEngineClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SVolcEngineClient) GetOssMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + type SVpc struct + CidrBlock string + CidrBlockAssociationSet []string + InstanceTenancy string + IsDefault bool + RegionId string + Status string + VpcId string + VpcName string + func (vpc *SVpc) CreateINatGateway(opts *cloudprovider.NatGatewayCreateOptions) (cloudprovider.ICloudNatGateway, error) + func (vpc *SVpc) Delete() error + func (vpc *SVpc) GetAuthorityOwnerId() string + func (vpc *SVpc) GetCidrBlock() string + func (vpc *SVpc) GetGlobalId() string + func (vpc *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error) + func (vpc *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error) + func (vpc *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error) + func (vpc *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error) + func (vpc *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error) + func (vpc *SVpc) GetId() string + func (vpc *SVpc) GetIsDefault() bool + func (vpc *SVpc) GetName() string + func (vpc *SVpc) GetRegion() cloudprovider.ICloudRegion + func (vpc *SVpc) GetStatus() string + func (vpc *SVpc) IsEmulated() bool + func (vpc *SVpc) Refresh() error + func (vpc *SVpc) RemoteGetRouteTableList(pageNumber int, pageSize int) ([]*SRouteTable, int, error) + type SWire struct + func (wire *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error) + func (wire *SWire) GetBandwidth() int + func (wire *SWire) GetGlobalId() string + func (wire *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error) + func (wire *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error) + func (wire *SWire) GetIVpc() cloudprovider.ICloudVpc + func (wire *SWire) GetIZone() cloudprovider.ICloudZone + func (wire *SWire) GetId() string + func (wire *SWire) GetName() string + func (wire *SWire) GetStatus() string + func (wire *SWire) IsEmulated() bool + func (wire *SWire) Refresh() error + type SZone struct + AvailableResources []SAvailableResource + LocalName string + RegionId string + Status string + ZoneId string + func (zone *SZone) GetGlobalId() string + func (zone *SZone) GetI18n() cloudprovider.SModelI18nTable + func (zone *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error) + func (zone *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error) + func (zone *SZone) GetIRegion() cloudprovider.ICloudRegion + func (zone *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (zone *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (zone *SZone) GetIWires() ([]cloudprovider.ICloudWire, error) + func (zone *SZone) GetId() string + func (zone *SZone) GetName() string + func (zone *SZone) GetStatus() string + func (zone *SZone) GetStorages() ([]SStorage, error) + type SubnetIds []string + type TBillingType int + const BillingByBandwidth + const BillingByPrePaid + const BillingByTraffic + type VolcEngineClientConfig struct + func NewVolcEngineClientConfig(accessKey, secretKey string) *VolcEngineClientConfig + func (cfg *VolcEngineClientConfig) AccountId(id string) *VolcEngineClientConfig + func (cfg *VolcEngineClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *VolcEngineClientConfig + func (cfg *VolcEngineClientConfig) Debug(debug bool) *VolcEngineClientConfig + func (cfg VolcEngineClientConfig) Copy() VolcEngineClientConfig + type VolcEngineTags struct + Tags []multicloud.STag + func (itag *VolcEngineTags) GetSysTags() map[string]string + func (itag *VolcEngineTags) GetTags() (map[string]string, error) + func (itag *VolcEngineTags) SetTags(tags map[string]string, replace bool) error