Versions in this module Expand all Collapse all v0 v0.9.6 Nov 26, 2019 v0.9.5 Oct 25, 2019 Changes in this version + const REQUEST_ASP_URI + const REQUEST_IMAGE_OS_URI + const REQUEST_IMAGE_SHAREDUSER_URI + const REQUEST_IMAGE_URI + const REQUEST_INSTANCE_URI + const REQUEST_SECURITYGROUP_URI + const REQUEST_SNAPSHOT_URI + const REQUEST_SPEC_URI + const REQUEST_SUBNET_URI + const REQUEST_VNC_SUFFIX + const REQUEST_VOLUME_URI + const REQUEST_ZONE_URI + const URI_PREFIX + func Aes128EncryptUseSecreteKey(sk string, data string) (string, error) + func AttachAutoSnapshotPolicy(cli bce.Client, aspId string, args *AttachASPArgs) error + func AuthorizeSecurityGroupRule(cli bce.Client, securityGroupId string, args *AuthorizeSecurityGroupArgs) error + func BindSecurityGroup(cli bce.Client, instanceId string, reqBody *bce.Body) error + func CancelRemoteCopyImage(cli bce.Client, imageId string) error + func ChangeInstancePass(cli bce.Client, instanceId string, reqBody *bce.Body) error + func DeleteAutoSnapshotPolicy(cli bce.Client, aspId string) error + func DeleteCDSVolume(cli bce.Client, volumeId string) error + func DeleteCDSVolumeNew(cli bce.Client, volumeId string, args *DeleteCDSVolumeArgs) error + func DeleteImage(cli bce.Client, imageId string) error + func DeleteInstance(cli bce.Client, instanceId string) error + func DeleteInstanceWithRelatedResource(cli bce.Client, instanceId string, reqBody *bce.Body) error + func DeleteSecurityGroup(cli bce.Client, securityGroupId string) error + func DeleteSnapshot(cli bce.Client, snapshotId string) error + func DetachAutoSnapshotPolicy(cli bce.Client, aspId string, args *DetachASPArgs) error + func DetachCDSVolume(cli bce.Client, volumeId string, args *DetachVolumeArgs) error + func InstanceChangeSubnet(cli bce.Client, reqBody *bce.Body) error + func InstancePurchaseReserved(cli bce.Client, instanceId, clientToken string, reqBody *bce.Body) error + func ModifyCDSVolume(cli bce.Client, volumeId string, args *ModifyCSDVolumeArgs) error + func ModifyChargeTypeCDSVolume(cli bce.Client, volumeId string, args *ModifyChargeTypeCSDVolumeArgs) error + func ModifyInstanceAttribute(cli bce.Client, instanceId string, reqBody *bce.Body) error + func ModifyInstanceDesc(cli bce.Client, instanceId string, reqBody *bce.Body) error + func PurchaseReservedCDSVolume(cli bce.Client, volumeId string, args *PurchaseReservedCSDVolumeArgs) error + func RebootInstance(cli bce.Client, instanceId string, reqBody *bce.Body) error + func RebuildInstance(cli bce.Client, instanceId string, reqBody *bce.Body) error + func RemoteCopyImage(cli bce.Client, imageId string, args *RemoteCopyImageArgs) error + func RenameCDSVolume(cli bce.Client, volumeId string, args *RenameCSDVolumeArgs) error + func ResizeCDSVolume(cli bce.Client, volumeId string, args *ResizeCSDVolumeArgs) error + func ResizeInstance(cli bce.Client, instanceId, clientToken string, reqBody *bce.Body) error + func RevokeSecurityGroupRule(cli bce.Client, securityGroupId string, args *RevokeSecurityGroupArgs) error + func RollbackCDSVolume(cli bce.Client, volumeId string, args *RollbackCSDVolumeArgs) error + func ShareImage(cli bce.Client, imageId string, args *SharedUser) error + func StartInstance(cli bce.Client, instanceId string) error + func StopInstance(cli bce.Client, instanceId string, reqBody *bce.Body) error + func UnBindSecurityGroup(cli bce.Client, instanceId string, reqBody *bce.Body) error + func UnShareImage(cli bce.Client, imageId string, args *SharedUser) error + func UpdateAutoSnapshotPolicy(cli bce.Client, args *UpdateASPArgs) error + type AttachASPArgs struct + VolumeIds []string + type AttachVolumeArgs struct + InstanceId string + type AttachVolumeResult struct + VolumeAttachment *VolumeAttachmentModel + func AttachCDSVolume(cli bce.Client, volumeId string, args *AttachVolumeArgs) (*AttachVolumeResult, error) + type AuthorizeSecurityGroupArgs struct + ClientToken string + Rule *SecurityGroupRuleModel + type AutoSnapshotPolicyModel struct + CreatedTime string + DeletedTime string + Id string + LastExecuteTime string + Name string + RepeatWeekdays []int + RetentionDays int + Status string + TimePoints []int + UpdatedTime string + VolumeCount int + type Billing struct + PaymentTiming PaymentTimingType + Reservation *Reservation + type BindSecurityGroupArgs struct + SecurityGroupId string + type ChangeInstancePassArgs struct + AdminPass string + type CreateASPArgs struct + ClientToken string + Name string + RepeatWeekdays []string + RetentionDays string + TimePoints []string + type CreateASPResult struct + AspId string + func CreateAutoSnapshotPolicy(cli bce.Client, args *CreateASPArgs) (*CreateASPResult, error) + type CreateCDSVolumeArgs struct + Billing *Billing + CdsSizeInGB int + ClientToken string + Description string + Name string + PurchaseCount int + SnapshotId string + StorageType StorageType + ZoneName string + type CreateCDSVolumeResult struct + VolumeIds []string + func CreateCDSVolume(cli bce.Client, args *CreateCDSVolumeArgs) (*CreateCDSVolumeResult, error) + type CreateCdsModel struct + CdsSizeInGB int + SnapShotId string + StorageType StorageType + type CreateImageArgs struct + ClientToken string + ImageName string + InstanceId string + SnapshotId string + type CreateImageResult struct + ImageId string + func CreateImage(cli bce.Client, args *CreateImageArgs) (*CreateImageResult, error) + type CreateInstanceArgs struct + AdminPass string + AutoRenewTime int + AutoRenewTimeUnit string + Billing Billing + CardCount string + CdsAutoRenew bool + ClientToken string + CpuCount int + CreateCdsList []CreateCdsModel + DedicateHostId string + EphemeralDisks []EphemeralDisk + FpgaCard string + GpuCard string + ImageId string + InstanceType InstanceType + LocalDiskSizeInGB int + MemoryCapacityInGB int + Name string + NetWorkCapacityInMbps int + PurchaseCount int + RelationTag bool + RootDiskSizeInGb int + RootDiskStorageType StorageType + SecurityGroupId string + SubnetId string + Tags []model.TagModel + ZoneName string + type CreateInstanceResult struct + InstanceIds []string + func CreateInstance(cli bce.Client, clientToken string, reqBody *bce.Body) (*CreateInstanceResult, error) + type CreateSecurityGroupArgs struct + ClientToken string + Desc string + Name string + Rules []SecurityGroupRuleModel + Tags []model.TagModel + VpcId string + type CreateSecurityGroupResult struct + SecurityGroupId string + func CreateSecurityGroup(cli bce.Client, args *CreateSecurityGroupArgs) (*CreateSecurityGroupResult, error) + type CreateSnapshotArgs struct + ClientToken string + Description string + SnapshotName string + VolumeId string + type CreateSnapshotResult struct + SnapshotId string + func CreateSnapshot(cli bce.Client, args *CreateSnapshotArgs) (*CreateSnapshotResult, error) + type DeleteCDSVolumeArgs struct + AutoSnapshot string + ManualSnapshot string + type DeleteInstanceWithRelateResourceArgs struct + DeleteCdsSnapshotFlag bool + RelatedReleaseFlag bool + type DetachASPArgs struct + VolumeIds []string + type DetachVolumeArgs struct + InstanceId string + type EphemeralDisk struct + FreeSizeInGB int + SizeInGB int + StorageType StorageType + type GetASPDetailResult struct + AutoSnapshotPolicy AutoSnapshotPolicyModel + func GetAutoSnapshotPolicyDetail(cli bce.Client, aspId string) (*GetASPDetailResult, error) + type GetImageDetailResult struct + Image *ImageModel + func GetImageDetail(cli bce.Client, imageId string) (*GetImageDetailResult, error) + type GetImageOsArgs struct + InstanceIds []string + type GetImageOsResult struct + OsInfo []OsModel + func GetImageOS(cli bce.Client, args *GetImageOsArgs) (*GetImageOsResult, error) + type GetImageSharedUserResult struct + Users []SharedUser + func GetImageSharedUser(cli bce.Client, imageId string) (*GetImageSharedUserResult, error) + type GetInstanceDetailResult struct + Instance InstanceModel + func GetInstanceDetail(cli bce.Client, instanceId string) (*GetInstanceDetailResult, error) + type GetInstanceVNCResult struct + VNCUrl string + func GetInstanceVNC(cli bce.Client, instanceId string) (*GetInstanceVNCResult, error) + type GetSnapshotDetailResult struct + Snapshot SnapshotModel + func GetSnapshotDetail(cli bce.Client, snapshotId string) (*GetSnapshotDetailResult, error) + type GetVolumeDetailResult struct + Volume *VolumeModel + func GetCDSVolumeDetail(cli bce.Client, volumeId string) (*GetVolumeDetailResult, error) + type ImageModel struct + CreateTime string + Desc string + Id string + Name string + OsArch string + OsBuild string + OsName string + OsType string + OsVersion string + SpecialVersion string + Status ImageStatus + Type ImageType + type ImageStatus string + const ImageStatusAvailable + const ImageStatusCreateFailed + const ImageStatusCreating + const ImageStatusError + const ImageStatusNotAvailable + type ImageType string + const ImageTypeCustom + const ImageTypeIntegration + const ImageTypeSystem + type InstanceChangeSubnetArgs struct + InstanceId string + Reboot bool + SubnetId string + type InstanceModel struct + AutoRenew bool + CardCount int + CpuCount int + CreationTime string + DedicatedHostId string + Description string + ExpireTime string + FpgaCard string + GpuCard string + ImageId string + InstanceId string + InstanceName string + InstanceType InstanceType + InternalIP string + KeypairId string + KeypairName string + LocalDiskSizeInGB int + MemoryCapacityInGB int + NetworkCapacityInMbps int + PaymentTiming string + PlacementPolicy string + PublicIP string + Status InstanceStatus + SubnetId string + Tags []model.TagModel + VpcId string + ZoneName string + type InstanceStatus string + const InstanceStatusDeleted + const InstanceStatusError + const InstanceStatusExpired + const InstanceStatusImageProcessing + const InstanceStatusRunning + const InstanceStatusScaling + const InstanceStatusSnapshotProcessing + const InstanceStatusStarting + const InstanceStatusStopped + const InstanceStatusStopping + type InstanceType string + const InstanceTypeC1 + const InstanceTypeC2 + const InstanceTypeF1 + const InstanceTypeG1 + const InstanceTypeN1 + const InstanceTypeN2 + const InstanceTypeN3 + const InstanceTypeS1 + type InstanceTypeModel struct + CpuCount int + LocalDiskSizeInGB int + MemorySizeInGB int + Name string + Type string + type ListASPArgs struct + AspName string + Marker string + MaxKeys int + VolumeName string + type ListASPResult struct + AutoSnapshotPolicys []AutoSnapshotPolicyModel + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + func ListAutoSnapshotPolicy(cli bce.Client, queryArgs *ListASPArgs) (*ListASPResult, error) + type ListCDSVolumeArgs struct + InstanceId string + Marker string + MaxKeys int + ZoneName string + type ListCDSVolumeResult struct + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + Volumes []VolumeModel + func ListCDSVolume(cli bce.Client, queryArgs *ListCDSVolumeArgs) (*ListCDSVolumeResult, error) + type ListImageArgs struct + ImageType string + Marker string + MaxKeys int + type ListImageResult struct + Images []ImageModel + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + func ListImage(cli bce.Client, queryArgs *ListImageArgs) (*ListImageResult, error) + type ListInstanceArgs struct + DedicatedHostId string + InternalIp string + Marker string + MaxKeys int + ZoneName string + type ListInstanceResult struct + Instances []InstanceModel + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + func ListInstances(cli bce.Client, args *ListInstanceArgs) (*ListInstanceResult, error) + type ListSecurityGroupArgs struct + InstanceId string + Marker string + MaxKeys int + VpcId string + type ListSecurityGroupResult struct + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + SecurityGroups []SecurityGroupModel + func ListSecurityGroup(cli bce.Client, queryArgs *ListSecurityGroupArgs) (*ListSecurityGroupResult, error) + type ListSnapshotArgs struct + Marker string + MaxKeys int + VolumeId string + type ListSnapshotResult struct + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + Snapshots []SnapshotModel + func ListSnapshot(cli bce.Client, queryArgs *ListSnapshotArgs) (*ListSnapshotResult, error) + type ListSpecResult struct + InstanceTypes []InstanceTypeModel + func ListSpec(cli bce.Client) (*ListSpecResult, error) + type ListZoneResult struct + Zones []ZoneModel + func ListZone(cli bce.Client) (*ListZoneResult, error) + type ModifyCSDVolumeArgs struct + CdsName string + Desc string + type ModifyChargeTypeCSDVolumeArgs struct + Billing *Billing + type ModifyInstanceAttributeArgs struct + Name string + type ModifyInstanceDescArgs struct + Description string + type OsModel struct + InstanceId string + OsArch string + OsName string + OsType string + OsVersion string + type PaymentTimingType string + const PaymentTimingPostPaid + const PaymentTimingPrePaid + type PurchaseReservedArgs struct + Billing Billing + ClientToken string + type PurchaseReservedCSDVolumeArgs struct + Billing *Billing + ClientToken string + type RebuildInstanceArgs struct + AdminPass string + ImageId string + type RemoteCopyImageArgs struct + DestRegion []string + Name string + type RenameCSDVolumeArgs struct + Name string + type Reservation struct + ReservationLength int + ReservationTimeUnit string + type ResizeCSDVolumeArgs struct + ClientToken string + NewCdsSizeInGB int + type ResizeInstanceArgs struct + ClientToken string + CpuCount int + EphemeralDisks []EphemeralDisk + MemoryCapacityInGB int + type RevokeSecurityGroupArgs struct + Rule *SecurityGroupRuleModel + type RollbackCSDVolumeArgs struct + SnapshotId string + type SecurityGroupModel struct + Desc string + Id string + Name string + Rules []SecurityGroupRuleModel + Tags []model.TagModel + VpcId string + type SecurityGroupRuleModel struct + DestGroupId string + DestIp string + Direction string + Ethertype string + PortRange string + Protocol string + Remark string + SecurityGroupId string + SourceGroupId string + SourceIp string + type SharedUser struct + Account string + AccountId string + type SnapshotModel struct + CreateMethod string + CreateTime string + Description string + Id string + Name string + SizeInGB int + Status SnapshotStatus + VolumeId string + type SnapshotStatus string + const SnapshotStatusAvailable + const SnapshotStatusCreatedFailed + const SnapshotStatusCreating + const SnapshotStatusNotAvailable + type StopInstanceArgs struct + ForceStop bool + type StorageType string + const StorageTypeCloudHP1 + const StorageTypeHP1 + const StorageTypeLocal + const StorageTypeSATA + const StorageTypeSSD + const StorageTypeStd1 + type UpdateASPArgs struct + AspId string + Name string + RepeatWeekdays []string + RetentionDays string + TimePoints []string + type VolumeAttachmentModel struct + Device string + InstanceId string + Serial string + VolumeId string + type VolumeModel struct + Attachments []VolumeAttachmentModel + AutoSnapshotPolicy *AutoSnapshotPolicyModel + CreateTime string + Desc string + DiskSizeInGB int + ExpireTime string + Id string + IsSystemVolume bool + Name string + PaymentTiming string + RegionId string + SnapshotNum string + SourceSnapshotId string + Status VolumeStatus + StorageType StorageType + Tags []model.TagModel + Type VolumeType + ZoneName string + type VolumeStatus string + const VolumeStatusATTACHING + const VolumeStatusAVAILABLE + const VolumeStatusCREATING + const VolumeStatusDELETED + const VolumeStatusDELETING + const VolumeStatusDETACHING + const VolumeStatusERROR + const VolumeStatusEXPIRED + const VolumeStatusIMAGEPROCESSING + const VolumeStatusINUSE + const VolumeStatusNOTAVAILABLE + const VolumeStatusRECHARGING + const VolumeStatusSCALING + const VolumeStatusSNAPSHOTPROCESSING + type VolumeType string + const VolumeTypeCDS + const VolumeTypeEPHEMERAL + const VolumeTypeSYSTEM + type ZoneModel struct + ZoneName string