model

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerNodeInfo

type ContainerNodeInfo struct {

	// 节点id
	HostId *string `json:"host_id,omitempty"`

	// 节点(服务器)名称
	HostName *string `json:"host_name,omitempty"`

	// 服务器状态,包含如下4种。   - ACTIVE :正在运行。   - SHUTOFF :关机。   - BUILDING :创建中。   - ERROR :故障。
	HostStatus *string `json:"host_status,omitempty"`

	// Agent状态,包含如下3种。   - not_register :未注册。   - online :在线。   - offline :离线。
	AgentStatus *string `json:"agent_status,omitempty"`

	// 防护状态,包含如下2种。   - closed :关闭。   - opened :开启。
	ProtectStatus *string `json:"protect_status,omitempty"`
}

节点(服务器)状态列表

func (ContainerNodeInfo) String

func (o ContainerNodeInfo) String() string

type ListContainerNodesRequest

type ListContainerNodesRequest struct {

	// 节点(服务器)名称
	HostName *string `json:"host_name,omitempty"`

	// Agent状态,包含如下3种。   - not_installed :未安装   - online :在线   - offline :离线
	AgentStatus *string `json:"agent_status,omitempty"`

	// 查询返回查询容器节点列表当前页面的数,量默认10
	Limit *int32 `json:"limit,omitempty"`

	// 查询游标,初始传入0
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListContainerNodesRequest) String

func (o ListContainerNodesRequest) String() string

type ListContainerNodesResponse

type ListContainerNodesResponse struct {

	// 容器节点总数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 容器节点列表
	DataList       *[]ContainerNodeInfo `json:"data_list,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListContainerNodesResponse) String

Jump to

Keyboard shortcuts

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