api

package
v0.9.140 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package api defines all APIs supported by the BEC service of BCE.

util.go - define the utilities for api package of BEC service

Index

Constants

View Source
const (
	ResourceStatusStarting    = "STARTING"
	ResourceStatusRunning     = "RUNNING"
	ResourceStatusException   = "EXCEPTION"
	ResourceStatusFailed      = "FAILED"
	ResourceStatusUnknown     = "UNKNOWN"
	ResourceStatusTerminated  = "TERMINATED"
	ResourceStatusWaiting     = "WAITING"
	ResourceStatusStop        = "STOP"
	ResourceStatusStopping    = "STOPPING"
	ResourceStatusTerminating = "TERMINATING"
	ResourceStatusNormal      = "NORMAL"
	// part of status for vm instant
	ResourceStatusCreating     = "CREATING"
	ResourceStatusStopped      = "STOPPED"
	ResourceStatusRestarting   = "RESTARTING"
	ResourceStatusReinstalling = "REINSTALLING"
	ResourceStatusImaging      = "IMAGING"
	// part of status for lb
	ResourceStatusPending = "PENDING"
	ResourceStatusBinding = "BINDING"
)
View Source
const (
	URI_PREFIX = bce.URI_PREFIX + "v1"

	URI_PREFIX_V2 = bce.URI_PREFIX + "v2"

	DEFAULT_BEC_DOMAIN = "bec." + bce.DEFAULT_REGION + bce.DEFAULT_DOMAIN

	REQUEST_SERVICE_URL = URI_PREFIX + "/service"
	REQUEST_POD_URL     = URI_PREFIX + "/pod"

	REQUEST_VM_URL = URI_PREFIX + "/vm" + "/service"

	DEPLOY_SET_URL = URI_PREFIX + "/deployset"

	DEPLOYMENT_URL = URI_PREFIX + "/deployment"

	REQUEST_VM_MONITOR_URL = URI_PREFIX + "/monitor" + "/vm"

	SERVICE_MONITOR_URL = URI_PREFIX + "/monitor" + "/service" + "/sts"

	DEPLOYMENT_MONITOR_URL = URI_PREFIX + "/monitor" + "/deployment"
	POD_MONITOR_URL        = URI_PREFIX + "/monitor" + "/pod"

	REQUEST_VM_SERVICE_MONITOR_URL = URI_PREFIX + "/monitor" + "/service" + "/vm"

	REQUEST_VM_IMAGE_URL = URI_PREFIX + "/vm" + "/image"

	REQUEST_LOADBALANCER_URL = URI_PREFIX + "/blb"

	REQUEST_LOADBALANCER_URL_V2 = URI_PREFIX_V2 + "/appblb"

	REQUEST_LOADBALANCER_MONITOR_URL = URI_PREFIX + "/monitor" + "/lb"

	REQUEST_VM_INSTANCE_URL = URI_PREFIX + "/vm/instance"

	REQUEST_NODE_URL = URI_PREFIX + "/node"
)

Variables

This section is empty.

Functions

func Delete

func Delete(cli bce.Client, dhr *PostHttpReq) error

func Get

func Get(cli bce.Client, ghr *GetHttpReq) error

func GetAppBlbURI added in v0.9.133

func GetAppBlbURI() string

func GetBachServiceDeleteURI

func GetBachServiceDeleteURI() string

func GetBachServiceOperateURI

func GetBachServiceOperateURI() string

func GetDeleteServiceURI

func GetDeleteServiceURI(serviceId string) string

func GetDeploySetURI added in v0.9.133

func GetDeploySetURI() string

func GetDeploymentDetailURI added in v0.9.133

func GetDeploymentDetailURI(deploymentId string) string

func GetDeploymentMetricsURI added in v0.9.133

func GetDeploymentMetricsURI(deploymentId string) string

func GetLoadBalancerBatchURI

func GetLoadBalancerBatchURI() string

func GetLoadBalancerMonitorURI added in v0.9.133

func GetLoadBalancerMonitorURI() string

func GetLoadBalancerURI

func GetLoadBalancerURI() string

func GetNodeInfoURI added in v0.9.72

func GetNodeInfoURI() string

func GetPodMetricsURI added in v0.9.133

func GetPodMetricsURI(podId string) string

func GetServiceDetailURI

func GetServiceDetailURI(serviceId string) string

func GetServiceMetricsURI

func GetServiceMetricsURI(serviceId string) string

func GetServiceURI

func GetServiceURI() string

func GetStartServiceURI

func GetStartServiceURI(serviceId, action string) string

func GetUpdateServiceURI

func GetUpdateServiceURI(serviceId string) string

func GetVmImageURI

func GetVmImageURI() string

func GetVmInstanceURI

func GetVmInstanceURI() string

func GetVmMonitorURI added in v0.9.133

func GetVmMonitorURI() string

func GetVmServiceActionURI

func GetVmServiceActionURI(serviceId, action string) string

func GetVmServiceMetricsURI

func GetVmServiceMetricsURI(serviceId, metricsType string) string

func GetVmServiceMonitorURI added in v0.9.133

func GetVmServiceMonitorURI() string

func GetVmURI

func GetVmURI() string

func Post

func Post(cli bce.Client, phr *PostHttpReq) error

func PostOrPut

func PostOrPut(cli bce.Client, phr *PostHttpReq, req *bce.BceRequest) error

func Put

func Put(cli bce.Client, phr *PostHttpReq) error

Types

type ActionInfoVo

type ActionInfoVo struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details map[string]string `json:"details"`
}

type AppBlbDetails added in v0.9.133

type AppBlbDetails struct {
	Address    string           `json:"address"`
	BlbId      string           `json:"blbId"`
	Cidr       string           `json:"cidr"`
	CreateTime string           `json:"createTime"`
	Desc       string           `json:"desc"`
	Listener   []AppBlbListener `json:"listener"`
	Name       string           `json:"name"`
	PublicIp   string           `json:"publicIp"`
	RegionId   string           `json:"regionId"`
	Status     string           `json:"status"`
	SubnetCidr string           `json:"subnetCidr"`
	SubnetId   string           `json:"subnetId"`
	VpcId      string           `json:"vpcId"`
	SubnetName string           `json:"subnetName"`
	VpcName    string           `json:"vpcName"`
}

type AppBlbLTcpListenerDetail added in v0.9.133

type AppBlbLTcpListenerDetail struct {
	Scheduler         string `json:"scheduler"`
	ListenerPort      int    `json:"listenerPort"`
	TcpSessionTimeout int    `json:"tcpSessionTimeout"`
}

type AppBlbListResponse added in v0.9.133

type AppBlbListResponse struct {
	BlbList     []AppBlbDetails `json:"blbList"`
	IsTruncated bool            `json:"isTruncated"`
	NextMarker  string          `json:"nextMarker"`
	Marker      string          `json:"marker"`
	MaxKeys     int             `json:"maxKeys"`
}

type AppBlbListener added in v0.9.133

type AppBlbListener struct {
	Port string `json:"port"`
	Type string `json:"type"`
}

type AppBlbUdpListenerDetail added in v0.9.133

type AppBlbUdpListenerDetail struct {
	Scheduler         string `json:"scheduler"`
	ListenerPort      int    `json:"listenerPort"`
	UdpSessionTimeout int    `json:"udpSessionTimeout"`
}

type AppIpGroupDetail added in v0.9.133

type AppIpGroupDetail struct {
	BackendPolicyList []BackendPolicy `json:"backendPolicyList"`
	Id                string          `json:"id"`
	Desc              string          `json:"desc"`
	Name              string          `json:"name"`
}

type AppPolicyVo added in v0.9.133

type AppPolicyVo struct {
	AppIpGroupId string `json:"appIpGroupId,omitempty"`
	Desc         string `json:"desc,omitempty"`
	Priority     int    `json:"priority,omitempty"`
}

type BackendPolicy added in v0.9.133

type BackendPolicy struct {
	HealthCheck                 string `json:"healthCheck"`
	HealthCheckHost             string `json:"healthCheckHost"`
	HealthCheckNormalStatus     string `json:"healthCheckNormalStatus"`
	HealthCheckUrlPath          string `json:"healthCheckUrlPath"`
	HealthCheckDownRetry        int    `json:"healthCheckDownRetry"`
	HealthCheckIntervalInSecond int    `json:"healthCheckIntervalInSecond"`
	HealthCheckPort             int    `json:"healthCheckPort"`
	HealthCheckTimeoutInSecond  int    `json:"healthCheckTimeoutInSecond"`
	HealthCheckUpRetry          int    `json:"healthCheckUpRetry"`
	Id                          string `json:"id"`
	Type                        string `json:"type"`
	UdpHealthCheckString        string `json:"udpHealthCheckString"`
}

type Backends

type Backends struct {
	Name   string `json:"name,omitempty"`
	Ip     string `json:"ip,omitempty"`
	Weight int    `json:"weight,omitempty"`
}

type BatchCreateBlbArgs

type BatchCreateBlbArgs struct {
	LbType               string                `json:"lbType,omitempty"`
	PaymentMethod        string                `json:"paymentMethod,omitempty"`
	RegionSelection      string                `json:"regionSelection,omitempty"`
	DeployInstances      *[]DeploymentInstance `json:"deployInstances,omitempty"`
	BlbName              string                `json:"blbName,omitempty"`
	NeedPublicIp         bool                  `json:"needPublicIp,omitempty"`
	BandwidthInMbpsLimit int                   `json:"bandwidthInMbpsLimit,omitempty"`
	Tags                 *[]Tag                `json:"tags,omitempty"`
	Listeners            *[]Listeners          `json:"listeners,omitempty"`
}

type BatchCreateBlbMonitorArg

type BatchCreateBlbMonitorArg struct {
	Protocol         Protocol     `json:"protocol,omitempty"`
	PortGroups       *[]PortGroup `json:"portGroups,omitempty"`
	LbMode           LbMode       `json:"lbMode,omitempty"`
	KeepaliveTimeout int          `json:"keepaliveTimeout,omitempty"`
	HealthCheck      *HealthCheck `json:"healthCheck,omitempty"`
	EnableCipTTM     bool         `json:"enableCipTTM,omitempty"`
	EnableVipTTM     bool         `json:"enableVipTTM,omitempty"`
}

type BatchCreateBlbMonitorResult

type BatchCreateBlbMonitorResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details map[string]string `json:"details"`
}

type BatchCreateBlbResult

type BatchCreateBlbResult struct {
	Result  bool            `json:"result"`
	Action  string          `json:"action"`
	Details []BlbInstanceVo `json:"details"`
}

type BatchDeleteBlbResult

type BatchDeleteBlbResult struct {
	Result  bool          `json:"result"`
	Action  string        `json:"action"`
	Details []OperationVo `json:"details"`
}

type BindSecurityGroupInstances added in v0.9.133

type BindSecurityGroupInstances struct {
	Instances []InstancesBinding `json:"instances"`
}

type BindSecurityGroupInstancesResponse added in v0.9.133

type BindSecurityGroupInstancesResponse struct {
	Action  string        `json:"action"`
	Result  bool          `json:"result"`
	Details []OperationVo `json:"details"`
}

type BlbBackendPodBriefVo

type BlbBackendPodBriefVo struct {
	PodName     string  `json:"podName"`
	PodStatus   string  `json:"podStatus"`
	PodIp       string  `json:"podIp"`
	BackendPort []Stats `json:"backendPort"`
	Weight      int     `json:"weight"`
}

type BlbBindingForm

type BlbBindingForm struct {
	DeploymentId  string      `json:"deploymentId,omitempty"`
	DefaultWeight int         `json:"defaultWeight,omitempty"`
	PodWeight     *[]Backends `json:"podWeight,omitempty"`
}

type BlbInstanceVo

type BlbInstanceVo struct {
	BlbId                string          `json:"blbId"`
	BlbName              string          `json:"blbName"`
	Status               string          `json:"status"`
	LbType               string          `json:"lbType"`
	Region               Region          `json:"region"`
	ServiceProvider      ServiceProvider `json:"serviceProvider"`
	City                 string          `json:"city"`
	RegionId             string          `json:"regionId"`
	PublicIp             string          `json:"publicIp"`
	CmPublicIP           string          `json:"cmPublicIP"`
	CtPublicIP           string          `json:"ctPublicIP"`
	UnPublicIP           string          `json:"unPublicIP"`
	InternalIp           string          `json:"internalIp"`
	Ports                []Listeners     `json:"ports"`
	PodCount             int             `json:"podCount"`
	BandwidthInMbpsLimit int             `json:"bandwidthInMbpsLimit"`
	CreateTime           string          `json:"createTime"`
}

type BlbIpGroupMember added in v0.9.133

type BlbIpGroupMember struct {
	Ip     string `json:"ip,omitempty"`
	Port   int    `json:"port,omitempty"`
	Weight int    `json:"weight,omitempty"`
}

type BlbIpGroupMemberDetail added in v0.9.133

type BlbIpGroupMemberDetail struct {
	MemberId string `json:"memberId"`
	Ip       string `json:"ip"`
	Port     int    `json:"port"`
	Weight   int    `json:"weight"`
}

type BlbIpGroupMemberResponse added in v0.9.133

type BlbIpGroupMemberResponse struct {
	Ip       string `json:"ip"`
	MemberId string `json:"memberId"`
	Port     int    `json:"port"`
	Weight   int    `json:"weight"`
}

type BlbListenerPolicy added in v0.9.133

type BlbListenerPolicy struct {
	AppIpGroupId   string                  `json:"appIpGroupId"`
	AppIpGroupName string                  `json:"appIpGroupName"`
	Desc           string                  `json:"desc"`
	Type           string                  `json:"type"`
	Id             string                  `json:"id"`
	FrontendPort   int                     `json:"frontendPort"`
	Priority       int                     `json:"priority"`
	RuleList       []BlbListenerPolicyRule `json:"ruleList"`
}

type BlbListenerPolicyRule added in v0.9.133

type BlbListenerPolicyRule struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type BlbMonitorArgs

type BlbMonitorArgs struct {
	FrontendPort     *Port        `json:"frontendPort,omitempty"`
	BackendPort      int          `json:"backendPort,omitempty"`
	LbMode           LbMode       `json:"lbMode,omitempty"`
	KeepaliveTimeout int          `json:"keepaliveTimeout,omitempty"`
	HealthCheck      *HealthCheck `json:"healthCheck,omitempty"`
	EnableCipTTM     bool         `json:"enableCipTTM,omitempty"`
	EnableVipTTM     bool         `json:"enableVipTTM,omitempty"`
}

type BlbMonitorListResult

type BlbMonitorListResult struct {
	Orders     []OrderModel `json:"orders"`
	OrderBy    string       `json:"orderBy"`
	Order      string       `json:"order"`
	PageNo     int          `json:"pageNo"`
	PageSize   int          `json:"pageSize"`
	TotalCount int          `json:"totalCount"`
	Result     []Listeners  `json:"result"`
}

type BlbMonitorResult

type BlbMonitorResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details map[string]string `json:"details"`
}

type CityInfo added in v0.9.72

type CityInfo struct {
	City                string                `json:"city"`
	Name                string                `json:"name"`
	ServiceProviderList []ServiceProviderInfo `json:"serviceProviderList"`
}

type ConfigFile

type ConfigFile EmptyDir

type ContainerDetails

type ContainerDetails struct {
	Name         string            `json:"name,omitempty"`
	ImageVersion string            `json:"imageVersion,omitempty"`
	ImageAddress string            `json:"imageAddress,omitempty"`
	Memory       int               `json:"memory,omitempty"`
	Cpu          int               `json:"cpu,omitempty"`
	Gpu          int               `json:"gpu,omitempty"`
	WorkingDir   string            `json:"workingDir,omitempty"`
	Commands     []string          `json:"commands,omitempty"`
	Args         []string          `json:"args,omitempty"`
	VolumeMounts []V1VolumeMount   `json:"volumeMounts,omitempty"`
	Ports        []V1ContainerPort `json:"ports,omitempty"`
	Envs         []V1EnvVar        `json:"envs,omitempty"`
}

type CreateAppBlbPoliciesRequest added in v0.9.133

type CreateAppBlbPoliciesRequest struct {
	ListenerPort int           `json:"listenerPort,omitempty"`
	Type         string        `json:"type,omitempty"`
	AppPolicyVos []AppPolicyVo `json:"appPolicyVos,omitempty"`
}

type CreateAppBlbRequest added in v0.9.133

type CreateAppBlbRequest struct {
	Desc                string   `json:"desc,omitempty"`
	Name                string   `json:"name,omitempty"`
	RegionId            string   `json:"regionId,omitempty"`
	SubServiceProviders []string `json:"subServiceProviders,omitempty"`
	NeedPublicIp        bool     `json:"needPublicIp,omitempty"`
	SubnetId            string   `json:"subnetId,omitempty"`
	VpcId               string   `json:"vpcId,omitempty"`
}

type CreateAppBlbResponse added in v0.9.133

type CreateAppBlbResponse struct {
	Desc  string `json:"desc"`
	Name  string `json:"name"`
	BlbId string `json:"blbId"`
}

type CreateBecAppBlbTcpListenerRequest added in v0.9.133

type CreateBecAppBlbTcpListenerRequest struct {
	ListenerPort      int    `json:"listenerPort,omitempty"`
	Scheduler         string `json:"scheduler,omitempty"`
	TcpSessionTimeout int    `json:"tcpSessionTimeout,omitempty"`
}

type CreateBecAppBlbUdpListenerRequest added in v0.9.133

type CreateBecAppBlbUdpListenerRequest struct {
	ListenerPort      int    `json:"listenerPort,omitempty"`
	Scheduler         string `json:"scheduler,omitempty"`
	UdpSessionTimeout int    `json:"udpSessionTimeout,omitempty"`
}

type CreateBlbArgs

type CreateBlbArgs struct {
	LbType               string          `json:"lbType,omitempty"`
	PaymentMethod        string          `json:"paymentMethod,omitempty"`
	Region               Region          `json:"region,omitempty"`
	City                 string          `json:"city,omitempty"`
	ServiceProvider      ServiceProvider `json:"serviceProvider,omitempty"`
	RegionId             string          `json:"regionId,omitempty"`
	SubServiceProviders  []string        `json:"subServiceProviders,omitempty"`
	NetworkType          string          `json:"networkType,omitempty"`
	VpcId                string          `json:"vpcId,omitempty"`
	SubnetId             string          `json:"subnetId,omitempty"`
	BlbName              string          `json:"blbName,omitempty"`
	NeedPublicIp         bool            `json:"needPublicIp,omitempty"`
	BandwidthInMbpsLimit int             `json:"bandwidthInMbpsLimit,omitempty"`
	Tags                 *[]Tag          `json:"tags,omitempty"`
	Listeners            *[]Listeners    `json:"listeners,omitempty"`
}

type CreateBlbBindingArgs

type CreateBlbBindingArgs struct {
	BindingForms *[]BlbBindingForm `json:"bindingForms,omitempty"`
}

type CreateBlbBindingResult

type CreateBlbBindingResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details map[string]string `json:"details"`
}

type CreateBlbIpGroupBackendPolicyRequest added in v0.9.133

type CreateBlbIpGroupBackendPolicyRequest struct {
	HealthCheck                 string `json:"healthCheck,omitempty"`
	HealthCheckHost             string `json:"healthCheckHost,omitempty"`
	HealthCheckNormalStatus     string `json:"healthCheckNormalStatus,omitempty"`
	HealthCheckUrlPath          string `json:"healthCheckUrlPath,omitempty"`
	HealthCheckDownRetry        int    `json:"healthCheckDownRetry,omitempty"`
	HealthCheckIntervalInSecond int    `json:"healthCheckIntervalInSecond,omitempty"`
	HealthCheckPort             int    `json:"healthCheckPort,omitempty"`
	HealthCheckTimeoutInSecond  int    `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckUpRetry          int    `json:"healthCheckUpRetry,omitempty"`
	IpGroupId                   string `json:"ipGroupId,omitempty"`
	Type                        string `json:"type,omitempty"`
	UdpHealthCheckString        string `json:"udpHealthCheckString,omitempty"`
}

type CreateBlbIpGroupBackendPolicyResponse added in v0.9.133

type CreateBlbIpGroupBackendPolicyResponse struct {
	Id string `json:"id"`
}

type CreateBlbIpGroupMemberRequest added in v0.9.133

type CreateBlbIpGroupMemberRequest struct {
	IpGroupId  string             `json:"ipGroupId,omitempty"`
	MemberList []BlbIpGroupMember `json:"memberList,omitempty"`
}

type CreateBlbIpGroupMemberResponse added in v0.9.133

type CreateBlbIpGroupMemberResponse struct {
	MemberList []BlbIpGroupMemberResponse `json:"memberList"`
}

type CreateBlbIpGroupRequest added in v0.9.133

type CreateBlbIpGroupRequest struct {
	Desc       string             `json:"desc,omitempty"`
	Name       string             `json:"name,omitempty"`
	MemberList []BlbIpGroupMember `json:"memberList,omitempty"`
}

type CreateBlbIpGroupResponse added in v0.9.133

type CreateBlbIpGroupResponse struct {
	Desc string `json:"desc"`
	Name string `json:"name"`
	Id   string `json:"id"`
}

type CreateBlbResult

type CreateBlbResult struct {
	Result  bool          `json:"result"`
	Action  string        `json:"action"`
	Details BlbInstanceVo `json:"details"`
}

type CreateDeploySetArgs added in v0.9.133

type CreateDeploySetArgs struct {
	Name string `json:"name,omitempty"`
	Desc string `json:"desc,omitempty"`
}

type CreateDeploySetResponseArgs added in v0.9.133

type CreateDeploySetResponseArgs struct {
	DeploysetIdList []string `json:"deploysetIdList,omitempty"`
}

type CreateServiceArgs

type CreateServiceArgs struct {
	ServiceName          string                 `json:"serviceName,omitempty"`
	PaymentMethod        string                 `json:"paymentMethod,omitempty"`
	ContainerGroupName   string                 `json:"containerGroupName,omitempty"`
	Containers           *[]ContainerDetails    `json:"containers,omitempty"`
	ImageRegistrySecrets *[]ImageRegistrySecret `json:"imageRegistrySecrets,omitempty"`
	Volumes              *Volume                `json:"volumes,omitempty"`
	NeedPublicIp         bool                   `json:"needPublicIp,omitempty"`
	NeedIpv6PublicIp     bool                   `json:"needIpv6PublicIp,omitempty"`
	Bandwidth            int                    `json:"bandwidth,omitempty"`
	Tags                 *[]Tag                 `json:"tags,omitempty"`
	DeployInstances      *[]DeploymentInstance  `json:"deployInstances,omitempty"`
	LogCollectDetail     *LogCollectDetail      `json:"logCollectDetail,omitempty"`
}

type CreateServiceResult

type CreateServiceResult struct {
	Details ServiceBriefVo `json:"details"`
	Result  bool           `json:"result"`
	Action  string         `json:"action"`
}

type CreateVmImageArgs

type CreateVmImageArgs struct {
	VmId string `json:"vmId,omitempty"`
	Name string `json:"name,omitempty"`
}

type CreateVmImageResult

type CreateVmImageResult struct {
	Success bool   `json:"success"`
	Result  string `json:"result"`
}

type CreateVmPrivateIpForm

type CreateVmPrivateIpForm struct {
	SecondaryPrivateIpAddressCount int      `json:"secondaryPrivateIpAddressCount,omitempty"`
	PrivateIps                     []string `json:"privateIps,omitempty"`
}

type CreateVmServiceArgs

type CreateVmServiceArgs struct {
	ServiceName       string                `json:"serviceName,omitempty"`
	VmName            string                `json:"vmName,omitempty"`
	NeedPublicIp      bool                  `json:"needPublicIp,omitempty"`
	Bandwidth         int                   `json:"bandwidth,omitempty"`
	DeployInstances   *[]DeploymentInstance `json:"deployInstances,omitempty"`
	DnsConfig         *DnsConfig            `json:"dnsConfig,omitempty"`
	Spec              string                `json:"spec,omitempty"`
	Cpu               int                   `json:"cpu,omitempty"`
	Memory            int                   `json:"memory,omitempty"`
	ImageId           string                `json:"imageId,omitempty"`
	ImageType         ImageType             `json:"imageType,omitempty"`
	NeedIpv6PublicIp  bool                  `json:"needIpv6PublicIp,omitempty"`
	SystemVolume      *SystemVolumeConfig   `json:"systemVolume,omitempty"`
	DataVolumeList    *[]VolumeConfig       `json:"dataVolumeList,omitempty"`
	KeyConfig         *KeyConfig            `json:"keyConfig,omitempty"`
	DisableIntranet   bool                  `json:"disableIntranet,omitempty"`
	DisableCloudInit  bool                  `json:"disableCloudInit,omitempty"`
	NetworkConfigList *[]NetworkConfig      `json:"networkConfigList,omitempty"`
	SecurityGroupIds  []string              `json:"securityGroupIds,omitempty"`
	Hostname          string                `json:"hostname,omitempty"`
	DeploysetIdList   []string              `json:"deploysetIdList,omitempty"`
	PaymentMethod     string                `json:"paymentMethod,omitempty"`
	Gpu               *GpuRequest           `json:"gpu,omitempty"`
	AdminPass         string                `json:"adminPass,omitempty"`
	TemplateId        string                `json:"templateId,omitempty"`
}

type CreateVmServiceResult

type CreateVmServiceResult struct {
	Details VmServiceBriefVo `json:"details"`
	Result  bool             `json:"result"`
	Action  string           `json:"action"`
}

type DeleteAppBlbPoliciesRequest added in v0.9.133

type DeleteAppBlbPoliciesRequest struct {
	Type         string   `json:"type,omitempty"`
	Port         int      `json:"port,omitempty"`
	PolicyIdList []string `json:"policyIdList,omitempty"`
}

type DeleteBlbBindPodArgs

type DeleteBlbBindPodArgs struct {
	PodWeightList *[]Backends `json:"podWeightList,omitempty"`
	DeploymentIds []string    `json:"deploymentIds,omitempty"`
}

type DeleteBlbBindPodResult

type DeleteBlbBindPodResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details map[string]string `json:"details"`
}

type DeleteBlbIpGroupBackendMemberRequest added in v0.9.133

type DeleteBlbIpGroupBackendMemberRequest struct {
	IpGroupId    string   `json:"ipGroupId,omitempty"`
	MemberIdList []string `json:"memberIdList,omitempty"`
}

type DeleteBlbIpGroupBackendPolicyRequest added in v0.9.133

type DeleteBlbIpGroupBackendPolicyRequest struct {
	IpGroupId           string   `json:"ipGroupId,omitempty"`
	BackendPolicyIdList []string `json:"backendPolicyIdList,omitempty"`
}

type DeleteBlbIpGroupRequest added in v0.9.133

type DeleteBlbIpGroupRequest struct {
	IpGroupId string `json:"ipGroupId,omitempty"`
}

type DeleteBlbListenerRequest added in v0.9.133

type DeleteBlbListenerRequest struct {
	PortTypeList []PortTypeList `json:"portTypeList,omitempty"`
}

type DeleteBlbResult

type DeleteBlbResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details map[string]string `json:"details"`
}

type DeleteDeploymentActionInfoVo added in v0.9.133

type DeleteDeploymentActionInfoVo struct {
	Result  bool                `json:"result"`
	Action  string              `json:"action"`
	Details map[string][]string `json:"details"`
}

type DeleteVmDeploySetArgs added in v0.9.133

type DeleteVmDeploySetArgs struct {
	DeploysetId    string   `json:"deploysetId,omitempty"`
	InstanceIdList []string `json:"instanceIdList,omitempty"`
}

type DeleteVmPrivateIpForm

type DeleteVmPrivateIpForm struct {
	PrivateIps []string `json:"privateIps,omitempty"`
}

type DeleteVmServiceArgs

type DeleteVmServiceArgs struct {
	ServiceId string `json:"serviceId"`
}

type DeleteVmServiceResult

type DeleteVmServiceResult struct {
	Details map[string]string `json:"details"`
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
}

type DeploySetDetails added in v0.9.133

type DeploySetDetails struct {
	DeploysetId            string               `json:"deploysetId"`
	Name                   string               `json:"name"`
	Desc                   string               `json:"desc"`
	InstanceCount          int                  `json:"instanceCount"`
	InstanceTotal          int                  `json:"instanceTotal"`
	CreateTime             string               `json:"createTime"`
	NodeInstanceStatisList []NodeInstanceStatis `json:"nodeInstanceStatisList"`
}

type DeploySetVo added in v0.9.133

type DeploySetVo struct {
	DeploysetId string `json:"deploysetId"`
	Name        string `json:"name"`
}

type DeploymentInstance

type DeploymentInstance struct {
	Region              Region          `json:"region,omitempty"`
	ServiceProvider     ServiceProvider `json:"serviceProvider,omitempty"`
	Replicas            int             `json:"replicas,omitempty"`
	City                string          `json:"city,omitempty"`
	RegionId            string          `json:"regionId,omitempty"`
	NetworkType         string          `json:"networkType,omitempty"`
	VpcId               string          `json:"vpcId,omitempty"`
	SubnetId            string          `json:"subnetId,omitempty"`
	SubServiceProviders []string        `json:"subServiceProviders,omitempty"`
}

type DeploymentResourceBriefVo added in v0.9.133

type DeploymentResourceBriefVo struct {
	ServiceId      string             `json:"serviceId"`
	ServiceName    string             `json:"serviceName"`
	ResourceId     string             `json:"resourceId"`
	ResourceName   string             `json:"resourceName"`
	TotalPods      int                `json:"totalPods"`
	RunningPods    int                `json:"runningPods"`
	DeployInstance DeploymentInstance `json:"deployInstance"`
	Containers     []ContainerDetails `json:"containers"`
	PodBriefVos    []PodBriefVo       `json:"podBriefVos"`
	CreateTime     string             `json:"createTime"`
	LastUpdateTime string             `json:"lastUpdateTime"`
}

type DiskType

type DiskType string
const (
	DiskTypeNVME             DiskType = "NVME"
	DiskTypeSATA             DiskType = "SATA"
	DiskTypeCDSHDD           DiskType = "CDS_HDD"
	DiskTypeCDSSSD           DiskType = "CDS_SSD"
	DiskTypeRBDSSD           DiskType = "RBD_SSD"
	DiskTypeHDDPASSTHROUGH4T DiskType = "HDD_PASSTHROUGH_4T"
	DiskTypeSSDPASSTHROUGH4T DiskType = "SSD_PASSTHROUGH_4T"
)

type DnsConfig

type DnsConfig struct {
	DnsType    string `json:"dnsType,omitempty"`
	DnsAddress string `json:"dnsAddress,omitempty"`
}

type EmptyDir

type EmptyDir struct {
	Name string `json:"name,omitempty"`
}

type GetBecAppBlbListenerRequest added in v0.9.133

type GetBecAppBlbListenerRequest struct {
	ListenerPort int `json:"listenerPort,omitempty"`
	MarkerRequest
}

type GetBecAppBlbTcpListenerResponse added in v0.9.133

type GetBecAppBlbTcpListenerResponse struct {
	IsTruncated  bool                       `json:"isTruncated"`
	ListenerList []AppBlbLTcpListenerDetail `json:"listenerList"`
	NextMarker   string                     `json:"nextMarker"`
	Marker       string                     `json:"marker"`
	MaxKeys      int                        `json:"maxKeys"`
}

type GetBecAppBlbUdpListenerResponse added in v0.9.133

type GetBecAppBlbUdpListenerResponse struct {
	IsTruncated  bool                      `json:"isTruncated"`
	ListenerList []AppBlbUdpListenerDetail `json:"listenerList"`
	NextMarker   string                    `json:"nextMarker"`
	Marker       string                    `json:"marker"`
	MaxKeys      int                       `json:"maxKeys"`
}

type GetBecAvailableNodeInfoVoResult added in v0.9.72

type GetBecAvailableNodeInfoVoResult struct {
	RegionList []RegionInfo `json:"regionList,omitempty"`
	NodeSum    int          `json:"nodeSum,omitempty"`
}

type GetBlbBackendBindingStsListResult

type GetBlbBackendBindingStsListResult struct {
	Orders     []OrderModel `json:"orders"`
	OrderBy    string       `json:"orderBy"`
	Order      string       `json:"order"`
	PageNo     int          `json:"pageNo"`
	PageSize   int          `json:"pageSize"`
	TotalCount int          `json:"totalCount"`
	Result     []LbDeployPo `json:"result"`
}

type GetBlbBackendPodListResult

type GetBlbBackendPodListResult struct {
	Orders     []OrderModel           `json:"orders"`
	OrderBy    string                 `json:"orderBy"`
	Order      string                 `json:"order"`
	PageNo     int                    `json:"pageNo"`
	PageSize   int                    `json:"pageSize"`
	TotalCount int                    `json:"totalCount"`
	Result     []BlbBackendPodBriefVo `json:"result"`
}

type GetBlbIpGroupListRequest added in v0.9.133

type GetBlbIpGroupListRequest struct {
	ExactlyMatch bool   `json:"exactlyMatch,omitempty"`
	Name         string `json:"name,omitempty"`
	MarkerRequest
}

type GetBlbIpGroupListResponse added in v0.9.133

type GetBlbIpGroupListResponse struct {
	IsTruncated    bool               `json:"isTruncated"`
	AppIpGroupList []AppIpGroupDetail `json:"appIpGroupList"`
	NextMarker     string             `json:"nextMarker"`
	Marker         string             `json:"marker"`
	MaxKeys        int                `json:"maxKeys"`
}

type GetBlbIpGroupMemberListRequest added in v0.9.133

type GetBlbIpGroupMemberListRequest struct {
	IpGroupId string `json:"ipGroupId,omitempty"`
	MarkerRequest
}

type GetBlbIpGroupMemberListResponse added in v0.9.133

type GetBlbIpGroupMemberListResponse struct {
	IsTruncated bool                     `json:"isTruncated"`
	NextMarker  string                   `json:"nextMarker"`
	Marker      string                   `json:"marker"`
	MaxKeys     int                      `json:"maxKeys"`
	MemberList  []BlbIpGroupMemberDetail `json:"memberList"`
}

type GetBlbIpGroupPolicyListRequest added in v0.9.133

type GetBlbIpGroupPolicyListRequest struct {
	IpGroupId string `json:"ipGroupId,omitempty"`
	MarkerRequest
}

type GetBlbIpGroupPolicyListResponse added in v0.9.133

type GetBlbIpGroupPolicyListResponse struct {
	IsTruncated       bool            `json:"isTruncated"`
	BackendPolicyList []BackendPolicy `json:"backendPolicyList"`
	NextMarker        string          `json:"nextMarker"`
	Marker            string          `json:"marker"`
	MaxKeys           int             `json:"maxKeys"`
}

type GetBlbListResult

type GetBlbListResult struct {
	Orders     []OrderModel    `json:"orders"`
	OrderBy    string          `json:"orderBy"`
	PageNo     int             `json:"pageNo"`
	PageSize   int             `json:"pageSize"`
	TotalCount int             `json:"totalCount"`
	Result     []BlbInstanceVo `json:"result"`
}

type GetBlbListenerPolicyRequest added in v0.9.133

type GetBlbListenerPolicyRequest struct {
	Port int    `json:"port,omitempty"`
	Type string `json:"type,omitempty"`
	MarkerRequest
}

type GetBlbListenerPolicyResponse added in v0.9.133

type GetBlbListenerPolicyResponse struct {
	IsTruncated bool                `json:"isTruncated"`
	NextMarker  string              `json:"nextMarker"`
	Marker      string              `json:"marker"`
	MaxKeys     int                 `json:"maxKeys"`
	PolicyList  []BlbListenerPolicy `json:"policyList"`
}

type GetHttpReq

type GetHttpReq struct {
	Url    string
	Result interface{}
	Params map[string]string
}

type GetNodeVmInstanceListResult

type GetNodeVmInstanceListResult struct {
	Result  []VmInstanceBriefVo `json:"result"`
	Success bool                `json:"success"`
}

type GetServiceArgs

type GetServiceArgs struct {
	ServiceId string
}

type GetVmServiceDetailArgs

type GetVmServiceDetailArgs struct {
	ServiceId string `json:"serviceId"`
}

type GpuRequest

type GpuRequest struct {
	Type string `json:"type,omitempty"`
	Num  int    `json:"num,omitempty"`
}

type HealthCheck

type HealthCheck struct {
	TimeoutInSeconds   int     `json:"timeoutInSeconds,omitempty"`
	IntervalInSeconds  int     `json:"intervalInSeconds,omitempty"`
	UnhealthyThreshold int     `json:"unhealthyThreshold,omitempty"`
	HealthyThreshold   int     `json:"healthyThreshold,omitempty"`
	HealthCheckString  *string `json:"healthCheckString"`
	HealthCheckType    string  `json:"healthCheckType,omitempty"`
}

type ImageDetail

type ImageDetail struct {
	Id      string `json:"id"`
	ImageId string `json:"imageId"`
	Name    string `json:"name"`

	NameFri    string `json:"nameFri"`
	ImageType  string `json:"imageType"`
	SnapshotId string `json:"snapshotId"`
	Cpu        int    `json:"cpu"`
	Memory     int    `json:"memory"`
	OsType     string `json:"osType"`
	OsVersion  string `json:"osVersion"`
	OsName     string `json:"osName"`
	OsBuild    string `json:"osBuild"`
	OsLang     string `json:"osLang"`
	DiskSize   int    `json:"diskSize"`

	CreateTime          string `json:"createTime"`
	Status              string `json:"status"`
	MinMem              int    `json:"minMem"`
	MinCpu              int    `json:"minCpu"`
	MinDiskGb           int    `json:"minDiskGb"`
	Desc                string `json:"desc"`
	OsArch              string `json:"osArch"`
	EphemeralSize       int    `json:"ephemeralSize"`
	ImageDescription    string `json:"imageDescription"`
	ShareToUserNumLimit int    `json:"shareToUserNumLimit"`
	SharedToUserNum     int    `json:"sharedToUserNum"`
	FpgaType            string `json:"fpgaType"`
}

type ImageRegistrySecret

type ImageRegistrySecret struct {
	Name string `json:"name,omitempty"`
}

type ImageType

type ImageType string
const (
	ImageTypeBcc ImageType = "bcc"
	ImageTypeBec ImageType = "bec"
)

type InstancesBinding added in v0.9.133

type InstancesBinding struct {
	InstanceId       string   `json:"instanceId"`
	SecurityGroupIds []string `json:"securityGroupIds"`
}

type IpAddress added in v0.9.133

type IpAddress struct {
	Ip   string `json:"ip,omitempty"`
	Gw   string `json:"gw,omitempty"`
	Cidr string `json:"cidr,omitempty"`
	Mask string `json:"mask,omitempty"`
}

type IpInfo

type IpInfo struct {
	ServiceProvider ServiceProvider `json:"serviceProvider"`
	Ip              string          `json:"ip"`
	Ipv6            string          `json:"ipv6"`
}

type IpPackageVo

type IpPackageVo struct {
	PublicIp         string          `json:"publicIp"`
	Ipv6PublicIp     string          `json:"ipv6PublicIp"`
	InternalIp       string          `json:"internalIp"`
	MultiplePublicIp []IpInfo        `json:"multiplePublicIp"`
	ServiceProvider  ServiceProvider `json:"serviceProvider"`
}

type IpamResultVo

type IpamResultVo struct {
	Success bool     `json:"success"`
	ErrCode string   `json:"errCode"`
	ErrMsg  string   `json:"errMsg"`
	Ips     []string `json:"ips"`
	ErrIPs  []string `json:"errIPs"`
}

type KeyConfig

type KeyConfig struct {
	Type             string   `json:"type,omitempty"`
	AdminPass        string   `json:"adminPass,omitempty"`
	BccKeyPairIdList []string `json:"bccKeyPairIdList,omitempty"`
}

type KeyPair added in v0.9.139

type KeyPair struct {
	KeyPairId string `json:"keyPairId"`
	Name      string `json:"name"`
}

type LbDeployPo

type LbDeployPo struct {
	ServiceName     string          `json:"serviceName"`
	DeploymentName  string          `json:"deploymentName"`
	CustomOrigName  string          `json:"customOrigName"`
	ServiceId       string          `json:"serviceId"`
	DeploymentType  string          `json:"deploymentType"`
	Region          Region          `json:"region"`
	ServiceProvider ServiceProvider `json:"serviceProvider"`
	City            string          `json:"city"`
	Replicas        int             `json:"replicas"`
	PodCpu          int             `json:"podCpu"`
	PodMemory       int             `json:"podMemory"`
	PodGpu          int             `json:"podGpu"`
	PodDataStorage  string          `json:"podDataStorage"`
	Sata            int             `json:"sata"`
	Nvme            int             `json:"nvme"`
	DataDiskNum     int             `json:"dataDiskNum"`
	PodIpRequired   bool            `json:"podIpRequired"`
	Backends        []Backends      `json:"backends"`
}

type LbMode

type LbMode string
const (
	LbModeWrr     LbMode = "wrr"
	LbModeMinConn LbMode = "minconn"
	LbModeSrch    LbMode = "srch"
)

type ListDeploymentArgs

type ListDeploymentArgs struct {
	DeploymentID string `json:"deploymentID"`
}

type ListPodResult added in v0.9.133

type ListPodResult struct {
	Result     []PodBriefVo `json:"result"`
	OrderBy    string       `json:"orderBy"`
	Order      string       `json:"order"`
	PageNo     int          `json:"pageNo"`
	PageSize   int          `json:"pageSize"`
	TotalCount int          `json:"totalCount"`
}

type ListRequest

type ListRequest struct {
	KeywordType     string          `json:"keywordType"`
	Keyword         string          `json:"keyword"`
	PageNo          int             `json:"pageNo,omitempty"`
	PageSize        int             `json:"pageSize,omitempty"`
	Order           string          `json:"order,omitempty"`
	OrderBy         string          `json:"orderBy,omitempty"`
	Status          string          `json:"status,omitempty"`
	Region          string          `json:"region,omitempty"`
	OsName          string          `json:"osName,omitempty"`
	ServiceId       string          `json:"serviceId,omitempty"`
	City            string          `json:"city,omitempty"`
	ServiceProvider ServiceProvider `json:"serviceProvider,omitempty"`
}

type ListServiceResult

type ListServiceResult struct {
	Result     []ServiceBriefVo `json:"result"`
	OrderBy    string           `json:"orderBy"`
	Order      string           `json:"order"`
	PageNo     int              `json:"pageNo"`
	PageSize   int              `json:"pageSize"`
	TotalCount int              `json:"totalCount"`
}

type ListVmImageArgs

type ListVmImageArgs struct {
	KeywordType string `json:"keywordType"`
	Keyword     string `json:"keyword"`
	PageNo      int    `json:"pageNo,omitempty"`
	PageSize    int    `json:"pageSize,omitempty"`
	Order       string `json:"order,omitempty"`
	OrderBy     string `json:"orderBy,omitempty"`
	Status      string `json:"status"`
	Region      string `json:"region"`
	OsName      string `json:"osName"`
	ServiceId   string `json:"serviceId"`
	Type        string `json:"type,omitempty"`
}

type ListVmImageResult

type ListVmImageResult struct {
	Orders     []OrderModel `json:"orders"`
	OrderBy    string       `json:"orderBy"`
	Order      string       `json:"order"`
	PageNo     int          `json:"pageNo"`
	PageSize   int          `json:"pageSize"`
	TotalCount int          `json:"totalCount"`
	Result     []VmImageVo  `json:"result"`
}

type ListVmServiceArgs

type ListVmServiceArgs struct {
	KeywordType string `json:"keywordType,omitempty"`
	Keyword     string `json:"keyword,omitempty"`
	PageNo      int    `json:"pageNo,omitempty"`
	PageSize    int    `json:"pageSize,omitempty"`
	Order       string `json:"order,omitempty"`
	OrderBy     string `json:"orderBy,omitempty"`
	Status      string `json:"status,omitempty"`
	Region      string `json:"region,omitempty"`
	OsName      string `json:"osName,omitempty"`
	ServiceId   string `json:"serviceId,omitempty"`
}

type ListVmServiceResult

type ListVmServiceResult struct {
	Orders     []OrderModel       `json:"orders"`
	OrderBy    string             `json:"orderBy"`
	Order      string             `json:"order"`
	PageNo     int                `json:"pageNo"`
	PageSize   int                `json:"pageSize"`
	TotalCount int                `json:"totalCount"`
	Result     []VmServiceBriefVo `json:"result"`
}

type Listeners

type Listeners struct {
	Protocol         Protocol `json:"protocol,omitempty"`
	Port             int      `json:"port,omitempty"`
	BackendPort      int      `json:"backendPort,omitempty"`
	KeepaliveTimeout int      `json:"keepaliveTimeout,omitempty"`
	Scheduler        LbMode   `json:"scheduler,omitempty"`
	EnableCipTTM     bool     `json:"enableCipTTM,omitempty"`
	EnableVipTTM     bool     `json:"enableVipTTM,omitempty"`

	// health check config
	HealthCheckInterval  int    `json:"healthCheckInterval,omitempty"`
	HealthCheckRetry     int    `json:"healthCheckRetry,omitempty"`
	HealthCheckTimeout   int    `json:"healthCheckTimeout,omitempty"`
	UdpHealthCheckString string `json:"udpHealthCheckString,omitempty"`
	HealthCheckType      string `json:"healthCheckType,omitempty"`
}

type LogCollectDetail

type LogCollectDetail struct {
	ServiceId      string `json:"serviceId,omitempty"`
	LogCollect     bool   `json:"logCollect,omitempty"`
	LogPath        string `json:"logPath,omitempty"`
	JsonAnalysis   bool   `json:"jsonAnalysis,omitempty"`
	PushLog        bool   `json:"pushLog,omitempty"`
	Standard       bool   `json:"standard,omitempty"`
	Custom         bool   `json:"custom,omitempty"`
	LogOutputType  string `json:"logOutputType,omitempty"`
	EsIP           string `json:"esIP,omitempty"`
	EsPort         int    `json:"esPort,omitempty"`
	EsIndex        string `json:"esIndex,omitempty"`
	Encrypted      bool   `json:"encrypted,omitempty"`
	EsUserName     string `json:"esUserName,omitempty"`
	EsUserPassword string `json:"esUserPassword,omitempty"`
}

type LogicPageDeploySetResult added in v0.9.133

type LogicPageDeploySetResult struct {
	Orders     []OrderModel       `json:"orders"`
	OrderBy    string             `json:"orderBy"`
	Order      string             `json:"order"`
	PageNo     int                `json:"pageNo"`
	PageSize   int                `json:"pageSize"`
	TotalCount int                `json:"totalCount"`
	Result     []DeploySetDetails `json:"result"`
}

type LogicPageVmInstanceResult

type LogicPageVmInstanceResult struct {
	Orders     []OrderModel          `json:"orders"`
	OrderBy    string                `json:"orderBy"`
	Order      string                `json:"order"`
	PageNo     int                   `json:"pageNo"`
	PageSize   int                   `json:"pageSize"`
	TotalCount int                   `json:"totalCount"`
	Result     []VmInstanceDetailsVo `json:"result"`
}

type MarkerRequest added in v0.9.133

type MarkerRequest struct {
	Marker  string `json:"marker,omitempty"`
	MaxKeys int    `json:"maxKeys,omitempty"`
}

type Metric

type Metric struct {
	TimeInSecond int     `json:"timeInSecond"`
	Value        float64 `json:"value"`
}

type MetricsType

type MetricsType string
const (
	MetricsTypeCpu               MetricsType = "CPU"
	MetricsTypeMemory            MetricsType = "MEMORY"
	MetricsTypeBandwidthReceive  MetricsType = "BANDWIDTH_RECEIVE"
	MetricsTypeBandwidthTransmit MetricsType = "BANDWIDTH_TRANSMIT"
	MetricsTypeTrafficReceive    MetricsType = "TRAFFIC_RECEIVE"
	MetricsTypeTrafficTransmit   MetricsType = "TRAFFIC_TRANSMIT"

	MetricsTypeNodeBwReceive    MetricsType = "NODE_BW_RECEIVE"
	MetricsTypeNodeBwTransmit   MetricsType = "NODE_BW_TRANSMIT"
	MetricsTypeNodeLbBwReceive  MetricsType = "NODE_LB_BW_RECEIVE"
	MetricsTypeNodeLbBwTransmit MetricsType = "NODE_LB_BW_TRANSMIT"

	MetricsTypeRequestNum   MetricsType = "REQUEST_NUMBER"
	MetricsTypeRequestRate  MetricsType = "REQUEST_RATE"
	MetricsTypeRequestDelay MetricsType = "REQUEST_DELAY"

	MetricsTypeUnknown MetricsType = "UNKNOWN"
)

type ModifyBecBlbRequest added in v0.9.133

type ModifyBecBlbRequest struct {
	Desc string `json:"desc,omitempty"`
	Name string `json:"name,omitempty"`
}

type NetworkConfig

type NetworkConfig struct {
	NodeType     string      `json:"nodeType,omitempty"` //NoneType
	NetworksList *[]Networks `json:"networksList,omitempty"`
}

type NetworkConfigUpdateVmInstance added in v0.9.133

type NetworkConfigUpdateVmInstance struct {
	NeedPrivateNetwork            bool   `json:"needPrivateNetwork"`
	NeedPublicNetwork             bool   `json:"needPublicNetwork"`
	PrivateNetworkName            string `json:"privateNetworkName,omitempty"`
	PublicNetworkName             string `json:"publicNetworkName,omitempty"`
	PublicNetworkChinaMobileName  string `json:"publicNetworkChinaMobileName,omitempty"`
	PublicNetworkChinaUnicomName  string `json:"publicNetworkChinaUnicomName,omitempty"`
	PublicNetworkChinaTelecomName string `json:"publicNetworkChinaTelecomName,omitempty"`
}

type Networks

type Networks struct {
	NetType    string     `json:"netType,omitempty"`
	NetName    string     `json:"netName,omitempty"`
	NicIndex   int        `json:"nicIndex,omitempty"`
	EniId      string     `json:"eniId,omitempty"`
	Mac        string     `json:"mac,omitempty"`
	Ipv4       *IpAddress `json:"ipv4,omitempty"`
	Ipv6       *IpAddress `json:"ipv6,omitempty"`
	ReserveIps []string   `json:"reserveIps,omitempty"`
}

type NodeInstanceStatis added in v0.9.133

type NodeInstanceStatis struct {
	RegionId      string   `json:"regionId"`
	InstanceCount int      `json:"instanceCount"`
	InstanceTotal int      `json:"instanceTotal"`
	InstanceIds   []string `json:"instanceIds"`
}

type OperateVmDeploymentResult

type OperateVmDeploymentResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details map[string]string `json:"details"`
}

type OperationVo

type OperationVo struct {
	ResourceId string `json:"resourceId"`
	Success    bool   `json:"success"`
	Error      string `json:"error"`
}

type OrderModel

type OrderModel struct {
	OrderBy string `json:"orderBy"`
	Order   string `json:"order"`
}

type PodBriefVo added in v0.9.133

type PodBriefVo struct {
	ServiceId        string             `json:"serviceId"`
	DeploymentName   string             `json:"deploymentName"`
	DeploymentId     string             `json:"deploymentId"`
	PodName          string             `json:"podName"`
	Region           string             `json:"region"`
	City             string             `json:"city"`
	RegionName       string             `json:"regionName"`
	CityName         string             `json:"cityName"`
	Country          string             `json:"country"`
	CountryName      string             `json:"countryName"`
	RegionId         string             `json:"regionId"`
	Labels           map[string]string  `json:"labels"`
	Status           string             `json:"status"`
	Cpu              int                `json:"cpu"`
	Mem              int                `json:"mem"`
	IngressBandwidth string             `json:"ingressBandwidth"`
	PublicIp         string             `json:"publicIp"`
	Ipv6PublicIp     string             `json:"ipv6PublicIp"`
	InternalIp       string             `json:"internalIp"`
	ImageList        []string           `json:"imageList"`
	Containers       []ContainerDetails `json:"containers"`
}

type PodDetailVo added in v0.9.133

type PodDetailVo struct {
	PodId             string              `json:"podId"`
	Region            string              `json:"region"`
	City              string              `json:"city"`
	RegionName        string              `json:"regionName"`
	CityName          string              `json:"cityName"`
	Country           string              `json:"country"`
	CountryName       string              `json:"countryName"`
	RegionId          string              `json:"regionId"`
	Labels            map[string]string   `json:"labels"`
	Status            string              `json:"status"`
	Cpu               int                 `json:"cpu"`
	Mem               int                 `json:"mem"`
	IngressBandwidth  string              `json:"ingressBandwidth"`
	PublicIp          string              `json:"publicIp"`
	PodIp             string              `json:"podIp"`
	Ipv6PublicIp      string              `json:"ipv6PublicIp"`
	InternalIp        string              `json:"internalIp"`
	ImageList         []string            `json:"imageList"`
	PodDataStorage    int                 `json:"podDataStorage"`
	PodEventDetails   []PodEventDetails   `json:"podEventDetails"`
	Containers        []ContainerDetails  `json:"containers"`
	ContainerStatuses []V1ContainerStatus `json:"containerStatuses"`
	CreateTime        string              `json:"createTime"`
}

type PodEventDetails added in v0.9.133

type PodEventDetails struct {
	EventName    string `json:"eventName"`
	EventType    string `json:"eventType"`
	EventMessage string `json:"eventMessage"`
}

type Port

type Port struct {
	Protocol Protocol `json:"protocol,omitempty"`
	Port     int      `json:"port,omitempty"`
}

type PortGroup

type PortGroup struct {
	Port        int `json:"port,omitempty"`
	BackendPort int `json:"backendPort,omitempty"`
}

type PortTypeList added in v0.9.133

type PortTypeList struct {
	Port int    `json:"port,omitempty"`
	Type string `json:"type,omitempty"`
}

type PostHttpReq

type PostHttpReq struct {
	Url    string
	Body   interface{}
	Result interface{}
	Params map[string]string
}

type Protocol

type Protocol string
const (
	ProtocolTcp   Protocol = "TCP"
	ProtocolUdp   Protocol = "UDP"
	ProtocolHttp  Protocol = "HTTP"
	ProtocolHttps Protocol = "HTTPS"
	ProtocolSsl   Protocol = "SSL"
)

type Region

type Region string
const (
	RegionCentralChina Region = "CENTRAL_CHINA"
	RegionEastChina    Region = "EAST_CHINA"
	RegionNorthChina   Region = "NORTH_CHINA"
	RegionSouthChina   Region = "SOUTH_CHINA"
	RegionNorthEast    Region = "NORTH_EAST"
	RegionNorthWest    Region = "NORTH_WEST"
	RegionSouthWest    Region = "SOUTH_WEST"
)

type RegionInfo added in v0.9.72

type RegionInfo struct {
	Region      Region     `json:"region"`
	Name        string     `json:"name"`
	Country     string     `json:"country"`
	CountryName string     `json:"countryName"`
	CityList    []CityInfo `json:"cityList"`
}

type ReinstallVmInstanceArg

type ReinstallVmInstanceArg struct {
	AdminPass     string     `json:"adminPass,omitempty"`
	ImageId       string     `json:"imageId,omitempty"`
	ImageType     ImageType  `json:"imageType,omitempty"`
	ResetDataDisk bool       `json:"resetDataDisk,omitempty"`
	KeyConfig     *KeyConfig `json:"keyConfig,omitempty"`
}

type ReinstallVmInstanceResult

type ReinstallVmInstanceResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details VmInstanceBriefVo `json:"details"`
}

type ReplicaTemplate added in v0.9.133

type ReplicaTemplate struct {
	Type       string `json:"type,omitempty"`
	TemplateId string `json:"templateId,omitempty"`
}

type ResourceBriefVo

type ResourceBriefVo struct {
	ServiceId            string                `json:"serviceId"`
	ServiceName          string                `json:"serviceName"`
	ResourceId           string                `json:"resourceId"`
	ResourceName         string                `json:"resourceName"`
	Labels               map[string]string     `json:"labels"`
	TotalCpu             int                   `json:"totalCpu"`
	TotalMem             int                   `json:"totalMem"`
	TotalGpu             int                   `json:"totalGpu"`
	TotalPods            int                   `json:"totalPods"`
	RunningPods          int                   `json:"runningPods"`
	TotalDeploy          int                   `json:"totalDeploy"`
	IngressBandwidth     string                `json:"ingressBandwidth"`
	DeployInstance       DeploymentInstance    `json:"deployInstance"`
	ImageList            []string              `json:"imageList"`
	Containers           []ContainerDetails    `json:"containers"`
	ImageRegistrySecrets []ImageRegistrySecret `json:"imageRegistrySecrets"`
}

type ResourceStatus added in v0.9.72

type ResourceStatus string

type Secret

type Secret EmptyDir

type SecurityGroup added in v0.9.133

type SecurityGroup struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Desc string `json:"desc"`
}

type ServiceAction

type ServiceAction string
const (
	ServiceActionStart ServiceAction = "start"
	ServiceActionStop  ServiceAction = "stop"
)

type ServiceActionResult

type ServiceActionResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details map[string]string `json:"details"`
}

type ServiceBatchOperateArgs

type ServiceBatchOperateArgs struct {
	IdList []string `json:"idList,omitempty"`
	Action string   `json:"action,omitempty"`
}

type ServiceBatchOperateResult

type ServiceBatchOperateResult struct {
	Result  bool          `json:"result"`
	Action  string        `json:"action"`
	Details []OperationVo `json:"details"`
}

type ServiceBriefVo

type ServiceBriefVo struct {
	ServiceId       string               `json:"serviceId"`
	ServiceName     string               `json:"serviceName"`
	Level           string               `json:"level"`
	Status          string               `json:"status"`
	TotalCpu        int                  `json:"totalCpu"`
	TotalMen        int                  `json:"totalMem"`
	TotalGpu        int                  `json:"totalGpu"`
	TotalDisk       int                  `json:"totalDisk"`
	Regions         int                  `json:"regions"`
	TotalPods       int                  `json:"totalPods"`
	RunningPods     int                  `json:"runningPods"`
	TagsMap         []Tag                `json:"tagMap"`
	DeployInstances []DeploymentInstance `json:"deployInstances"`
	CreateTime      string               `json:"createTime"`
	LastUpdateTime  string               `json:"lastUpdateTime"`
}

type ServiceDetailsVo

type ServiceDetailsVo struct {
	ServiceId            string                `json:"serviceId"`
	ServiceName          string                `json:"serviceName"`
	Status               string                `json:"status"`
	TotalCpu             int                   `json:"totalCpu"`
	TotalMem             int                   `json:"totalMem"`
	TotalGpu             int                   `json:"totalGpu"`
	TotalDisk            int                   `json:"totalDisk"`
	TotalPods            int                   `json:"totalPods"`
	RunningPods          int                   `json:"runningPods"`
	RegionSize           int                   `json:"regionSize"`
	TagsMap              []Tag                 `json:"tagsMap"`
	DeployInstances      []DeploymentInstance  `json:"deployInstances"`
	ResourceBriefVos     []ResourceBriefVo     `json:"resourceBriefVos"`
	ImageRegistrySecrets []ImageRegistrySecret `json:"imageRegistrySecrets"`
	LogCollectDetail     LogCollectDetail      `json:"logCollectDetail"`
	CreateTime           string                `json:"createTime"`
	LastUpdateTime       string                `json:"lastUpdateTime"`
}

type ServiceMetricsResult

type ServiceMetricsResult struct {
	Metrics    []Metric `json:"metrics"`
	MaxValue   float64  `json:"maxValue"`
	AvgValue   float64  `json:"avgValue"`
	TotalValue float64  `json:"totalValue"`
}

type ServiceProvider

type ServiceProvider string
const (
	ServiceChinaMobile  ServiceProvider = "CHINA_MOBILE"
	ServiceChinaUnicom  ServiceProvider = "CHINA_UNICOM"
	ServiceChinaTelecom ServiceProvider = "CHINA_TELECOM"
	ServiceTripleLine   ServiceProvider = "TRIPLE_LINE"
)

type ServiceProviderInfo added in v0.9.72

type ServiceProviderInfo struct {
	ServiceProvider ServiceProvider `json:"serviceProvider"`
	Name            string          `json:"name"`
	RegionId        string          `json:"regionId"`
	Capability      []string        `json:"capability"`
}

type Stats

type Stats struct {
	Health   bool     `json:"health"`
	Port     int      `json:"port"`
	Protocol Protocol `json:"protocol"`
}

type Subnet added in v0.9.133

type Subnet struct {
	SubnetId    string `json:"subnetId"`
	Name        string `json:"name"`
	Cidr        string `json:"cidr"`
	Description string `json:"description"`
}

type SystemVolumeConfig

type SystemVolumeConfig struct {
	VolumeType DiskType `json:"volumeType,omitempty"`
	SizeInGB   int      `json:"sizeInGB,omitempty"`
	Name       string   `json:"name,omitempty"`
	PvcName    string   `json:"pvcName,omitempty"`
}

type Tag

type Tag struct {
	TagKey   string `json:"tagKey,omitempty"`
	TagValue string `json:"tagValue,omitempty"`
}

type UpdateBecAppBlbTcpListenerRequest added in v0.9.133

type UpdateBecAppBlbTcpListenerRequest struct {
	Scheduler         string `json:"scheduler,omitempty"`
	TcpSessionTimeout int    `json:"tcpSessionTimeout,omitempty"`
}

type UpdateBecAppBlbUdpListenerRequest added in v0.9.133

type UpdateBecAppBlbUdpListenerRequest struct {
	Scheduler         string `json:"scheduler,omitempty"`
	UdpSessionTimeout int    `json:"udpSessionTimeout,omitempty"`
}

type UpdateBecVmForm

type UpdateBecVmForm struct {
	Type              UpdateVmType        `json:"type,omitempty"`
	Cpu               int                 `json:"cpu,omitempty"`
	Memory            int                 `json:"memory,omitempty"`
	NeedRestart       bool                `json:"needRestart,omitempty"`
	AdminPass         string              `json:"adminPass,omitempty"`
	ImageId           string              `json:"imageId,omitempty"`
	Bandwidth         int                 `json:"bandwidth,omitempty"`
	ImageType         ImageType           `json:"imageType,omitempty"`
	VmName            string              `json:"vmName,omitempty"`
	Hostname          string              `json:"hostname,omitempty"`
	VmId              string              `json:"vmId,omitempty"`
	DataVolumeList    *[]VolumeConfig     `json:"dataVolumeList,omitempty"`
	SecurityGroupIds  []string            `json:"securityGroupIds,omitempty"`
	SystemVolume      *SystemVolumeConfig `json:"systemVolume,omitempty"`
	KeyConfig         *KeyConfig          `json:"keyConfig,omitempty"`
	DnsConfig         *DnsConfig          `json:"dnsConfig,omitempty"`
	NeedIpv6PublicIp  bool                `json:"needIpv6PublicIp"`
	NetworkConfigList *[]NetworkConfig    `json:"networkConfigList,omitempty"`
}

type UpdateBindPodWeightArgs

type UpdateBindPodWeightArgs struct {
	PodWeightList *[]Backends `json:"podWeightList,omitempty"`
	DeploymentIds []string    `json:"deploymentIds,omitempty"`
}

type UpdateBindPodWeightResult

type UpdateBindPodWeightResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details map[string]string `json:"details"`
}

type UpdateBlbArgs

type UpdateBlbArgs struct {
	BlbName              string `json:"blbName,omitempty"`
	BandwidthInMbpsLimit int    `json:"bandwidthInMbpsLimit,omitempty"`
	Type                 string `json:"type,omitempty"`
}

type UpdateBlbIpGroupBackendPolicyRequest added in v0.9.133

type UpdateBlbIpGroupBackendPolicyRequest struct {
	HealthCheckHost             string `json:"healthCheckHost,omitempty"`
	HealthCheckNormalStatus     string `json:"healthCheckNormalStatus,omitempty"`
	HealthCheckUrlPath          string `json:"healthCheckUrlPath,omitempty"`
	HealthCheckDownRetry        int    `json:"healthCheckDownRetry,omitempty"`
	HealthCheckIntervalInSecond int    `json:"healthCheckIntervalInSecond,omitempty"`
	HealthCheckPort             int    `json:"healthCheckPort,omitempty"`
	HealthCheckTimeoutInSecond  int    `json:"healthCheckTimeoutInSecond,omitempty"`
	HealthCheckUpRetry          int    `json:"healthCheckUpRetry,omitempty"`
	IpGroupId                   string `json:"ipGroupId,omitempty"`
	Id                          string `json:"id,omitempty"`
	UdpHealthCheckString        string `json:"udpHealthCheckString,omitempty"`
}

type UpdateBlbIpGroupMember added in v0.9.133

type UpdateBlbIpGroupMember struct {
	MemberId string `json:"memberId,omitempty"`
	Port     int    `json:"port,omitempty"`
	Weight   int    `json:"weight,omitempty"`
}

type UpdateBlbIpGroupMemberRequest added in v0.9.133

type UpdateBlbIpGroupMemberRequest struct {
	IpGroupId  string                   `json:"ipGroupId,omitempty"`
	MemberList []UpdateBlbIpGroupMember `json:"memberList,omitempty"`
}

type UpdateBlbIpGroupRequest added in v0.9.133

type UpdateBlbIpGroupRequest struct {
	Desc      string `json:"desc,omitempty"`
	Name      string `json:"name,omitempty"`
	IpGroupId string `json:"ipGroupId,omitempty"`
}

type UpdateBlbResult

type UpdateBlbResult struct {
	Result  bool          `json:"result"`
	Action  string        `json:"action"`
	Details BlbInstanceVo `json:"details"`
}

type UpdateDeploymentReplicasRequest added in v0.9.133

type UpdateDeploymentReplicasRequest struct {
	Replicas int `json:"replicas,omitempty"`
}

type UpdateServiceArgs

type UpdateServiceArgs struct {
	Type                 UpdateServiceType      `json:"type,omitempty"`
	DeployInstances      *[]DeploymentInstance  `json:"deployInstances,omitempty"`
	ServiceName          string                 `json:"serviceName,omitempty"`
	NeedIpv6PublicIp     string                 `json:"needIpv6PublicIp,omitempty"`
	Containers           *[]ContainerDetails    `json:"containers,omitempty"`
	ImageRegistrySecrets *[]ImageRegistrySecret `json:"imageRegistrySecrets,omitempty"`
	Bandwidth            int                    `json:"bandwidth,omitempty"`
}

type UpdateServiceResult

type UpdateServiceResult struct {
	Result  bool             `json:"result"`
	Action  string           `json:"action"`
	Details []ServiceBriefVo `json:"details"`
}

type UpdateServiceType

type UpdateServiceType string
const (
	UpdateServiceTypeName         UpdateServiceType = "NAME"
	UpdateServiceTypeReplicas     UpdateServiceType = "REPLICAS"
	UpdateServiceTypeNameResource UpdateServiceType = "RESOURCE"
)

type UpdateVmDeploySetArgs added in v0.9.133

type UpdateVmDeploySetArgs struct {
	InstanceId      string   `json:"instanceId,omitempty"`
	DeploysetIdList []string `json:"deploysetIdList,omitempty"`
}

type UpdateVmDeploymentResult

type UpdateVmDeploymentResult struct {
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
	Details VmInstanceBriefVo `json:"details"`
}

type UpdateVmImageArgs

type UpdateVmImageArgs struct {
	Name string `json:"name,omitempty"`
}

type UpdateVmInstanceArgs added in v0.9.133

type UpdateVmInstanceArgs struct {
	VmId             string                         `json:"vmId,omitempty"`
	Type             string                         `json:"type,omitempty"`
	Spec             string                         `json:"spec,omitempty"`
	Cpu              int                            `json:"cpu,omitempty"`
	Memory           int                            `json:"memory,omitempty"`
	NeedRestart      bool                           `json:"needRestart,omitempty"`
	AdminPass        string                         `json:"adminPass,omitempty"`
	ImageId          string                         `json:"imageId,omitempty"`
	Hostname         string                         `json:"hostname,omitempty"`
	Bandwidth        int                            `json:"bandwidth,omitempty"`
	ImageType        ImageType                      `json:"imageType,omitempty"`
	VmName           string                         `json:"vmName,omitempty"`
	DataVolumeList   *[]VolumeConfig                `json:"dataVolumeList,omitempty"`
	SystemVolume     *SystemVolumeConfig            `json:"systemVolume,omitempty"`
	KeyConfig        *KeyConfig                     `json:"keyConfig,omitempty"`
	DnsConfig        *DnsConfig                     `json:"dnsConfig,omitempty"`
	NeedIpv6PublicIp bool                           `json:"needIpv6PublicIp"`
	NetworkConfig    *NetworkConfigUpdateVmInstance `json:"networkConfig,omitempty"`
	SecurityGroupIds []string                       `json:"securityGroupIds,omitempty"`
}

type UpdateVmServiceArgs

type UpdateVmServiceArgs struct {
	UpdateBecVmForm
	ServiceName     string                `json:"serviceName,omitempty"`
	DeployInstances *[]DeploymentInstance `json:"deployInstances,omitempty"`
	ReplicaTemplate ReplicaTemplate       `json:"replicaTemplate,omitempty"`
}

type UpdateVmServiceResult

type UpdateVmServiceResult struct {
	Details VmServiceBriefVo `json:"details"`
	Result  bool             `json:"result"`
	Action  string           `json:"action"`
}

type UpdateVmType

type UpdateVmType string
const (
	UpdateVmTypeServiceName UpdateVmType = "serviceName"
	UpdateVmTypeVmName      UpdateVmType = "vmName"
	UpdateVmPassWord        UpdateVmType = "password"
	UpdateVmReplicas        UpdateVmType = "replicas"
	UpdateVmResource        UpdateVmType = "resource"
	UpdateVmSecurityGroup   UpdateVmType = "securityGroup"
	UpdateVmHostname        UpdateVmType = "hostname"
)

type V1ConfigMapKeySelector

type V1ConfigMapKeySelector struct {
	Key      string `json:"key,omitempty"`
	Name     string `json:"name,omitempty"`
	Optional bool   `json:"optional,omitempty"`
}

type V1ContainerPort

type V1ContainerPort struct {
	Protocol      string `json:"protocol,omitempty"`
	ContainerPort int    `json:"containerPort,omitempty"`
	HostIP        string `json:"hostIP,omitempty"`
	HostPort      int    `json:"hostPort,omitempty"`
	Name          string `json:"name,omitempty"`
}

type V1ContainerState added in v0.9.133

type V1ContainerState struct {
	Running    V1ContainerStateRunning    `json:"running"`
	Terminated V1ContainerStateTerminated `json:"terminated"`
	Waiting    V1ContainerStateWaiting    `json:"waiting"`
}

type V1ContainerStateRunning added in v0.9.133

type V1ContainerStateRunning struct {
	StartedAt int `json:"startedAt"`
}

type V1ContainerStateTerminated added in v0.9.133

type V1ContainerStateTerminated struct {
	ContainerID string `json:"containerID"`
	ExitCode    int    `json:"exitCode"`
	Signal      int    `json:"signal"`
	StartedAt   int    `json:"startedAt"`
	FinishedAt  int    `json:"finishedAt"`
	Message     string `json:"message"`
	Reason      string `json:"reason"`
}

type V1ContainerStateWaiting added in v0.9.133

type V1ContainerStateWaiting struct {
	Message string `json:"message"`
	Reason  string `json:"reason"`
}

type V1ContainerStatus added in v0.9.133

type V1ContainerStatus struct {
	ContainerID  string           `json:"containerID"`
	Image        string           `json:"image"`
	ImageID      string           `json:"imageID"`
	Name         string           `json:"name"`
	Ready        bool             `json:"ready"`
	RestartCount int              `json:"restartCount"`
	LastState    V1ContainerState `json:"lastState"`
	State        V1ContainerState `json:"state"`
}

type V1EnvVar

type V1EnvVar struct {
	Name      string          `json:"name,omitempty"`
	Value     string          `json:"value,omitempty"`
	ValueFrom *V1EnvVarSource `json:"valueFrom,omitempty"`
}

type V1EnvVarSource

type V1EnvVarSource struct {
	ConfigMapKeyRef  *V1ConfigMapKeySelector  `json:"configMapKeyRef,omitempty"`
	FieldRef         *V1ObjectFieldSelector   `json:"fieldRef,omitempty"`
	ResourceFieldRef *V1ResourceFieldSelector `json:"resourceFieldRef,omitempty"`
	SecretKeyRef     *V1SecretKeySelector     `json:"secretKeyRef,omitempty"`
}

type V1ObjectFieldSelector

type V1ObjectFieldSelector struct {
	ApiVersion string `json:"apiVersion,omitempty"`
	FieldPath  string `json:"fieldPath,omitempty"`
}

type V1ResourceFieldSelector

type V1ResourceFieldSelector struct {
	ContainerName string `json:"containerName,omitempty"`
	Divisor       string `json:"divisor,omitempty"`
	Resource      string `json:"resource,omitempty"`
}

type V1SecretKeySelector

type V1SecretKeySelector struct {
	Key      string `json:"key,omitempty"`
	Name     string `json:"name,omitempty"`
	Optional string `json:"optional,omitempty"`
}

type V1VolumeMount

type V1VolumeMount struct {
	Name             string `json:"name,omitempty"`
	MountPath        string `json:"mountPath,omitempty"`
	ReadOnly         bool   `json:"readOnly,omitempty"`
	MountPropagation string `json:"mountPropagation,omitempty"`
	SubPath          string `json:"subPath,omitempty"`
}

type VmConfigResult

type VmConfigResult struct {
	Cpu             int                `json:"cpu"`
	Mem             int                `json:"mem"`
	Region          Region             `json:"region"`
	ServiceProvider ServiceProvider    `json:"serviceProvider"`
	City            string             `json:"city"`
	RegionId        string             `json:"regionId"`
	NeedPublicIp    bool               `json:"needPublicIp"`
	Bandwidth       string             `json:"bandwidth"`
	OsImage         ImageDetail        `json:"osImage"`
	DataVolumeList  []VolumeConfig     `json:"dataVolumeList"`
	SystemVolume    SystemVolumeConfig `json:"systemVolume"`
}

type VmImageOperateResult

type VmImageOperateResult struct {
	Success bool `json:"success"`
	Result  bool `json:"result"`
}

type VmImageVo

type VmImageVo struct {
	ImageId    string `json:"imageId"`
	Status     string `json:"status"`
	BccImageId string `json:"bccImageId"`
	Name       string `json:"name"`
	AccountId  string `json:"accountId"`
	ImageType  string `json:"imageType"`
	SystemDisk int    `json:"systemDisk"`
	OsType     string `json:"osType"`
	OsVersion  string `json:"osVersion"`
	OsName     string `json:"osName"`
	OsBuild    string `json:"osBuild"`
	OsLang     string `json:"osLang"`
	OsArch     string `json:"osArch"`
	CreateTime string `json:"createTime"`
	UpdateTime string `json:"updateTime"`
}

type VmInstanceBatchOperateAction

type VmInstanceBatchOperateAction string
const (
	VmInstanceBatchOperateStart   VmInstanceBatchOperateAction = "start"
	VmInstanceBatchOperateStop    VmInstanceBatchOperateAction = "stop"
	VmInstanceBatchOperateRestart VmInstanceBatchOperateAction = "restart"
)

type VmInstanceBriefVo

type VmInstanceBriefVo struct {
	IpPackageVo
	VmId             string          `json:"vmId"`
	Uuid             string          `json:"uuid"`
	VmName           string          `json:"vmName"`
	Status           string          `json:"status"`
	Spec             string          `json:"spec"`
	Cpu              int             `json:"cpu"`
	Mem              int             `json:"mem"`
	Gpu              int             `json:"gpu"`
	Region           Region          `json:"region"`
	City             string          `json:"city"`
	RegionId         string          `json:"regionId"`
	NeedPublicIp     bool            `json:"needPublicIp"`
	NeedIpv6PublicIp bool            `json:"needIpv6PublicIp"`
	Bandwidth        string          `json:"bandwidth"`
	OsImage          ImageDetail     `json:"osImage"`
	ServiceId        string          `json:"serviceId"`
	CreateTime       string          `json:"createTime"`
	SecurityGroups   []SecurityGroup `json:"securityGroups"`
	Vpc              Vpc             `json:"vpc"`

	Hostname string `json:"hostname"`
	Dns      string `json:"dns"`
	// contains filtered or unexported fields
}

type VmInstanceDetailsVo

type VmInstanceDetailsVo struct {
	VmInstanceBriefVo
	RootDiskSize   int                `json:"rootDiskSize"`
	DataStorage    int                `json:"dataStorage"`
	DataVolumeList []VolumeConfig     `json:"dataVolumeList"`
	SystemVolume   SystemVolumeConfig `json:"systemVolume"`
	BccKeyPairList []KeyPair          `json:"bccKeyPairList"`
	RackId         string             `json:"rackId,omitempty"`
	HostId         string             `json:"hostId,omitempty"`
	SwitchId       string             `json:"switchId"`
	PrivateIps     []string           `json:"privateIps"`
}

type VmInstanceIdVo added in v0.9.72

type VmInstanceIdVo struct {
	VmId            string `json:"vmId"`
	VmName          string `json:"vmName"`
	Region          string `json:"region"`
	RegionId        string `json:"regionId"`
	City            string `json:"city"`
	ServiceProvider string `json:"serviceProvider"`
}

type VmPrivateIpResult

type VmPrivateIpResult struct {
	Result  IpamResultVo `json:"result"`
	Success bool         `json:"success"`
}

type VmServiceAction

type VmServiceAction string
const (
	VmServiceActionStart VmServiceAction = "start"
	VmServiceActionStop  VmServiceAction = "stop"
)

type VmServiceActionResult

type VmServiceActionResult struct {
	Details map[string]string `json:"details"`
	Result  bool              `json:"result"`
	Action  string            `json:"action"`
}

type VmServiceBatchAction

type VmServiceBatchAction string
const (
	VmServiceBatchStart VmServiceBatchAction = "start"
	VmServiceBatchStop  VmServiceBatchAction = "stop"
)

type VmServiceBatchActionArgs

type VmServiceBatchActionArgs struct {
	IdList []string             `json:"idList,omitempty"`
	Action VmServiceBatchAction `json:"action,omitempty"`
}

type VmServiceBatchActionResult

type VmServiceBatchActionResult struct {
	Result  bool          `json:"result"`
	Action  string        `json:"action"`
	Details []OperationVo `json:"details"`
}

type VmServiceBriefVo

type VmServiceBriefVo struct {
	ServiceId        string               `json:"serviceId"`
	ServiceName      string               `json:"serviceName"`
	Status           string               `json:"status"`
	TotalCpu         int                  `json:"totalCpu"`
	TotalMem         int                  `json:"totalMem"`
	TotalDisk        int                  `json:"totalDisk"`
	TotalRootDisk    int                  `json:"totalRootDisk"`
	Regions          int                  `json:"regions"`
	DeployInstances  []DeploymentInstance `json:"deployInstances"`
	TotalInstances   int                  `json:"totalInstances"`
	RunningInstances int                  `json:"runningInstances"`
	OsImage          ImageDetail          `json:"osImage"`
	CreateTime       string               `json:"createTime"`
	TotalGpu         int                  `json:"totalGpu"`
	Instances        []VmInstanceIdVo     `json:"instances"`
}

type VmServiceDetailsVo

type VmServiceDetailsVo struct {
	VmServiceBriefVo
	Bandwidth        string         `json:"bandwidth"`
	TotalBandwidth   string         `json:"totalBandwidth"`
	DataVolumeList   []VolumeConfig `json:"dataVolumeList"`
	SystemVolumeList []VolumeConfig `json:"systemVolumeList"`
}

type Volume

type Volume struct {
	EmptyDir             *[]EmptyDir             `json:"emptyDir,omitempty"`
	ConfigMap            *[]ConfigFile           `json:"configMap,omitempty"`
	Secret               *[]Secret               `json:"secret,omitempty"`
	VolumeClaimTemplates *[]VolumeClaimTemplates `json:"volumeClaimTemplates,omitempty"`
}

type VolumeClaimTemplates

type VolumeClaimTemplates struct {
	Name        string `json:"name,omitempty"`
	StorageSize int    `json:"storageSize,omitempty"`
	DiskType    string `json:"diskType,omitempty"`
}

type VolumeConfig

type VolumeConfig struct {
	Name            string   `json:"name,omitempty"`
	VolumeType      DiskType `json:"volumeType,omitempty"`
	SizeInGB        int      `json:"sizeInGB,omitempty"`
	PvcName         string   `json:"pvcName,omitempty"`
	PassthroughCode string   `json:"passthroughCode,omitempty"`
}

type Vpc added in v0.9.133

type Vpc struct {
	VpcId       string `json:"vpcId"`
	Name        string `json:"name"`
	Cidr        string `json:"cidr"`
	Description string `json:"description"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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