veen

package
v1.0.190 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName    = "veenedge"
	ServiceVersion = "2021-04-30"
)
View Source
const (
	BILLINGMETHODMOUTHPEAK = "MonthlyPeak"

	BILLINGMETHODDAYPEAK = "DailyPeak"

	BILLINGMETHODMOUTHP95 = "MonthlyP95"

	BILLINGMETHODHOURUSED = "HourUsed"
)
View Source
const (
	EXTERNALNETWORKMODESINGLEINTERFACESINGLEIP = "single_interface_single_ip"

	EXTERNALNETWORKMODESINGLEINTERFACEMULTIIP = "single_interface_multi_ip"

	EXTERNALNETWORKMODESINGLEINTERFACECMCCIP = "single_interface_cmcc_ip"

	EXTERNALNETWORKMODESINGLEINTERFACECUCCIP = "single_interface_cucc_ip"

	EXTERNALNETWORKMODESINGLEINTERFACECTCCIP = "single_interface_ctcc_ip"

	EXTERNALNETWORKMODEMULTIINTERFACEMULTIIP = "multi_interface_multi_ip"

	EXTERNALNETWORKMODENOINTERFACE = "no_interface"
)
View Source
const (
	IMAGEBOOTMODEUEFI = "UEFI"

	IMAGEBOOTMODEBIOS = "BIOS"
)
View Source
const (
	LoadTypeVM = "virtual_machine"

	LoadTypeBm = "bare_metal"
)
View Source
const (
	INSTANCEARCHX86 = "x86"

	INSTANCEARCHBAREMETAL = "bare_metal"

	INSTANCEARCHARM = "arm"
)
View Source
const (
	VEENSTATUSOPENING = "opening"

	VEENSTATUSRUNNING = "running"

	VEENSTATUSSTOPPING = "stopping"

	VEENSTATUSSTOP = "stop"

	VEENSTATUSSTARTING = "starting"

	VEENSTATUSREBOOTING = "rebooting"

	VEENSTATUSTERMINATING = "terminating"

	VEENSTATUSOPENFAIL = "open_fail"
)
View Source
const (
	IPVERSION4 = "ipv4"

	IPVERSION6 = "ipv6"
)
View Source
const (
	ChargeTypeHourUsed ChargeType = "HourUsed"

	EbsTypeData EbsType = "data"

	EbsStatusCreating EbsStatus = "creating"

	EbsStatusDetached EbsStatus = "detached"

	EbsStatusAttaching EbsStatus = "attaching"

	EbsStatusAttached EbsStatus = "attached"

	EbsStatusDetaching EbsStatus = "detaching"

	EbsStatusScaling EbsStatus = "scaling"

	EbsStatusDeleting EbsStatus = "deleting"

	EbsStatusDeleted EbsStatus = "deleted"

	StorageTypeSSD StorageType = "CloudBlockSSD"

	StorageTypeHDD StorageType = "CloudBlockHDD"

	AttachmentTypeVeen AttachmentType = "veen"
)

Variables

View Source
var (
	// 注册api
	ApiInfoList = map[string]*base.ApiInfo{
		"CreateCloudServer": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateCloudServer"},
				"Version": []string{ServiceVersion},
			},
		},
		"ListCloudServers": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListCloudServers"},
				"Version": []string{ServiceVersion},
			},
		},
		"GetCloudServer": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetCloudServer"},
				"Version": []string{ServiceVersion},
			},
		},
		"StartCloudServer": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"StartCloudServer"},
				"Version": []string{ServiceVersion},
			},
		},
		"StopCloudServer": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"StopCloudServer"},
				"Version": []string{ServiceVersion},
			},
		},
		"RebootCloudServer": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"RebootCloudServer"},
				"Version": []string{ServiceVersion},
			},
		},
		"DeleteCloudServer": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteCloudServer"},
				"Version": []string{ServiceVersion},
			},
		},
		"ListInstanceTypes": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListInstanceTypes"},
				"Version": []string{ServiceVersion},
			},
		},
		"ListAvailableResourceInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListAvailableResourceInfo"},
				"Version": []string{ServiceVersion},
			},
		},
		"CreateInstance": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateInstance"},
				"Version": []string{ServiceVersion},
			},
		},
		"ListInstances": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListInstances"},
				"Version": []string{ServiceVersion},
			},
		},
		"GetInstance": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetInstance"},
				"Version": []string{ServiceVersion},
			},
		},
		"StartInstances": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"StartInstances"},
				"Version": []string{ServiceVersion},
			},
		},
		"StopInstances": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"StopInstances"},
				"Version": []string{ServiceVersion},
			},
		},
		"RebootInstances": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"RebootInstances"},
				"Version": []string{ServiceVersion},
			},
		},
		"OfflineInstances": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OfflineInstances"},
				"Version": []string{ServiceVersion},
			},
		},
		"SetInstanceName": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"SetInstanceName"},
				"Version": []string{ServiceVersion},
			},
		},
		"ResetLoginCredential": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ResetLoginCredential"},
				"Version": []string{ServiceVersion},
			},
		},
		"GetInstanceCloudDiskInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetInstanceCloudDiskInfo"},
				"Version": []string{ServiceVersion},
			},
		},
		"ScaleInstanceCloudDiskCapacity": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ScaleInstanceCloudDiskCapacity"},
				"Version": []string{ServiceVersion},
			},
		},
		"CreateEbsInstances": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateEbsInstances"},
				"Version": []string{ServiceVersion},
			},
		},
		"ListEbsInstances": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListEbsInstances"},
				"Version": []string{ServiceVersion},
			},
		},
		"GetEbsInstance": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetEbsInstance"},
				"Version": []string{ServiceVersion},
			},
		},
		"ScaleEbsInstanceCapacity": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ScaleEbsInstanceCapacity"},
				"Version": []string{ServiceVersion},
			},
		},
		"AttachEbs": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"AttachEbs"},
				"Version": []string{ServiceVersion},
			},
		},
		"DetachEbs": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DetachEbs"},
				"Version": []string{ServiceVersion},
			},
		},
		"DeleteEbsInstance": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteEbsInstance"},
				"Version": []string{ServiceVersion},
			},
		},
		"BatchResetSystem": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"BatchResetSystem"},
				"Version": []string{ServiceVersion},
			},
		},
	}
)
View Source
var (
	// 注册服务
	ServiceInfo = &base.ServiceInfo{
		Timeout: 15 * time.Second,
		Host:    "veenedge.volcengineapi.com",
		Header: http.Header{
			"Accept": []string{"application/json"},
		},
		Credentials: base.Credentials{
			Service: ServiceName,
			Region:  base.RegionCnNorth1,
		},
		Scheme: "https",
	}
)

