Versions in this module Expand all Collapse all v0 v0.9.7 Mar 18, 2020 Changes in this version + const REQUEST_DEPLOY_SET_URI + const REQUEST_FLAVOR_RAID_URI + const REQUEST_FLAVOR_URI + const REQUEST_IMAGE_URI + const REQUEST_INSTANCE_URI + const REQUEST_OPERATION_LOG_URI + const REQUEST_SUBNET_URI + const URI_PREFIX_V1 + const URI_PREFIX_V2 + func Aes128EncryptUseSecreteKey(sk string, data string) (string, error) + func DeleteDeploySet(cli bce.Client, deploySetId string) error + func DeleteImage(cli bce.Client, imageId string) error + func ModifyInstanceDesc(cli bce.Client, instanceId string, reqBody *bce.Body) error + func ModifyInstanceName(cli bce.Client, instanceId string, reqBody *bce.Body) error + func ModifyInstancePassword(cli bce.Client, instanceId string, reqBody *bce.Body) error + func RebootInstance(cli bce.Client, instanceId string, reqBody *bce.Body) error + func RebuildInstance(cli bce.Client, instanceId string, reqBody *bce.Body) error + func ReleaseInstance(cli bce.Client, instanceId string) error + func StartInstance(cli bce.Client, instanceId string) error + func StopInstance(cli bce.Client, instanceId string, reqBody *bce.Body) error + func UnbindTags(cli bce.Client, instanceId string, reqBody *bce.Body) error + type BbcNetworkModel struct + BbcId string + Subnet SubnetModel + Vpc VpcModel + type Billing struct + PaymentTiming PaymentTimingType + Reservation *Reservation + type CreateDeploySetArgs struct + ClientToken string + Concurrency int + Desc string + Name string + Strategy string + type CreateDeploySetResult struct + DeploySetId string + func CreateDeploySet(cli bce.Client, clientToken string, reqBody *bce.Body) (*CreateDeploySetResult, error) + type CreateImageArgs struct + ClientToken string + ImageName string + InstanceId string + type CreateImageResult struct + ImageId string + func CreateImageFromInstanceId(cli bce.Client, clientToken string, reqBody *bce.Body) (*CreateImageResult, error) + type CreateInstanceArgs struct + AdminPass string + Billing Billing + ClientToken string + DeploySetId string + FlavorId string + ImageId string + Name string + PurchaseCount int + RaidId string + RootDiskSizeInGb int + SecurityGroupId string + SubnetId string + ZoneName string + type CreateInstanceResult struct + InstanceIds []string + func CreateInstance(cli bce.Client, clientToken string, reqBody *bce.Body) (*CreateInstanceResult, error) + type DeploySetModel struct + Concurrency int + DeploySetId string + InstanceList []string + Strategy string + type FlavorModel struct + CpuCount int + CpuType string + Disk string + FlavorId string + MemoryCapacityInGB int + NetworkCard string + Others string + type GetDeploySetResult struct + func GetDeploySet(cli bce.Client, deploySetId string) (*GetDeploySetResult, error) + type GetFlavorDetailResult struct + func GetFlavorDetail(cli bce.Client, flavorId string) (*GetFlavorDetailResult, error) + type GetFlavorRaidResult struct + FlavorId string + Raids []RaidModel + func GetFlavorRaid(cli bce.Client, flavorId string) (*GetFlavorRaidResult, error) + type GetImageDetailResult struct + Image *ImageModel + func GetImageDetail(cli bce.Client, imageId string) (*GetImageDetailResult, error) + type GetOperationLogArgs struct + EndTime string + Marker string + MaxKeys int + StartTime string + type GetOperationLogResult struct + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + OperationLogs []OperationLogModel + func GetOperationLog(cli bce.Client, args *GetOperationLogArgs) (*GetOperationLogResult, error) + type GetVpcSubnetArgs struct + BbcIds []string + type GetVpcSubnetResult struct + NetworkInfo []BbcNetworkModel + func GetVpcSubnet(cli bce.Client, reqBody *bce.Body) (*GetVpcSubnetResult, 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 InstanceModel struct + CreateTime string + Desc string + ExpireTime string + FlavorId string + Id string + ImageId string + InternalIP string + Name string + NetworkCapacityInMbps int + PaymentTiming string + PublicIP string + Region string + Status InstanceStatus + Tags []model.TagModel + Zone string + func GetInstanceDetail(cli bce.Client, instanceId string) (*InstanceModel, error) + type InstanceStatus string + const InstanceStatusDeleted + const InstanceStatusError + const InstanceStatusExpired + const InstanceStatusImageProcessing + const InstanceStatusRunning + const InstanceStatusStarting + const InstanceStatusStopped + const InstanceStatusStopping + type ListDeploySetsResult struct + DeploySetList []DeploySetModel + func ListDeploySets(cli bce.Client) (*ListDeploySetsResult, error) + type ListFlavorsResult struct + Flavors []FlavorModel + func ListFlavors(cli bce.Client) (*ListFlavorsResult, 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 + InternalIp string + Marker string + MaxKeys int + type ListInstanceResult struct + Instances []InstanceModel + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + func ListInstances(cli bce.Client, args *ListInstanceArgs) (*ListInstanceResult, error) + type ModifyInstanceDescArgs struct + Description string + type ModifyInstanceNameArgs struct + Name string + type ModifyInstancePasswordArgs struct + AdminPass string + type OperationLogModel struct + OperationDesc string + OperationIp string + OperationStatus bool + OperationTime string + type PaymentTimingType string + const PaymentTimingPostPaid + const PaymentTimingPrePaid + type RaidModel struct + DataDiskSize int + Raid string + RaidId string + SysDiskSize int + SysHomeSize int + SysRootSize int + SysSwapSize int + type RebuildInstanceArgs struct + AdminPass string + ImageId string + IsPreserveData bool + RaidId string + SysRootSize int + type Reservation struct + ReservationLength int + ReservationTimeUnit string + type StopInstanceArgs struct + ForceStop bool + type SubnetModel struct + Cidr string + Name string + SubnetId string + SubnetType string + VpcId string + ZoneName string + type UnbindTagsArgs struct + ChangeTags []model.TagModel + type VpcModel struct + Cidr string + Description string + IsDefault bool + Name string + VpcId string