model

package
v0.1.118 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentStatusInfo

type AgentStatusInfo struct {

	// 机器id
	InstanceId *string `json:"instance_id,omitempty"`

	// uniagent运行状态,none无,running运行中,silent静默中,unknown故障
	UniagentStatus *AgentStatusInfoUniagentStatus `json:"uniagent_status,omitempty"`

	// 插件信息列表
	Extensions *[]ExtensionInfo `json:"extensions,omitempty"`
}

func (AgentStatusInfo) String

func (o AgentStatusInfo) String() string

type AgentStatusInfoUniagentStatus

type AgentStatusInfoUniagentStatus struct {
	// contains filtered or unexported fields
}

func (AgentStatusInfoUniagentStatus) MarshalJSON

func (c AgentStatusInfoUniagentStatus) MarshalJSON() ([]byte, error)

func (*AgentStatusInfoUniagentStatus) UnmarshalJSON

func (c *AgentStatusInfoUniagentStatus) UnmarshalJSON(b []byte) error

func (AgentStatusInfoUniagentStatus) Value

type BatchCreateAgentInvocationsRequest

type BatchCreateAgentInvocationsRequest struct {
	Body *BatchCreateInvocationRequestBody `json:"body,omitempty"`
}

BatchCreateAgentInvocationsRequest Request Object

func (BatchCreateAgentInvocationsRequest) String

type BatchCreateAgentInvocationsResponse

type BatchCreateAgentInvocationsResponse struct {

	// 创建任务的信息列表
	Invocations    *[]BatchCreateInvocationInfo `json:"invocations,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

BatchCreateAgentInvocationsResponse Response Object

func (BatchCreateAgentInvocationsResponse) String

type BatchCreateInvocationInfo

type BatchCreateInvocationInfo struct {

	// 机器id
	InstanceId *string `json:"instance_id,omitempty"`

	// 任务id
	InvocationId *string `json:"invocation_id,omitempty"`

	// 任务结果, successful成功,error失败
	RetStatus *BatchCreateInvocationInfoRetStatus `json:"ret_status,omitempty"`

	// 错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 错误信息
	ErrorMsg *string `json:"error_msg,omitempty"`
}

func (BatchCreateInvocationInfo) String

func (o BatchCreateInvocationInfo) String() string

type BatchCreateInvocationInfoRetStatus

type BatchCreateInvocationInfoRetStatus struct {
	// contains filtered or unexported fields
}

func (BatchCreateInvocationInfoRetStatus) MarshalJSON

func (c BatchCreateInvocationInfoRetStatus) MarshalJSON() ([]byte, error)

func (*BatchCreateInvocationInfoRetStatus) UnmarshalJSON

func (c *BatchCreateInvocationInfoRetStatus) UnmarshalJSON(b []byte) error

func (BatchCreateInvocationInfoRetStatus) Value

type BatchCreateInvocationInfoRetStatusEnum

type BatchCreateInvocationInfoRetStatusEnum struct {
	SUCCESSFUL BatchCreateInvocationInfoRetStatus
	ERROR      BatchCreateInvocationInfoRetStatus
}

func GetBatchCreateInvocationInfoRetStatusEnum

func GetBatchCreateInvocationInfoRetStatusEnum() BatchCreateInvocationInfoRetStatusEnum

type BatchCreateInvocationRequestBody

type BatchCreateInvocationRequestBody struct {

	// 主机id列表(INSTALL和UPDATE时必须)
	InstanceIds *[]string `json:"instance_ids,omitempty"`

	// 任务类型,INSTALL 安装,UPDATE升级,ROLLBACK回退,RETRY重试
	InvocationType BatchCreateInvocationRequestBodyInvocationType `json:"invocation_type"`

	// 任务对象,目前仅支持telescope
	InvocationTarget *BatchCreateInvocationRequestBodyInvocationTarget `json:"invocation_target,omitempty"`

	// 任务ID列表(ROLLBACK和RETRY时必须)
	InvocationIds *[]string `json:"invocation_ids,omitempty"`

	// 插件升级时需要选择升级“基础版本”还是“增强版本”,传值“BASIC_VERSION”表示升级成基础版本,传值“ADVANCE_VERSION”表示升级成增强版本
	VersionType *BatchCreateInvocationRequestBodyVersionType `json:"version_type,omitempty"`

	// Agent任务接口调用源,CES表示由Console调用,APICOM_BMS表示由裸金属服务器调用,ADMIN_SERVER表示由运维平台调用
	Origin *BatchCreateInvocationRequestBodyOrigin `json:"origin,omitempty"`
}

func (BatchCreateInvocationRequestBody) String

type BatchCreateInvocationRequestBodyInvocationTarget

type BatchCreateInvocationRequestBodyInvocationTarget struct {
	// contains filtered or unexported fields
}

func (BatchCreateInvocationRequestBodyInvocationTarget) MarshalJSON

func (*BatchCreateInvocationRequestBodyInvocationTarget) UnmarshalJSON

func (BatchCreateInvocationRequestBodyInvocationTarget) Value

type BatchCreateInvocationRequestBodyInvocationTargetEnum

type BatchCreateInvocationRequestBodyInvocationTargetEnum struct {
	TELESCOPE BatchCreateInvocationRequestBodyInvocationTarget
}

type BatchCreateInvocationRequestBodyInvocationType

type BatchCreateInvocationRequestBodyInvocationType struct {
	// contains filtered or unexported fields
}

func (BatchCreateInvocationRequestBodyInvocationType) MarshalJSON

func (*BatchCreateInvocationRequestBodyInvocationType) UnmarshalJSON

func (BatchCreateInvocationRequestBodyInvocationType) Value

type BatchCreateInvocationRequestBodyOrigin

type BatchCreateInvocationRequestBodyOrigin struct {
	// contains filtered or unexported fields
}

func (BatchCreateInvocationRequestBodyOrigin) MarshalJSON

func (c BatchCreateInvocationRequestBodyOrigin) MarshalJSON() ([]byte, error)

func (*BatchCreateInvocationRequestBodyOrigin) UnmarshalJSON

func (c *BatchCreateInvocationRequestBodyOrigin) UnmarshalJSON(b []byte) error

func (BatchCreateInvocationRequestBodyOrigin) Value

type BatchCreateInvocationRequestBodyVersionType

type BatchCreateInvocationRequestBodyVersionType struct {
	// contains filtered or unexported fields
}

func (BatchCreateInvocationRequestBodyVersionType) MarshalJSON

func (*BatchCreateInvocationRequestBodyVersionType) UnmarshalJSON

func (BatchCreateInvocationRequestBodyVersionType) Value

type BatchCreateInvocationRequestBodyVersionTypeEnum

type BatchCreateInvocationRequestBodyVersionTypeEnum struct {
	BASIC_VERSION   BatchCreateInvocationRequestBodyVersionType
	ADVANCE_VERSION BatchCreateInvocationRequestBodyVersionType
}

func GetBatchCreateInvocationRequestBodyVersionTypeEnum

func GetBatchCreateInvocationRequestBodyVersionTypeEnum() BatchCreateInvocationRequestBodyVersionTypeEnum

type ExtensionInfo

type ExtensionInfo struct {

	// 插件名称
	Name *string `json:"name,omitempty"`

	// 插件状态, none未安装,running运行中,stopped已停止,fault故障(进程异常),unknown故障(连接异常)
	Status *ExtensionInfoStatus `json:"status,omitempty"`

	// 插件版本
	Version *string `json:"version,omitempty"`
}

func (ExtensionInfo) String

func (o ExtensionInfo) String() string

type ExtensionInfoStatus

type ExtensionInfoStatus struct {
	// contains filtered or unexported fields
}

func (ExtensionInfoStatus) MarshalJSON

func (c ExtensionInfoStatus) MarshalJSON() ([]byte, error)

func (*ExtensionInfoStatus) UnmarshalJSON

func (c *ExtensionInfoStatus) UnmarshalJSON(b []byte) error

func (ExtensionInfoStatus) Value

func (c ExtensionInfoStatus) Value() string

type ExtensionInfoStatusEnum

type ExtensionInfoStatusEnum struct {
	NONE    ExtensionInfoStatus
	RUNNING ExtensionInfoStatus
	STOPPED ExtensionInfoStatus
	FAULT   ExtensionInfoStatus
	UNKNOWN ExtensionInfoStatus
}

func GetExtensionInfoStatusEnum

func GetExtensionInfoStatusEnum() ExtensionInfoStatusEnum

type InvocationInfo

type InvocationInfo struct {

	// 任务id
	InvocationId *string `json:"invocation_id,omitempty"`

	// 主机id
	InstanceId *string `json:"instance_id,omitempty"`

	// 主机名称
	InstanceName *string `json:"instance_name,omitempty"`

	// 主机类型,ECS弹性云服务器,BMS裸金属服务器
	InstanceType *InvocationInfoInstanceType `json:"instance_type,omitempty"`

	// 内网ip列表
	IntranetIps *[]string `json:"intranet_ips,omitempty"`

	// 弹性公网ip列表
	ElasticIps *[]string `json:"elastic_ips,omitempty"`

	// 任务类型(INSTALL 安装,UPDATE 升级,ROLLBACK 回滚,RETRY 重试)
	InvocationType *InvocationInfoInvocationType `json:"invocation_type,omitempty"`

	// 任务状态,PENDING 待执行,RUNNING 运行中,TIMEOUT 超时,FAILED 失败,SUCCEEDED 成功,CANCELED 取消,ROLLBACKED已回退
	InvocationStatus *InvocationInfoInvocationStatus `json:"invocation_status,omitempty"`

	// 任务对象,目前仅支持telescope
	InvocationTarget *InvocationInfoInvocationTarget `json:"invocation_target,omitempty"`

	// 任务创建时间
	CreateTime *int64 `json:"create_time,omitempty"`

	// 任务更新时间
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 当前版本
	CurrentVersion *string `json:"current_version,omitempty"`

	// 目标版本
	TargetVersion *string `json:"target_version,omitempty"`
}

func (InvocationInfo) String

func (o InvocationInfo) String() string

type InvocationInfoInstanceType

type InvocationInfoInstanceType struct {
	// contains filtered or unexported fields
}

func (InvocationInfoInstanceType) MarshalJSON

func (c InvocationInfoInstanceType) MarshalJSON() ([]byte, error)

func (*InvocationInfoInstanceType) UnmarshalJSON

func (c *InvocationInfoInstanceType) UnmarshalJSON(b []byte) error

func (InvocationInfoInstanceType) Value

type InvocationInfoInstanceTypeEnum

type InvocationInfoInstanceTypeEnum struct {
	ECS InvocationInfoInstanceType
	BMS InvocationInfoInstanceType
}

func GetInvocationInfoInstanceTypeEnum

func GetInvocationInfoInstanceTypeEnum() InvocationInfoInstanceTypeEnum

type InvocationInfoInvocationStatus

type InvocationInfoInvocationStatus struct {
	// contains filtered or unexported fields
}

func (InvocationInfoInvocationStatus) MarshalJSON

func (c InvocationInfoInvocationStatus) MarshalJSON() ([]byte, error)

func (*InvocationInfoInvocationStatus) UnmarshalJSON

func (c *InvocationInfoInvocationStatus) UnmarshalJSON(b []byte) error

func (InvocationInfoInvocationStatus) Value

type InvocationInfoInvocationTarget

type InvocationInfoInvocationTarget struct {
	// contains filtered or unexported fields
}

func (InvocationInfoInvocationTarget) MarshalJSON

func (c InvocationInfoInvocationTarget) MarshalJSON() ([]byte, error)

func (*InvocationInfoInvocationTarget) UnmarshalJSON

func (c *InvocationInfoInvocationTarget) UnmarshalJSON(b []byte) error

func (InvocationInfoInvocationTarget) Value

type InvocationInfoInvocationTargetEnum

type InvocationInfoInvocationTargetEnum struct {
	TELESCOPE InvocationInfoInvocationTarget
}

func GetInvocationInfoInvocationTargetEnum

func GetInvocationInfoInvocationTargetEnum() InvocationInfoInvocationTargetEnum

type InvocationInfoInvocationType

type InvocationInfoInvocationType struct {
	// contains filtered or unexported fields
}

func (InvocationInfoInvocationType) MarshalJSON

func (c InvocationInfoInvocationType) MarshalJSON() ([]byte, error)

func (*InvocationInfoInvocationType) UnmarshalJSON

func (c *InvocationInfoInvocationType) UnmarshalJSON(b []byte) error

func (InvocationInfoInvocationType) Value

type ListAgentInvocationsRequest

type ListAgentInvocationsRequest struct {

	// 主机id
	InstanceId *string `json:"instance_id,omitempty"`

	// 主机类型,ECS弹性云服务器,BMS裸金属服务器
	InstanceType *ListAgentInvocationsRequestInstanceType `json:"instance_type,omitempty"`

	// 任务id
	InvocationId *string `json:"invocation_id,omitempty"`

	// 任务类型,INSTALL 安装,UPDATE 升级,ROLLBACK 回退,RETRY 重试
	InvocationType *ListAgentInvocationsRequestInvocationType `json:"invocation_type,omitempty"`

	// 任务对象,目前仅支持telescope
	InvocationTarget *ListAgentInvocationsRequestInvocationTarget `json:"invocation_target,omitempty"`

	// 分页偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 分页大小
	Limit *int32 `json:"limit,omitempty"`
}

ListAgentInvocationsRequest Request Object

func (ListAgentInvocationsRequest) String

type ListAgentInvocationsRequestInstanceType

type ListAgentInvocationsRequestInstanceType struct {
	// contains filtered or unexported fields
}

func (ListAgentInvocationsRequestInstanceType) MarshalJSON

func (c ListAgentInvocationsRequestInstanceType) MarshalJSON() ([]byte, error)

func (*ListAgentInvocationsRequestInstanceType) UnmarshalJSON

func (c *ListAgentInvocationsRequestInstanceType) UnmarshalJSON(b []byte) error

func (ListAgentInvocationsRequestInstanceType) Value

type ListAgentInvocationsRequestInvocationTarget

type ListAgentInvocationsRequestInvocationTarget struct {
	// contains filtered or unexported fields
}

func (ListAgentInvocationsRequestInvocationTarget) MarshalJSON

func (*ListAgentInvocationsRequestInvocationTarget) UnmarshalJSON

func (ListAgentInvocationsRequestInvocationTarget) Value

type ListAgentInvocationsRequestInvocationTargetEnum

type ListAgentInvocationsRequestInvocationTargetEnum struct {
	TELESCOPE ListAgentInvocationsRequestInvocationTarget
}

func GetListAgentInvocationsRequestInvocationTargetEnum

func GetListAgentInvocationsRequestInvocationTargetEnum() ListAgentInvocationsRequestInvocationTargetEnum

type ListAgentInvocationsRequestInvocationType

type ListAgentInvocationsRequestInvocationType struct {
	// contains filtered or unexported fields
}

func (ListAgentInvocationsRequestInvocationType) MarshalJSON

func (*ListAgentInvocationsRequestInvocationType) UnmarshalJSON

func (ListAgentInvocationsRequestInvocationType) Value

type ListAgentInvocationsResponse

type ListAgentInvocationsResponse struct {

	// 任务列表
	Invocations *[]InvocationInfo `json:"invocations,omitempty"`

	// 任务列表总量
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListAgentInvocationsResponse Response Object

func (ListAgentInvocationsResponse) String

type ListAgentStatusRequest

type ListAgentStatusRequest struct {
	Body *ListAgentStatusRequestBody `json:"body,omitempty"`
}

ListAgentStatusRequest Request Object

func (ListAgentStatusRequest) String

func (o ListAgentStatusRequest) String() string

type ListAgentStatusRequestBody

type ListAgentStatusRequestBody struct {

	// 机器实例id列表
	InstanceIds []string `json:"instance_ids"`

	// uniagent运行状态,不传查所有状态,none无,running运行中,silent静默中,unknown故障
	UniagentStatus *ListAgentStatusRequestBodyUniagentStatus `json:"uniagent_status,omitempty"`

	// 插件名称,不传查所有插件,目前仅支持telescope
	ExtensionName *ListAgentStatusRequestBodyExtensionName `json:"extension_name,omitempty"`

	// 插件状态,不传查所有状态, none未安装,running运行中,stopped已停止,fault故障(进程异常),unknown故障(连接异常)
	ExtensionStatus *ListAgentStatusRequestBodyExtensionStatus `json:"extension_status,omitempty"`
}

func (ListAgentStatusRequestBody) String

type ListAgentStatusRequestBodyExtensionName

type ListAgentStatusRequestBodyExtensionName struct {
	// contains filtered or unexported fields
}

func (ListAgentStatusRequestBodyExtensionName) MarshalJSON

func (c ListAgentStatusRequestBodyExtensionName) MarshalJSON() ([]byte, error)

func (*ListAgentStatusRequestBodyExtensionName) UnmarshalJSON

func (c *ListAgentStatusRequestBodyExtensionName) UnmarshalJSON(b []byte) error

func (ListAgentStatusRequestBodyExtensionName) Value

type ListAgentStatusRequestBodyExtensionNameEnum

type ListAgentStatusRequestBodyExtensionNameEnum struct {
	TELESCOPE ListAgentStatusRequestBodyExtensionName
}

func GetListAgentStatusRequestBodyExtensionNameEnum

func GetListAgentStatusRequestBodyExtensionNameEnum() ListAgentStatusRequestBodyExtensionNameEnum

type ListAgentStatusRequestBodyExtensionStatus

type ListAgentStatusRequestBodyExtensionStatus struct {
	// contains filtered or unexported fields
}

func (ListAgentStatusRequestBodyExtensionStatus) MarshalJSON

func (*ListAgentStatusRequestBodyExtensionStatus) UnmarshalJSON

func (ListAgentStatusRequestBodyExtensionStatus) Value

type ListAgentStatusRequestBodyUniagentStatus

type ListAgentStatusRequestBodyUniagentStatus struct {
	// contains filtered or unexported fields
}

func (ListAgentStatusRequestBodyUniagentStatus) MarshalJSON

func (*ListAgentStatusRequestBodyUniagentStatus) UnmarshalJSON

func (c *ListAgentStatusRequestBodyUniagentStatus) UnmarshalJSON(b []byte) error

func (ListAgentStatusRequestBodyUniagentStatus) Value

type ListAgentStatusResponse

type ListAgentStatusResponse struct {

	// agent插件状态列表
	AgentStatus    *[]AgentStatusInfo `json:"agent_status,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListAgentStatusResponse Response Object

func (ListAgentStatusResponse) String

func (o ListAgentStatusResponse) String() string

Jump to

Keyboard shortcuts

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