Functions

func ToJson

func ToJson(v interface{}) string

Types

type Account

type Account struct {
	AccountIdentity int64  `json:"account_identity"`
	UserIdentity    *int64 `json:"user_identity,omitempty"`
}

type AdvancedConfiguration

type AdvancedConfiguration struct {
	InstanceName     *string `json:"instance_name,omitempty"`
	InstanceDesc     *string `json:"instance_desc,omitempty"`
	InstanceHostName *string `json:"instance_host_name,omitempty"`
}

type AttachEbsReq added in v1.0.118

type AttachEbsReq struct {
	EbsID         string         `thrift:"ebs_id,3,required" frugal:"3,required,string" json:"ebs_id"`
	EbsIds        []string       `thrift:"ebs_ids,4,optional" frugal:"4,optional,list<string>" json:"ebs_ids,omitempty"`
	ResType       AttachmentType `thrift:"res_type,5,required" frugal:"5,required,string" json:"res_type"`
	ResID         string         `thrift:"res_id,6,required" frugal:"6,required,string" json:"res_id"`
	DeleteWithRes *bool          `thrift:"delete_with_res,7,optional" frugal:"7,optional,bool" json:"delete_with_res,omitempty"`
}

type AttachEbsResp added in v1.0.118

type AttachEbsResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           AttachEbsResult      `json:"Result"`
}

type AttachEbsResult added in v1.0.118

type AttachEbsResult struct {
}

type AttachedPvcConfig

type AttachedPvcConfig struct {
	Name string `json:"name"`
}

type AttachmentType added in v1.0.118

type AttachmentType = string

type BILLINGMETHOD

type BILLINGMETHOD = string

type BatchResetSystemReq added in v1.0.146

type BatchResetSystemReq struct {
	InstanceIdentities []string `json:"instance_identities"`
	ImageIdentity      *string  `json:"image_identity,omitempty"`
	ClearDataDisk      *bool    `json:"clear_data_disk,omitempty"`
}

type BatchResetSystemResp added in v1.0.146

type BatchResetSystemResp struct {
	ResponseMetadata VolcResponseMetadata   `json:"ResponseMetadata"`
	Result           BatchResetSystemResult `json:"Result"`
}

type BatchResetSystemResult added in v1.0.146

type BatchResetSystemResult struct {
	FailedInstanceIdentities []string `json:"failed_instance_identities,omitempty"`
}

type ChargeType added in v1.0.118

type ChargeType = string

type CloudDiskInfo

type CloudDiskInfo struct {
	StorageType string `json:"storage_type"`
	Capacity    string `json:"capacity"`
	PvcName     string `json:"pvc_name"`
	DeviceName  string `json:"device_name"`
}

type CloudServer

type CloudServer struct {
	CloudServerIdentity     string                              `json:"cloud_server_identity"`
	Name                    string                              `json:"name"`
	LoadType                *LoadType                           `json:"load_type,omitempty"`
	ServerAreaCount         int32                               `json:"server_area_count"`
	InstanceCount           int64                               `json:"instance_count"`
	ServerAreaLevel         string                              `json:"server_area_level"`
	InstanceStatus          []*CloudServerInstanceStatus        `json:"instance_status"`
	SpecSum                 map[string]int32                    `json:"spec_sum"`
	Spec                    string                              `json:"spec"`
	SpecDisplay             *string                             `json:"spec_display,omitempty"`
	CPU                     string                              `json:"cpu"`
	Mem                     string                              `json:"mem"`
	Image                   *ImageConfig                        `json:"image"`
	Storage                 *StorageConfig                      `json:"storage"`
	Network                 *CloudServerNetworkConfig           `json:"network"`
	Gpu                     *GpuConfig                          `json:"gpu,omitempty"`
	SecretConfig            *SecretConfig                       `json:"secret_config,omitempty"`
	CustomData              *CustomData                         `json:"custom_data,omitempty"`
	BillingConfig           *CloudServerBillingConfigs          `json:"billing_config,omitempty"`
	Desc                    *string                             `json:"desc,omitempty"`
	Arch                    *string                             `json:"arch,omitempty"`
	AdvancedConfiguration   *AdvancedConfiguration              `json:"advanced_configuration,omitempty"`
	ScheduleStrategyConfigs *CloudServerScheduleStrategyConfigs `json:"schedule_strategy_configs"`
	ServerAreas             []*CloudServerArea                  `json:"server_areas"`
	CreateTime              int64                               `json:"create_time"`
	UpdateTime              int64                               `json:"update_time"`
}

type CloudServerArea

type CloudServerArea struct {
	Area         string  `json:"area"`
	Isp          string  `json:"isp"`
	InstanceNum  int32   `json:"instance_num"`
	ClusterName  *string `json:"cluster_name,omitempty"`
	ClusterAlias *string `json:"cluster_alias,omitempty"`
}

type CloudServerBillingConfigs

type CloudServerBillingConfigs struct {
	ComputingBillingMethod BILLINGMETHOD `json:"computing_billing_method"`
	BandwidthBillingMethod BILLINGMETHOD `json:"bandwidth_billing_method"`
}

type CloudServerInstanceStatus

type CloudServerInstanceStatus struct {
	Status        string `json:"status"`
	InstanceCount int32  `json:"instance_count"`
}

type CloudServerNetworkConfig

type CloudServerNetworkConfig struct {
	BandwidthPeak               *string `json:"bandwidth_peak,omitempty"`
	InternalBandwidthPeak       *string `json:"internal_bandwidth_peak,omitempty"`
	VfPassthrough               *bool   `json:"vf_passthrough,omitempty"`
	EnableIpv6                  *bool   `json:"enable_ipv6,omitempty"`
	DisableIpv4                 *bool   `json:"disable_ipv4,omitempty"`
	ReverseInterface            *bool   `json:"reverse_interface,omitempty"`
	CustomInternalInterfaceName *string `json:"custom_internal_interface_name,omitempty"`
	CustomExternalInterfaceName *string `json:"custom_external_interface_name,omitempty"`
	SecondaryInternalIPNum      *int32  `json:"secondary_internal_ip_num,omitempty"`
	BoundEipShareBandwidthPeak  *string `json:"bound_eip_share_bandwidth_peak,omitempty"`
}

type CloudServerScheduleStrategyConfigs

type CloudServerScheduleStrategyConfigs struct {
	NetworkStrategy  string `json:"network_strategy"`
	ScheduleStrategy string `json:"schedule_strategy"`
	PriceStrategy    string `json:"price_strategy"`
}

