cloudserversext

package
v1.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ECSCLOUDSERVICETYPECODE = "hws.service.type.ec2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Charging

type Charging struct {
	//0代表按需计费、1代表包周期计费
	ChargingMode string

	//ChargingMode为1时有效 new
	ValidTime string

	//ChargingMode为1时有效 new
	ExpireTime string
}

type CloudServerExt

type CloudServerExt struct {
	CloudServer *cloudservers.CloudServer

	//volume attached new
	VolumeAttached []VolumeInfo

	//云服务器计费信息 new
	Charging Charging
}

在server结构上加上了相关bss(Charging)信息及相关volume(VolumeAttached)信息

func GetPrepaidServerDetailByOrderId

func GetPrepaidServerDetailByOrderId(client *gophercloud.ServiceClient, orderId string) ([]CloudServerExt, error)

func GetServerExt

func GetServerExt(client *gophercloud.ServiceClient, serverId string) (CloudServerExt, error)

type VolumeInfo

type VolumeInfo struct {
	//卷的uuid
	ID string

	//云硬盘类型
	VolumeType string

	//云硬盘大小
	Size int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL