cvm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoAction

func DoAction(action string, options ...string) ([]byte, error)

Types

type DescribeInstancesResp

type DescribeInstancesResp struct {
	Code        int64  `json:"code"`
	CodeDesc    string `json:"codeDesc"`
	InstanceSet []struct {
		Region       string `json:"Region"`
		AutoRenew    int64  `json:"autoRenew"`
		Bandwidth    int64  `json:"bandwidth"`
		CPU          int64  `json:"cpu"`
		CreateTime   string `json:"createTime"`
		CvmPayMode   int64  `json:"cvmPayMode"`
		DeadlineTime string `json:"deadlineTime"`
		DeviceClass  string `json:"deviceClass"`
		DiskInfo     struct {
			RootID      interface{} `json:"rootId"`
			RootSize    int64       `json:"rootSize"`
			RootType    int64       `json:"rootType"`
			StorageID   interface{} `json:"storageId"`
			StorageSize int64       `json:"storageSize"`
			StorageType int64       `json:"storageType"`
		} `json:"diskInfo"`
		ImageID        int64       `json:"imageId"`
		ImageType      string      `json:"imageType"`
		InstanceID     string      `json:"instanceId"`
		InstanceName   string      `json:"instanceName"`
		IsVpcGateway   int64       `json:"isVpcGateway"`
		LanIP          string      `json:"lanIp"`
		Mem            int64       `json:"mem"`
		NetworkPayMode int64       `json:"networkPayMode"`
		Os             string      `json:"os"`
		ProjectID      int64       `json:"projectId"`
		Status         int64       `json:"status"`
		StatusTime     string      `json:"statusTime"`
		SubnetID       interface{} `json:"subnetId"`
		UnImgID        string      `json:"unImgId"`
		UnInstanceID   string      `json:"unInstanceId"`
		UUID           string      `json:"uuid"`
		VpcID          interface{} `json:"vpcId"`
		WanIPSet       []string    `json:"wanIpSet"`
		ZoneID         int64       `json:"zoneId"`
		ZoneName       string      `json:"zoneName"`
	} `json:"instanceSet"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

type DescribeInstancesStatusResp

type DescribeInstancesStatusResp struct {
	Response struct {
		Error             interface{} `json:"Error,omitempty"`
		InstanceStatusSet []struct {
			InstanceID    string `json:"InstanceId"`
			InstanceState string `json:"InstanceState"`
		} `json:"InstanceStatusSet,omitempty"`
		RequestID  string `json:"RequestId"`
		TotalCount int    `json:"TotalCount"`
	} `json:"Response"`
}

type DescribeRegionsResp

type DescribeRegionsResp struct {
	Code      int64  `json:"code"`
	CodeDesc  string `json:"codeDesc"`
	Message   string `json:"message"`
	RegionSet []struct {
		Region      string `json:"region"`
		RegionCode  string `json:"regionCode"`
		RegionName  string `json:"regionName"`
		RegionState string `json:"regionState"`
	} `json:"regionSet"`
	TotalCount int64 `json:"totalCount"`
}

type DescribeZonesResp

type DescribeZonesResp struct {
	Code       int64  `json:"code"`
	CodeDesc   string `json:"codeDesc"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
	ZoneSet    []struct {
		Zone      string `json:"zone"`
		ZoneID    string `json:"zoneId"`
		ZoneName  string `json:"zoneName"`
		ZoneState string `json:"zoneState"`
	} `json:"zoneSet"`
}

type RebootInstancesResp

type RebootInstancesResp struct {
	Response struct {
		Error     interface{} `json:"Error,omitempty"`
		RequestID string      `json:"RequestId"`
	} `json:"Response"`
}

func RebootInstances

func RebootInstances(options ...string) (*RebootInstancesResp, error)

type ResetInstancesResp

type ResetInstancesResp struct {
	Code      int    `json:"code"`
	CodeDesc  string `json:"codeDesc"`
	Message   string `json:"message"`
	RequestID int    `json:"requestId"`
}

func ResetInstances

func ResetInstances(options ...string) (*ResetInstancesResp, error)

type ResizeInstanceDisksResp

type ResizeInstanceDisksResp struct {
	Response struct {
		Error     interface{} `json:"Error,omitempty"`
		RequestID string      `json:"RequestId"`
	} `json:"Response"`
}

func ResizeInstanceDisks

func ResizeInstanceDisks(options ...string) (*ResizeInstanceDisksResp, error)

type RunInstancesResp

type RunInstancesResp struct {
	Response struct {
		Error     interface{} `json:"Error,omitempty"`
		RequestID string      `json:"RequestId"`
	} `json:"Response"`
}

func RunInstances

func RunInstances(options ...string) (*RunInstancesResp, error)

type StartInstancesResp

type StartInstancesResp struct {
	Code     int         `json:"code"`
	CodeDesc string      `json:"codeDesc"`
	Detail   interface{} `json:"detail"`
	Message  string      `json:"message"`
}

func StartInstances

func StartInstances(options ...string) (*StartInstancesResp, error)

type StopInstancesResp

type StopInstancesResp struct {
	Code     int         `json:"code"`
	CodeDesc string      `json:"codeDesc"`
	Detail   interface{} `json:"detail"`
	Message  string      `json:"message"`
}

func StopInstances

func StopInstances(options ...string) (*StopInstancesResp, error)

type TerminateInstancesResp

type TerminateInstancesResp struct {
	Response struct {
		Error     interface{} `json:"Error,omitempty"`
		RequestID string      `json:"RequestId"`
	} `json:"Response"`
}

func TerminateInstances

func TerminateInstances(options ...string) (*TerminateInstancesResp, error)

Jump to

Keyboard shortcuts

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