type CreateCloudServerReq

type CreateCloudServerReq struct {
	// 边缘服务名称
	// in:body
	CloudServerName string `json:"cloudserver_name,omitempty" query:"cloudserver_name"`
	// 镜像 ID
	// in:body
	ImageID string `json:"image_id,omitempty" query:"image_id"`
	// 规格名称
	// in:body
	SpecName string `json:"spec_name,omitempty" query:"spec_name"`
	// 云服务描述
	// in:body
	CloudServerDesc *string `json:"cloud_server_desc,omitempty" query:"cloud_server_desc"`
	// 存储配置
	// in:body
	StorageConfig *StorageConfig `json:"storage_config,omitempty" query:"storage_config"`
	// 网络配置
	// in:body
	NetworkConfig *CloudServerNetworkConfig `json:"network_config,omitempty" query:"network_config"`
	// 密钥配置
	// in:body
	SecretConfig *SecretConfig `json:"secret_config,omitempty" query:"secret_config"`
	// 通用数据
	// in:body
	CustomData *CustomData `json:"custom_data,omitempty" query:"custom_data"`
	// 计费配置
	// in:body
	BillingConfig *CloudServerBillingConfigs `json:"billing_config,omitempty" query:"billing_config"`
	// 实例区域个数
	// in:body
	InstanceAreaNums []*InstanceAreaNum `json:"instance_area_nums,omitempty" query:"instance_area_nums"`
	// 调度策略
	// in:body
	ScheduleStrategy *ScheduleStrategy `json:"schedule_strategy,omitempty" query:"schedule_strategy"`
	// 高级配置
	// in:body
	AdvancedConfiguration *AdvancedConfiguration `json:"advanced_configuration,omitempty" query:"advanced_configuration"`
	// 外挂VPC配置
	// in:body
	AttachedPvcConfig *AttachedPvcConfig `json:"attached_pvc_config,omitempty" query:"attached_pvc_config"`
	// in:body
	DisableVga *bool `json:"disable_vga,omitempty" query:"disable_vga"`
	// in:body
	ImageBootMode *IMAGEBOOTMODE `json:"image_boot_mode,omitempty" query:"image_boot_mode"`
}

type CreateCloudServerResp

type CreateCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           CreateCloudServerResult `json:"Result"`
}

type CreateCloudServerResult

type CreateCloudServerResult struct {
	CloudServerIdentity string `json:"cloud_server_identity"`
}

type CreateEbsInstancesReq added in v1.0.118

type CreateEbsInstancesReq struct {
	ClusterName   string      `thrift:"cluster_name,3,required" frugal:"3,required,string" json:"cluster_name"`
	ChargeType    ChargeType  `thrift:"charge_type,4,required" frugal:"4,required,string" json:"charge_type"`
	EbsType       EbsType     `thrift:"ebs_type,5,required" frugal:"5,required,string" json:"ebs_type"`
	StorageType   StorageType `thrift:"storage_type,6,required" frugal:"6,required,string" json:"storage_type"`
	Capacity      string      `thrift:"capacity,7,required" frugal:"7,required,string" json:"capacity"`
	Number        int64       `thrift:"number,8,required" frugal:"8,required,i64" json:"number"`
	Name          string      `thrift:"name,9,required" frugal:"9,required,string" json:"name"`
	Desc          *string     `thrift:"desc,10,optional" frugal:"10,optional,string" json:"desc,omitempty"`
	Project       *string     `thrift:"project,11,optional" frugal:"11,optional,string" json:"project,omitempty"`
	DeleteWithRes *bool       `thrift:"delete_with_res,12,optional" frugal:"12,optional,bool" json:"delete_with_res,omitempty"`
	ResID         *string     `thrift:"res_id,13,optional" frugal:"13,optional,string" json:"res_id,omitempty"`
	EbsIds        []string    `thrift:"ebs_ids,14,optional" frugal:"14,optional,list<string>" json:"ebs_ids,omitempty"`
	CreateByRes   *bool       `thrift:"create_by_res,15,optional" frugal:"15,optional,bool" json:"create_by_res,omitempty"`
	PvcNs         *string     `thrift:"pvc_ns,16,optional" frugal:"16,optional,string" json:"pvc_ns,omitempty"`
	PvcName       *string     `thrift:"pvc_name,17,optional" frugal:"17,optional,string" json:"pvc_name,omitempty"`
}

type CreateEbsInstancesResp added in v1.0.118

type CreateEbsInstancesResp struct {
	ResponseMetadata VolcResponseMetadata     `json:"ResponseMetadata"`
	Result           CreateEbsInstancesResult `json:"Result"`
}

type CreateEbsInstancesResult added in v1.0.118

type CreateEbsInstancesResult struct {
	EbsIds []string `json:"ebs_ids,omitempty"`
}

type CreateInstanceReq

type CreateInstanceReq struct {
	// in:body
	CloudServerIdentity string `json:"cloud_server_identity" query:"cloud_server_identity"`
	// in:body
	InstanceAreaNums []*InstanceAreaNum `json:"instance_area_nums" query:"instance_area_nums"`
}

type CreateInstanceResp

type CreateInstanceResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           CreateInstanceResult `json:"Result"`
}

type CreateInstanceResult

type CreateInstanceResult struct {
	InstanceIDList []string `json:"instance_id_list,omitempty"`
}

type CustomData

type CustomData struct {
	IsBase64 bool   `json:"is_base64"`
	Data     string `json:"data"`
}

type DeleteCloudServerReq

type DeleteCloudServerReq struct {
	// 云服务 id
	// required:true
	// in:body
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}

type DeleteCloudServerResp

type DeleteCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           DeleteCloudServerResult `json:"Result"`
}

type DeleteCloudServerResult

type DeleteCloudServerResult struct{}

type DeleteEbsInstanceReq added in v1.0.118

type DeleteEbsInstanceReq struct {
	EbsID  string   `thrift:"ebs_id,3,required" frugal:"3,required,string" json:"ebs_id"`
	EbsIds []string `thrift:"ebs_ids,4,optional" frugal:"4,optional,list<string>" json:"ebs_ids,omitempty"`
}

type DeleteEbsInstanceResp added in v1.0.118

type DeleteEbsInstanceResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           DeleteEbsInstanceResult `json:"Result"`
}

type DeleteEbsInstanceResult added in v1.0.118

type DeleteEbsInstanceResult struct {
}

type DetachEbsReq added in v1.0.118

type DetachEbsReq struct {
	EbsID  string   `thrift:"ebs_id,3,required" frugal:"3,required,string" json:"ebs_id"`
	EbsIds []string `thrift:"ebs_ids,4,optional" frugal:"4,optional,list<string>" json:"ebs_ids,omitempty"`
}

type DetachEbsResp added in v1.0.118

type DetachEbsResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           DetachEbsResult      `json:"Result"`
}

type DetachEbsResult added in v1.0.118

type DetachEbsResult struct {
}

type DiskSpec

type DiskSpec struct {
	StorageType string `json:"storage_type"`
	Capacity    string `json:"capacity"`
}

type DiskSpecWithNum

type DiskSpecWithNum struct {
	DiskSpec *DiskSpec `json:"disk_spec"`
	Num      int32     `json:"num"`
}

type EXTERNALNETWORKMODE added in v1.0.142

type EXTERNALNETWORKMODE = string

type EbsAttachment added in v1.0.118

type EbsAttachment struct {
	EbsID   string         `json:"ebs_id"`
	ResType AttachmentType `json:"res_type"`
	ResID   string         `json:"res_id"`
	ResName *string        `json:"res_name,omitempty"`
}

type EbsCluster added in v1.0.118

type EbsCluster struct {
	ClusterName string `json:"cluster_name"`
	Country     string `json:"country"`
	Region      string `json:"region"`
	Province    string `json:"province"`
	City        string `json:"city"`
	Isp         string `json:"isp"`
	Alias       string `json:"alias"`
}

type EbsInstance added in v1.0.118

type EbsInstance struct {
	AccountID      int64          `json:"account_id"`
	EbsID          string         `json:"ebs_id"`
	EbsName        string         `json:"ebs_name"`
	Status         EbsStatus      `json:"status"`
	Cluster        *EbsCluster    `json:"cluster"`
	StorageType    StorageType    `json:"storage_type"`
	Capacity       string         `json:"capacity"`
	EbsType        EbsType        `json:"ebs_type"`
	ChargeType     ChargeType     `json:"charge_type"`
	Desc           *string        `json:"desc,omitempty"`
	Attachment     *EbsAttachment `json:"attachment,omitempty"`
	DeleteWithVeen *bool          `json:"delete_with_veen,omitempty"`
	StartTime      *int64         `json:"start_time,omitempty"`
	EndTime        *int64         `json:"end_time,omitempty"`
	CreateTime     int64          `json:"create_time"`
	UpdateTime     int64          `json:"update_time"`
}

type EbsOrderOption added in v1.0.118

type EbsOrderOption struct {
	OrderBy string `json:"order_by,omitempty"`
	Asc     bool   `json:"asc,omitempty"`
}

type EbsPagination added in v1.0.118

type EbsPagination struct {
	PageNo   int32 `json:"page_no,omitempty"`
	PageSize int32 `json:"page_size,omitempty"`
}

type EbsStatus added in v1.0.118

type EbsStatus = string

type EbsType added in v1.0.118

type EbsType = string

type GeoInfo

type GeoInfo struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	EnName string `json:"en_name"`
}

type GetCloudServerReq

type GetCloudServerReq struct {
	// 云服务 id
	// required:true
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}

type GetCloudServerResp

type GetCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           GetCloudServerResult `json:"Result"`
}

type GetCloudServerResult

type GetCloudServerResult struct {
	CloudServer *CloudServer `json:"cloud_server,omitempty"`
}

type GetEbsInstanceReq added in v1.0.118

type GetEbsInstanceReq struct {
	EbsID              string `json:"ebs_id" query:"ebs_id"`
	WithAttachmentInfo *bool  `json:"with_attachment_info,omitempty" query:"with_attachment_info"`
}

type GetEbsInstanceResp added in v1.0.118

type GetEbsInstanceResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           GetEbsInstanceResult `json:"Result"`
}

type GetEbsInstanceResult added in v1.0.118

type GetEbsInstanceResult struct {
	EbsInstance *EbsInstance `json:"ebs_instance,omitempty"`
}

type GetInstanceCloudDiskInfoReq

type GetInstanceCloudDiskInfoReq struct {
	// required: true
	InstanceIdentity string `json:"instance_identity" query:"instance_identity" validate:"required"`
}

type GetInstanceCloudDiskInfoResp

type GetInstanceCloudDiskInfoResp struct {
	ResponseMetadata VolcResponseMetadata           `json:"ResponseMetadata"`
	Result           GetInstanceCloudDiskInfoResult `json:"Result"`
}

type GetInstanceCloudDiskInfoResult

type GetInstanceCloudDiskInfoResult struct {
	InstanceIdentity      string           `json:"instance_identity"`
	InstanceName          string           `json:"instance_name"`
	Arch                  string           `json:"arch"`
	SystemCloudDiskInfo   *CloudDiskInfo   `json:"system_cloud_disk_info"`
	DataCloudDiskInfoList []*CloudDiskInfo `json:"data_cloud_disk_info_list"`
}

type GetInstanceReq

type GetInstanceReq struct {
	InstanceIdentity string `json:"instance_identity" query:"instance_identity" validate:"required"`
}

type GetInstanceResp

type GetInstanceResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           GetInstanceResult    `json:"Result"`
}

type GetInstanceResult

type GetInstanceResult struct {
	Instance *VeenInstance `json:"instance,omitempty"`
}

type GpuConfig

type GpuConfig struct {
	Gpus []*GpuSpecWithNum `json:"gpus"`
}

type GpuSpec

type GpuSpec struct {
	GpuType string `json:"gpu_type"`
}

type GpuSpecWithNum

type GpuSpecWithNum struct {
	GpuSpec *GpuSpec `json:"gpu_spec"`
	Num     int32    `json:"num"`
}

type IMAGEBOOTMODE

type IMAGEBOOTMODE = string

type INSTANCEARCH

type INSTANCEARCH = string

type IP

type IP struct {
	Addr      string    `json:"addr"`
	Mask      string    `json:"mask"`
	Isp       string    `json:"isp"`
	IPVersion IPVERSION `json:"ip_version"`
	Primary   *bool     `json:"primary,omitempty"`
}

type IPVERSION

type IPVERSION = string

type ImageConfig

type ImageConfig struct {
	ImageIdentity string         `json:"image_identity"`
	ImageName     string         `json:"image_name"`
	SystemArch    *string        `json:"system_arch,omitempty"`
	SystemType    *string        `json:"system_type,omitempty"`
	SystemBit     *string        `json:"system_bit,omitempty"`
	SystemVersion *string        `json:"system_version,omitempty"`
	Property      *string        `json:"property,omitempty"`
	DisableVga    *bool          `json:"disable_vga,omitempty"`
	ImageBootMode *IMAGEBOOTMODE `json:"image_boot_mode,omitempty"`
}

type InstanceAreaNum

type InstanceAreaNum struct {
	AreaName            string               `json:"area_name"`
	Isp                 string               `json:"isp"`
	ClusterName         *string              `json:"cluster_name,omitempty"`
	ClusterAlias        *string              `json:"cluster_alias,omitempty"`
	VpcIdentity         *string              `json:"vpc_identity,omitempty"`
	Num                 int32                `json:"num"`
	Region              *string              `json:"region,omitempty"`
	City                *string              `json:"city,omitempty"`
	DefaultIsp          *string              `json:"default_isp,omitempty"`
	VeenIDList          []string             `json:"veen_id_list,omitempty"`
	HostNameList        []string             `json:"host_name_list,omitempty"`
	ExternalNetworkMode *EXTERNALNETWORKMODE `json:"external_network_mode,omitempty"`
	SubnetIdentity      *string              `json:"subnet_identity,omitempty"`
}

type InstanceTypeConfig

type InstanceTypeConfig struct {
	InstanceType           string         `json:"instance_type"`
	InstanceTypeFamily     string         `json:"instance_type_family"`
	CPU                    int16          `json:"cpu"`
	Memory                 int16          `json:"memory"`
	Gpu                    int64          `json:"gpu"`
	GpuSpec                string         `json:"gpu_spec"`
	InstanceTypeFamilyName string         `json:"instance_type_family_name"`
	StorageInfo            []*StorageInfo `json:"storage_info,omitempty"`
	Arch                   *INSTANCEARCH  `json:"arch,omitempty"`
}

type IspInfo

type IspInfo struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type ListAvailableResourceInfoReq

type ListAvailableResourceInfoReq struct {
	//规格
	InstanceType string `json:"instance_type,omitempty" query:"instance_type"`

	//云盘类型:(CloudHDD, CloudSSD)
	CloudDiskType string `json:"cloud_disk_type,omitempty" query:"cloud_disk_type"`
}

type ListAvailableResourceInfoResp

type ListAvailableResourceInfoResp struct {
	ResponseMetadata VolcResponseMetadata            `json:"ResponseMetadata"`
	Result           ListAvailableResourceInfoResult `json:"Result"`
}

type ListAvailableResourceInfoResult

type ListAvailableResourceInfoResult struct {
	Regions []RegionInfo `json:"regions"`
}

type ListCloudServersReq

type ListCloudServersReq struct {
	// 模糊搜索名
	FuzzyName string `json:"fuzzy_name" query:"fuzzy_name"`
	Pagination
}

type ListCloudServersResp

type ListCloudServersResp struct {
	ResponseMetadata VolcResponseMetadata   `json:"ResponseMetadata"`
	Result           ListCloudServersResult `json:"Result"`
}

type ListCloudServersResult

type ListCloudServersResult struct {
	CloudServers []*CloudServer `json:"cloud_servers"`
	TotalCount   int64          `json:"total_count"`
}

type ListEbsInstancesReq added in v1.0.118

type ListEbsInstancesReq struct {
	WithAttachmentInfo  *bool           `thrift:"with_attachment_info,3,optional" frugal:"3,optional,bool" json:"with_attachment_info,omitempty"`
	ResIds              []string        `thrift:"res_ids,4,optional" frugal:"4,optional,list<string>" json:"res_ids,omitempty"`
	EbsIds              []string        `thrift:"ebs_ids,5,optional" frugal:"5,optional,list<string>" json:"ebs_ids,omitempty"`
	EbsNames            []string        `thrift:"ebs_names,6,optional" frugal:"6,optional,list<string>" json:"ebs_names,omitempty"`
	Regions             []string        `thrift:"regions,7,optional" frugal:"7,optional,list<string>" json:"regions,omitempty"`
	ClusterNames        []string        `thrift:"cluster_names,8,optional" frugal:"8,optional,list<string>" json:"cluster_names,omitempty"`
	Status              []EbsStatus     `thrift:"status,9,optional" frugal:"9,optional,list<string>" json:"status,omitempty"`
	EbsType             []EbsType       `thrift:"ebs_type,10,optional" frugal:"10,optional,list<string>" json:"ebs_type,omitempty"`
	ChargeType          []ChargeType    `thrift:"charge_type,11,optional" frugal:"11,optional,list<string>" json:"charge_type,omitempty"`
	FuzzyVeenExternalIP *string         `thrift:"fuzzy_veen_external_ip,12,optional" frugal:"12,optional,string" json:"fuzzy_veen_external_ip,omitempty"`
	DeleteWithRes       *bool           `thrift:"delete_with_res,13,optional" frugal:"13,optional,bool" json:"delete_with_res,omitempty"`
	FuzzyEbsIDOrName    *string         `thrift:"fuzzy_ebs_id_or_name,14,optional" frugal:"14,optional,string" json:"fuzzy_ebs_id_or_name,omitempty"`
	Projects            []string        `thrift:"projects,15,optional" frugal:"15,optional,list<string>" json:"projects,omitempty"`
	PageOption          *EbsPagination  `thrift:"page_option,128,optional" frugal:"128,optional,Pagination" json:"page_option,omitempty"`
	OrderOption         *EbsOrderOption `thrift:"order_option,129,optional" frugal:"129,optional,OrderOption" json:"order_option,omitempty"`
}

type ListEbsInstancesResp added in v1.0.118

type ListEbsInstancesResp struct {
	ResponseMetadata VolcResponseMetadata   `json:"ResponseMetadata"`
	Result           ListEbsInstancesResult `json:"Result"`
}

type ListEbsInstancesResult added in v1.0.118

type ListEbsInstancesResult struct {
	EbsInstances []*EbsInstance `json:"ebs_instances,omitempty"`
	TotalCnt     *int64         `json:"total_cnt,omitempty"`
}

type ListInstanceTypesReq

type ListInstanceTypesReq struct {
}

type ListInstanceTypesResp

type ListInstanceTypesResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           ListInstanceTypesResult `json:"Result"`
}

type ListInstanceTypesResult

type ListInstanceTypesResult struct {
	InstanceTypeConfigs []*InstanceTypeConfig `json:"instance_type_configs"`
}

type ListInstancesReq

type ListInstancesReq struct {
	Countries             string `json:"countries,omitempty" query:"countries"`
	Regions               string `json:"regions,omitempty" query:"regions"`
	Cities                string `json:"cities,omitempty" query:"cities"`
	Isps                  string `json:"isps,omitempty" query:"isps"`
	Status                string `json:"status,omitempty" query:"status"`
	ClusterNames          string `json:"cluster_names,omitempty" query:"cluster_names"`
	CloudServerIdentities string `json:"cloud_server_identities,omitempty" query:"cloud_server_identities"`
	Ips                   string `json:"ips,omitempty" query:"ips"`
	Cidrs                 string `json:"cidrs,omitempty" query:"cidrs"`
	SpecNames             string `json:"spec_names,omitempty" query:"spec_names"`
	InstanceIdentities    string `json:"instance_identities,omitempty" query:"instance_identities"`
	InstanceUuids         string `json:"instance_uuids,omitempty" query:"instance_uuids"`
	InstanceNames         string `json:"instance_names,omitempty" query:"instance_names"`
	FuzzyIPWithDots       string `json:"fuzzy_ip_with_dots,omitempty" query:"fuzzy_ip_with_dots"`
	VPCIdentities         string `json:"vpc_identities,omitempty" query:"vpc_identities"`
	Pagination
}

type ListInstancesResp

type ListInstancesResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           ListInstancesResult  `json:"Result"`
}

type ListInstancesResult

type ListInstancesResult struct {
	Instances  []*VeenInstance `json:"instances"`
	TotalCount int64           `json:"total_count"`
}

type LoadType

type LoadType = string

type NetworkConfig

type NetworkConfig struct {
	InternalInterface           *NetworkInterfaceConfig   `json:"internal_interface"`
	ExternalInterface           *NetworkInterfaceConfig   `json:"external_interface"`
	ExternalInterfaces          []*NetworkInterfaceConfig `json:"external_interfaces,omitempty"`
	VfPassthrough               *bool                     `json:"vf_passthrough,omitempty"`
	DisableIpv4                 *bool                     `json:"disable_ipv4,omitempty"`
	EnableIpv6                  *bool                     `json:"enable_ipv6,omitempty"`
	DefaultIsp                  *string                   `json:"default_isp,omitempty"`
	VlanVfPassthrough           *bool                     `json:"vlan_vf_passthrough,omitempty"`
	ExternalNetworkMode         *EXTERNALNETWORKMODE      `json:"external_network_mode,omitempty"`
	WantedSecondaryIPNum        *int32                    `json:"wanted_secondary_ip_num,omitempty"`
	ActualSecondaryIPNum        *int32                    `json:"actual_secondary_ip_num,omitempty"`
	CustomInternalInterfaceName *string                   `json:"custom_internal_interface_name,omitempty"`
	CustomExternalInterfaceName *string                   `json:"custom_external_interface_name,omitempty"`
}

type NetworkInterfaceConfig

type NetworkInterfaceConfig struct {
	IPAddr             string  `json:"ip_addr"`
	Mask               string  `json:"mask"`
	IP6Addr            *string `json:"ip6_addr,omitempty"`
	Mask6              *string `json:"mask6,omitempty"`
	Ips                []*IP   `json:"ips,omitempty"`
	MacAddr            string  `json:"mac_addr"`
	BandwidthPeak      string  `json:"bandwidth_peak"`
	BandwidthPackageID *int64  `json:"bandwidth_package_id,omitempty"`
}

type OfflineInstancesReq

type OfflineInstancesReq struct {
	// in:body
	InstanceIdentities []string `json:"instance_identities" query:"instance_identities" validate:"required,gt=0,dive,required"`
	// in:body
	IgnoreRunning *bool `json:"ignore_running,omitempty" query:"ignore_running"`
}

type OfflineInstancesResp

type OfflineInstancesResp struct {
	ResponseMetadata VolcResponseMetadata   `json:"ResponseMetadata"`
	Result           OfflineInstancesResult `json:"Result"`
}

type OfflineInstancesResult

type OfflineInstancesResult struct{}

type Pagination

type Pagination struct {
	// 页码
	Page int32 `json:"page" query:"page"`
	// 每页大小
	Limit int32 `json:"limit" query:"limit"`
	// [DESC=1 ASC=2]
	OrderBy int32 `json:"order_by" query:"order_by"`
}

type RebootCloudServerReq

type RebootCloudServerReq struct {
	// 云服务 id
	// required:true
	// in:body
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}

type RebootCloudServerResp

type RebootCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           RebootCloudServerResult `json:"Result"`
}

type RebootCloudServerResult

type RebootCloudServerResult struct{}

type RebootInstancesReq

type RebootInstancesReq struct {
	// in:body
	InstanceIdentities []string `json:"instance_identities" query:"instance_identities" validate:"required,gt=0,dive,required"`
}

type RebootInstancesResp

type RebootInstancesResp struct {
	ResponseMetadata VolcResponseMetadata  `json:"ResponseMetadata"`
	Result           RebootInstancesResult `json:"Result"`
}

type RebootInstancesResult

type RebootInstancesResult struct{}

type RegionInfo

type RegionInfo struct {
	Country      *GeoInfo `json:"country"`
	Area         *GeoInfo `json:"area"`
	City         *GeoInfo `json:"city"`
	Isp          *IspInfo `json:"isp"`
	Cluster      *GeoInfo `json:"cluster"`
	AvailableNum int64    `json:"available_num,omitempty"`
}

type ResetLoginCredentialReq

type ResetLoginCredentialReq struct {
	// in:body
	InstanceIdentity string `json:"instance_identity" query:"instance_identity" validate:"required"`
	// custom: 2, ssh: 3
	// in:body
	SecretType int64 `json:"secret_type" query:"secret_type" validate:"required"`
	// secret_data is key_pair_id when secret_type is ssh.
	// in:body
	SecretData string `json:"secret_data" query:"secret_data" validate:"required"`
}

type ResetLoginCredentialResp

type ResetLoginCredentialResp struct {
	ResponseMetadata VolcResponseMetadata       `json:"ResponseMetadata"`
	Result           ResetLoginCredentialResult `json:"Result"`
}

type ResetLoginCredentialResult

type ResetLoginCredentialResult struct{}

type ScaleCloudDiskInfo

type ScaleCloudDiskInfo struct {
	DeviceName string `json:"device_name"`
	Capacity   string `json:"capacity"`
}

type ScaleEbsInstanceCapacityReq added in v1.0.118

type ScaleEbsInstanceCapacityReq struct {
	EbsID      string `thrift:"ebs_id,3,required" frugal:"3,required,string" json:"ebs_id"`
	Capacity   string `thrift:"capacity,4,required" frugal:"4,required,string" json:"capacity"`
	WithReboot *bool  `thrift:"with_reboot,5,optional" frugal:"5,optional,bool" json:"with_reboot,omitempty"`
}

type ScaleEbsInstanceCapacityResp added in v1.0.118

type ScaleEbsInstanceCapacityResp struct {
	ResponseMetadata VolcResponseMetadata           `json:"ResponseMetadata"`
	Result           ScaleEbsInstanceCapacityResult `json:"Result"`
}

type ScaleEbsInstanceCapacityResult added in v1.0.118

type ScaleEbsInstanceCapacityResult struct {
}

type ScaleInstanceCloudDiskCapacityReq

type ScaleInstanceCloudDiskCapacityReq struct {
	// required: true
	// in: body
	InstanceIdentity string `json:"instance_identity" validate:"required"`
	// required: true
	// in: body
	ScaleSystemCloudDiskInfo *ScaleCloudDiskInfo `json:"scale_system_cloud_disk_info" validate:"required"`
	// required: true
	// in: body
	ScaleDataCloudDiskInfoList []*ScaleCloudDiskInfo `json:"scale_data_cloud_disk_info_list" validate:"required"`
	// required: true
	// in: body
	WithReboot *bool `json:"with_reboot" validate:"required"`
}

type ScaleInstanceCloudDiskCapacityResp

type ScaleInstanceCloudDiskCapacityResp struct {
	ResponseMetadata VolcResponseMetadata                 `json:"ResponseMetadata"`
	Result           ScaleInstanceCloudDiskCapacityResult `json:"Result"`
}

type ScaleInstanceCloudDiskCapacityResult

type ScaleInstanceCloudDiskCapacityResult struct{}

type ScheduleStrategy

type ScheduleStrategy struct {
	NetworkStrategy  string `json:"network_strategy"`
	ScheduleStrategy string `json:"schedule_strategy"`
	PriceStrategy    string `json:"price_strategy"`
}

type SecretConfig

type SecretConfig struct {
	SecretType SecretType `json:"secret_type"`
	SecretData *string    `json:"secret_data,omitempty"`
	SSHKeyName *string    `json:"ssh_key_name,omitempty"`
}

type SecretType

type SecretType int64
const (
	SecretType_Random SecretType = 1
	SecretType_Custom SecretType = 2
	SecretType_SSH    SecretType = 3
	SecretType_None   SecretType = 4
)

type SetInstanceNameReq

type SetInstanceNameReq struct {
	// in:body
	InstanceIdentity string `json:"instance_identity" query:"instance_identity" validate:"required"`
	// in:body
	InstanceName string `json:"instance_name" query:"instance_name" validate:"required"`
}

type SetInstanceNameResp

type SetInstanceNameResp struct {
	ResponseMetadata VolcResponseMetadata  `json:"ResponseMetadata"`
	Result           SetInstanceNameResult `json:"Result"`
}

type SetInstanceNameResult

type SetInstanceNameResult struct{}

type StartCloudServerReq

type StartCloudServerReq struct {
	// 云服务 id
	// required:true
	// in:body
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}

type StartCloudServerResp

type StartCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata   `json:"ResponseMetadata"`
	Result           StartCloudServerResult `json:"Result"`
}

type StartCloudServerResult

type StartCloudServerResult struct{}

type StartInstancesReq

type StartInstancesReq struct {
	// in:body
	InstanceIdentities []string `json:"instance_identities" query:"instance_identities" validate:"required,gt=0,dive,required"`
}

type StartInstancesResp

type StartInstancesResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           StartInstancesResult `json:"Result"`
}

type StartInstancesResult

type StartInstancesResult struct{}

type StopCloudServerReq

type StopCloudServerReq struct {
	// 云服务 id
	// required:true
	// in:body
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}

type StopCloudServerResp

type StopCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata  `json:"ResponseMetadata"`
	Result           StopCloudServerResult `json:"Result"`
}

type StopCloudServerResult

type StopCloudServerResult struct{}

type StopInstancesReq

type StopInstancesReq struct {
	// in:body
	InstanceIdentities []string `json:"instance_identities" query:"instance_identities" validate:"required,gt=0,dive,required"`
}

type StopInstancesResp

type StopInstancesResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           StopInstancesResult  `json:"Result"`
}

type StopInstancesResult

type StopInstancesResult struct{}

type StorageConfig

type StorageConfig struct {
	SystemDisk     *DiskSpec          `json:"system_disk"`
	DataDisk       *DiskSpec          `json:"data_disk,omitempty"`
	DataLocalDisks []*DiskSpecWithNum `json:"data_local_disks,omitempty"`
	DataDiskList   []*DiskSpec        `json:"data_disk_list,omitempty"`
}

type StorageInfo

type StorageInfo struct {
	LocalStorageCategory     string  `json:"local_storage_category"`
	LocalStorageCapacity     int64   `json:"local_storage_capacity"`
	LocalStorageAmount       int64   `json:"local_storage_amount"`
	LocalStorageUnit         string  `json:"local_storage_unit"`
	LocalStorageResourceName *string `json:"local_storage_resource_name,omitempty"`
	Feature                  *int64  `json:"feature,omitempty"`
}

type StorageType added in v1.0.118

type StorageType = string

type Veen

type Veen struct {
	Client *base.Client
}

func NewInstance

func NewInstance(ak, sk string) *Veen

func (*Veen) AttachEbs added in v1.0.118

func (v *Veen) AttachEbs(req *AttachEbsReq) (*AttachEbsResp, error)

func (*Veen) BatchResetSystem added in v1.0.146

func (v *Veen) BatchResetSystem(req *BatchResetSystemReq) (*BatchResetSystemResp, error)

func (*Veen) CreateCloudServer

func (v *Veen) CreateCloudServer(req *CreateCloudServerReq) (*CreateCloudServerResp, error)

func (*Veen) CreateEbsInstances added in v1.0.118

func (v *Veen) CreateEbsInstances(req *CreateEbsInstancesReq) (*CreateEbsInstancesResp, error)

func (*Veen) CreateInstance

func (v *Veen) CreateInstance(req *CreateInstanceReq) (*CreateInstanceResp, error)

func (*Veen) DeleteCloudServer

func (v *Veen) DeleteCloudServer(req *DeleteCloudServerReq) (*DeleteCloudServerResp, error)

func (*Veen) DeleteEbsInstance added in v1.0.118

func (v *Veen) DeleteEbsInstance(req *DeleteEbsInstanceReq) (*DeleteEbsInstanceResp, error)

func (*Veen) DetachEbs added in v1.0.118

func (v *Veen) DetachEbs(req *DetachEbsReq) (*DetachEbsResp, error)

func (*Veen) GetAPIInfo

func (v *Veen) GetAPIInfo(api string) *base.ApiInfo

GetAPIInfo interface

func (*Veen) GetCloudServer

func (v *Veen) GetCloudServer(req *GetCloudServerReq) (*GetCloudServerResp, error)

func (*Veen) GetEbsInstance added in v1.0.118

func (v *Veen) GetEbsInstance(req *GetEbsInstanceReq) (*GetEbsInstanceResp, error)

func (*Veen) GetInstance

func (v *Veen) GetInstance(req *GetInstanceReq) (*GetInstanceResp, error)

func (*Veen) GetInstanceCloudDiskInfo

func (v *Veen) GetInstanceCloudDiskInfo(req *GetInstanceCloudDiskInfoReq) (*GetInstanceCloudDiskInfoResp, error)

func (*Veen) GetServiceInfo

func (v *Veen) GetServiceInfo(env string) *base.ServiceInfo

GetServiceInfo interface

func (*Veen) ListAvailableResourceInfo

func (v *Veen) ListAvailableResourceInfo(req *ListAvailableResourceInfoReq) (*ListAvailableResourceInfoResp, error)

func (*Veen) ListCloudServers

func (v *Veen) ListCloudServers(req *ListCloudServersReq) (*ListCloudServersResp, error)

func (*Veen) ListEbsInstances added in v1.0.118

func (v *Veen) ListEbsInstances(req *ListEbsInstancesReq) (*ListEbsInstancesResp, error)

func (*Veen) ListInstanceTypes

func (v *Veen) ListInstanceTypes(req *ListInstanceTypesReq) (*ListInstanceTypesResp, error)

func (*Veen) ListInstances

func (v *Veen) ListInstances(req *ListInstancesReq) (*ListInstancesResp, error)

func (*Veen) OfflineInstances

func (v *Veen) OfflineInstances(req *OfflineInstancesReq) (*OfflineInstancesResp, error)

func (*Veen) RebootCloudServer

func (v *Veen) RebootCloudServer(req *RebootCloudServerReq) (*RebootCloudServerResp, error)

func (*Veen) RebootInstances

func (v *Veen) RebootInstances(req *RebootInstancesReq) (*RebootInstancesResp, error)

func (*Veen) ResetLoginCredential

func (v *Veen) ResetLoginCredential(req *ResetLoginCredentialReq) (*ResetLoginCredentialResp, error)

func (*Veen) ScaleEbsInstanceCapacity added in v1.0.118

func (v *Veen) ScaleEbsInstanceCapacity(req *ScaleEbsInstanceCapacityReq) (*ScaleEbsInstanceCapacityResp, error)

func (*Veen) SetHost

func (v *Veen) SetHost(host string)

SetHost .

func (*Veen) SetInstanceName

func (v *Veen) SetInstanceName(req *SetInstanceNameReq) (*SetInstanceNameResp, error)

func (*Veen) SetRegion

func (v *Veen) SetRegion(env, region string)

SetRegion

func (*Veen) SetSchema

func (v *Veen) SetSchema(schema string)

SetSchema .

func (*Veen) StartCloudServer

func (v *Veen) StartCloudServer(req *StartCloudServerReq) (*StartCloudServerResp, error)

func (*Veen) StartInstances

func (v *Veen) StartInstances(req *StartInstancesReq) (*StartInstancesResp, error)

func (*Veen) StopCloudServer

func (v *Veen) StopCloudServer(req *StopCloudServerReq) (*StopCloudServerResp, error)

func (*Veen) StopInstances

func (v *Veen) StopInstances(req *StopInstancesReq) (*StopInstancesResp, error)

type VeenCluster

type VeenCluster struct {
	ClusterName string `json:"cluster_name"`
	Country     string `json:"country"`
	Region      string `json:"region"`
	Province    string `json:"province"`
	City        string `json:"city"`
	Isp         string `json:"isp"`
	Level       string `json:"level"`
	Alias       string `json:"alias"`
}

type VeenInstance

type VeenInstance struct {
	InstanceIdentity    string         `json:"instance_identity"`
	InstanceUUID        *string        `json:"instance_uuid,omitempty"`
	InstanceName        string         `json:"instance_name"`
	LoadType            *LoadType      `json:"load_type,omitempty"`
	CloudServerIdentity string         `json:"cloud_server_identity"`
	CloudServerName     string         `json:"cloud_server_name"`
	VpcIdentity         string         `json:"vpc_identity"`
	Namespace           *string        `json:"namespace"`
	SubnetCidr          string         `json:"subnet_cidr"`
	Cluster             *VeenCluster   `json:"cluster"`
	Spec                string         `json:"spec"`
	SpecDisplay         *string        `json:"spec_display,omitempty"`
	CPU                 string         `json:"cpu"`
	Mem                 string         `json:"mem"`
	Status              VeenSTATUS     `json:"status"`
	StatusReason        *string        `json:"status_reason,omitempty"`
	Phase               *string        `json:"phase,omitempty"`
	Creator             string         `json:"creator"`
	Image               *ImageConfig   `json:"image"`
	Storage             *StorageConfig `json:"storage"`
	Network             *NetworkConfig `json:"network"`
	Gpu                 *GpuConfig     `json:"gpu,omitempty"`
	Secret              *SecretConfig  `json:"secret,omitempty"`
	Account             *Account       `json:"account,omitempty"`
	InstanceDesc        *string        `json:"instance_desc,omitempty"`
	HostName            *string        `json:"host_name,omitempty"`
	Arch                *string        `json:"arch,omitempty"`
	ImageBootMode       *IMAGEBOOTMODE `json:"image_boot_mode,omitempty"`
	StartTime           int64          `json:"start_time"`
	EndTime             int64          `json:"end_time"`
	CreateTime          int64          `json:"create_time"`
	UpdateTime          int64          `json:"update_time"`
	DeleteTime          *int64         `json:"delete_time,omitempty"`
}

type VeenSTATUS

type VeenSTATUS = string

type VolcError

type VolcError struct {
	Code    string `json:"Code"`
	Message string `json:"Message"`
}

type VolcResponseMetadata

type VolcResponseMetadata struct {
	RequestId string     `json:"RequestId"`
	Action    string     `json:"Action"`
	Version   string     `json:"Version"`
	Service   string     `json:"Service"`
	Region    string     `json:"Region"`
	Error     *VolcError `json:"Error,omitempty"`
}

Jump to

Keyboard shortcuts

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