Documentation ¶
Index ¶
- type AppComponentDao
- type ConfigInfoDo
- type ConfigInfoDoStaticStatus
- type ConfigInfoDoStaticStatusEnum
- type ConfigInfoDoType
- type ConfigInfoDoTypeEnum
- type CreateDeployTaskByTemplateRequest
- type CreateDeployTaskByTemplateResponse
- type CreateDeploymentGroupRequest
- type CreateDeploymentGroupResponse
- type CreateDeploymentHostRequest
- type CreateDeploymentHostResponse
- type DeleteDeployTaskRequest
- type DeleteDeployTaskResponse
- type DeleteDeploymentGroupRequest
- type DeleteDeploymentGroupResponse
- type DeleteDeploymentHostRequest
- type DeleteDeploymentHostResponse
- type DeploymentGroup
- type DeploymentGroupDetail
- type DeploymentGroupOs
- type DeploymentGroupOsEnum
- type DeploymentGroupUpdateRequest
- type DeploymentGroupUpdateRequestAutoConnectionTestSwitch
- type DeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum
- type DeploymentHost
- type DeploymentHostAuthorizationBody
- type DeploymentHostAuthorizationBodyTrustedType
- type DeploymentHostAuthorizationBodyTrustedTypeEnum
- type DeploymentHostDetail
- type DeploymentHostDetailOs
- type DeploymentHostDetailOsEnum
- type DeploymentHostInfo
- type DeploymentHostInfoOs
- type DeploymentHostInfoOsEnum
- type DeploymentHostOs
- type DeploymentHostOsEnum
- type DeploymentHostRequest
- type DeploymentUpdateHost
- type DynamicConfigInfo
- type DynamicConfigInfoType
- type DynamicConfigInfoTypeEnum
- type EnvExecutionBody
- type ExecuteRecordV2Body
- type KeyValueDo
- type ListDeployTaskHistoryByDateRequest
- type ListDeployTaskHistoryByDateResponse
- type ListDeployTasksRequest
- type ListDeployTasksResponse
- type ListHostGroupsRequest
- type ListHostGroupsRequestOs
- type ListHostGroupsRequestOsEnum
- type ListHostGroupsRequestSortDir
- type ListHostGroupsRequestSortDirEnum
- type ListHostGroupsResponse
- type ListHostsRequest
- type ListHostsRequestSortDir
- type ListHostsRequestSortDirEnum
- type ListHostsResponse
- type ListTaskSuccessRateRequest
- type ListTaskSuccessRateResponse
- type ParamTypeLimits
- type PermissionGroupDetail
- type PermissionHostDetail
- type ShowDeployTaskDetailRequest
- type ShowDeployTaskDetailResponse
- type ShowDeployTaskDetailResponseState
- type ShowDeployTaskDetailResponseStateEnum
- type ShowDeploymentGroupDetailRequest
- type ShowDeploymentGroupDetailResponse
- type ShowDeploymentHostDetailRequest
- type ShowDeploymentHostDetailResponse
- type ShowDeploymentHostDetailResponseOs
- type ShowDeploymentHostDetailResponseOsEnum
- type ShowProjectSuccessRateRequest
- type ShowProjectSuccessRateResponse
- type StartDeployTaskRequest
- type StartDeployTaskResponse
- type Step
- type TaskInfo
- type TaskInfoState
- type TaskInfoStateEnum
- type TaskSuccessRate
- type TasksSuccessRateQuery
- type TemplateTaskRequestBody
- type UpdateDeploymentGroupRequest
- type UpdateDeploymentGroupResponse
- type UpdateDeploymentHostRequest
- type UpdateDeploymentHostResponse
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppComponentDao ¶
type AppComponentDao struct { // 部署任务id TaskId *string `json:"task_id,omitempty"` // 应用id AppId *string `json:"app_id,omitempty"` // 应用名称 AppName *string `json:"app_name,omitempty"` // 组件id CompId *string `json:"comp_id,omitempty"` // 组件名称 CompName *string `json:"comp_name,omitempty"` // 租户ID DomainId *string `json:"domain_id,omitempty"` // 局点信息 Region *string `json:"region,omitempty"` // 组件是否生效,0表示初始化,1表示执行成功,已生效 State *string `json:"state,omitempty"` }
部署任务和应用组件对应关系
func (AppComponentDao) String ¶
func (o AppComponentDao) String() string
type ConfigInfoDo ¶
type ConfigInfoDo struct { // 部署参数名称,用户可自定义 Name *string `json:"name,omitempty"` // 类型,如果填写name字段,则type必选,若type为空则默认为text Type *ConfigInfoDoType `json:"type,omitempty"` // 描述 Description *string `json:"description,omitempty"` // 部署参数值 Value *string `json:"value,omitempty"` // 部署任务id,创建部署任务后由系统自动生成 TaskId *string `json:"task_id,omitempty"` // 表示是否为静态参数,值为1时不支持执行时变更参数,值为0时支持,并且也会把该参数上报流水线 StaticStatus *ConfigInfoDoStaticStatus `json:"static_status,omitempty"` // 当参数类型为enum枚举类型时,必须填写可选值 Limits *[]ParamTypeLimits `json:"limits,omitempty"` }
部署参数类
func (ConfigInfoDo) String ¶
func (o ConfigInfoDo) String() string
type ConfigInfoDoStaticStatus ¶
type ConfigInfoDoStaticStatus struct {
// contains filtered or unexported fields
}
func (ConfigInfoDoStaticStatus) MarshalJSON ¶
func (c ConfigInfoDoStaticStatus) MarshalJSON() ([]byte, error)
func (*ConfigInfoDoStaticStatus) UnmarshalJSON ¶
func (c *ConfigInfoDoStaticStatus) UnmarshalJSON(b []byte) error
func (ConfigInfoDoStaticStatus) Value ¶ added in v0.0.90
func (c ConfigInfoDoStaticStatus) Value() int32
type ConfigInfoDoStaticStatusEnum ¶
type ConfigInfoDoStaticStatusEnum struct { E_0 ConfigInfoDoStaticStatus E_1 ConfigInfoDoStaticStatus }
func GetConfigInfoDoStaticStatusEnum ¶
func GetConfigInfoDoStaticStatusEnum() ConfigInfoDoStaticStatusEnum
type ConfigInfoDoType ¶
type ConfigInfoDoType struct {
// contains filtered or unexported fields
}
func (ConfigInfoDoType) MarshalJSON ¶
func (c ConfigInfoDoType) MarshalJSON() ([]byte, error)
func (*ConfigInfoDoType) UnmarshalJSON ¶
func (c *ConfigInfoDoType) UnmarshalJSON(b []byte) error
func (ConfigInfoDoType) Value ¶ added in v0.0.90
func (c ConfigInfoDoType) Value() string
type ConfigInfoDoTypeEnum ¶
type ConfigInfoDoTypeEnum struct { TEXT ConfigInfoDoType HOST_GROUP ConfigInfoDoType ENUM ConfigInfoDoType ENCRYPT ConfigInfoDoType }
func GetConfigInfoDoTypeEnum ¶
func GetConfigInfoDoTypeEnum() ConfigInfoDoTypeEnum
type CreateDeployTaskByTemplateRequest ¶
type CreateDeployTaskByTemplateRequest struct {
Body *TemplateTaskRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateDeployTaskByTemplateRequest) String ¶
func (o CreateDeployTaskByTemplateRequest) String() string
type CreateDeployTaskByTemplateResponse ¶
type CreateDeployTaskByTemplateResponse struct { // 部署任务名称 TaskName *string `json:"task_name,omitempty"` // 部署任务id TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateDeployTaskByTemplateResponse) String ¶
func (o CreateDeployTaskByTemplateResponse) String() string
type CreateDeploymentGroupRequest ¶
type CreateDeploymentGroupRequest struct {
Body *DeploymentGroup `json:"body,omitempty"`
}
Request Object
func (CreateDeploymentGroupRequest) String ¶
func (o CreateDeploymentGroupRequest) String() string
type CreateDeploymentGroupResponse ¶
type CreateDeploymentGroupResponse struct { // 主机组ID GroupId *string `json:"group_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateDeploymentGroupResponse) String ¶
func (o CreateDeploymentGroupResponse) String() string
type CreateDeploymentHostRequest ¶
type CreateDeploymentHostRequest struct { // 主机组id GroupId string `json:"group_id"` Body *DeploymentHost `json:"body,omitempty"` }
Request Object
func (CreateDeploymentHostRequest) String ¶
func (o CreateDeploymentHostRequest) String() string
type CreateDeploymentHostResponse ¶
type CreateDeploymentHostResponse struct { // 主机id HostId *string `json:"host_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateDeploymentHostResponse) String ¶
func (o CreateDeploymentHostResponse) String() string
type DeleteDeployTaskRequest ¶
type DeleteDeployTaskRequest struct { // 部署任务id TaskId string `json:"task_id"` }
Request Object
func (DeleteDeployTaskRequest) String ¶
func (o DeleteDeployTaskRequest) String() string
type DeleteDeployTaskResponse ¶
type DeleteDeployTaskResponse struct { // 部署任务id TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteDeployTaskResponse) String ¶
func (o DeleteDeployTaskResponse) String() string
type DeleteDeploymentGroupRequest ¶
type DeleteDeploymentGroupRequest struct { // 主机组id GroupId string `json:"group_id"` }
Request Object
func (DeleteDeploymentGroupRequest) String ¶
func (o DeleteDeploymentGroupRequest) String() string
type DeleteDeploymentGroupResponse ¶
type DeleteDeploymentGroupResponse struct { // 主机组ID GroupId *string `json:"group_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteDeploymentGroupResponse) String ¶
func (o DeleteDeploymentGroupResponse) String() string
type DeleteDeploymentHostRequest ¶
type DeleteDeploymentHostRequest struct { // 主机组id GroupId string `json:"group_id"` // 主机id HostId string `json:"host_id"` }
Request Object
func (DeleteDeploymentHostRequest) String ¶
func (o DeleteDeploymentHostRequest) String() string
type DeleteDeploymentHostResponse ¶
type DeleteDeploymentHostResponse struct { // 主机id HostId *string `json:"host_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteDeploymentHostResponse) String ¶
func (o DeleteDeploymentHostResponse) String() string
type DeploymentGroup ¶
type DeploymentGroup struct { // 主机组名 Name string `json:"name"` // 局点信息 RegionName string `json:"region_name"` // devcloud项目id ProjectId string `json:"project_id"` // 操作信息:windows|linux Os DeploymentGroupOs `json:"os"` // slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id SlaveClusterId *string `json:"slave_cluster_id,omitempty"` // 描述 Description *string `json:"description,omitempty"` }
主机组详细信息
func (DeploymentGroup) String ¶
func (o DeploymentGroup) String() string
type DeploymentGroupDetail ¶
type DeploymentGroupDetail struct { // 主机组id GroupId *string `json:"group_id,omitempty"` // 创建时间 CreatedTime *string `json:"created_time,omitempty"` // 修改时间 UpdatedTime *string `json:"updated_time,omitempty"` // 组内主机数量,一个主机组内最多可添加200台主机 HostCount *int32 `json:"host_count,omitempty"` // devcloud项目名称 ProjectName *string `json:"project_name,omitempty"` // 主机组名 Name *string `json:"name,omitempty"` // 局点信息 RegionName *string `json:"region_name,omitempty"` // devcloud项目id ProjectId *string `json:"project_id,omitempty"` // 操作系统:windows|linux Os *string `json:"os,omitempty"` // 自动连通性验证 0不执行 1每日 2每周 AutoConnectionTestSwitch *int32 `json:"auto_connection_test_switch,omitempty"` // slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id SlaveClusterId *string `json:"slave_cluster_id,omitempty"` // 用户昵称 NickName *string `json:"nick_name,omitempty"` CreatedBy *UserInfo `json:"created_by,omitempty"` UpdatedBy *UserInfo `json:"updated_by,omitempty"` // 描述 Description *string `json:"description,omitempty"` Permission *PermissionGroupDetail `json:"permission,omitempty"` }
主机组详情响应体
func (DeploymentGroupDetail) String ¶
func (o DeploymentGroupDetail) String() string
type DeploymentGroupOs ¶
type DeploymentGroupOs struct {
// contains filtered or unexported fields
}
func (DeploymentGroupOs) MarshalJSON ¶
func (c DeploymentGroupOs) MarshalJSON() ([]byte, error)
func (*DeploymentGroupOs) UnmarshalJSON ¶
func (c *DeploymentGroupOs) UnmarshalJSON(b []byte) error
func (DeploymentGroupOs) Value ¶ added in v0.0.90
func (c DeploymentGroupOs) Value() string
type DeploymentGroupOsEnum ¶
type DeploymentGroupOsEnum struct { WINDOWS DeploymentGroupOs LINUX DeploymentGroupOs }
func GetDeploymentGroupOsEnum ¶
func GetDeploymentGroupOsEnum() DeploymentGroupOsEnum
type DeploymentGroupUpdateRequest ¶
type DeploymentGroupUpdateRequest struct { // 主机组名 Name string `json:"name"` // 描述 Description *string `json:"description,omitempty"` // 自定义slave资源池id SlaveClusterId *string `json:"slave_cluster_id,omitempty"` // 自动连通性验证 0不执行 1每日 2每周 AutoConnectionTestSwitch *DeploymentGroupUpdateRequestAutoConnectionTestSwitch `json:"auto_connection_test_switch,omitempty"` }
func (DeploymentGroupUpdateRequest) String ¶
func (o DeploymentGroupUpdateRequest) String() string
type DeploymentGroupUpdateRequestAutoConnectionTestSwitch ¶
type DeploymentGroupUpdateRequestAutoConnectionTestSwitch struct {
// contains filtered or unexported fields
}
func (DeploymentGroupUpdateRequestAutoConnectionTestSwitch) MarshalJSON ¶
func (c DeploymentGroupUpdateRequestAutoConnectionTestSwitch) MarshalJSON() ([]byte, error)
func (*DeploymentGroupUpdateRequestAutoConnectionTestSwitch) UnmarshalJSON ¶
func (c *DeploymentGroupUpdateRequestAutoConnectionTestSwitch) UnmarshalJSON(b []byte) error
func (DeploymentGroupUpdateRequestAutoConnectionTestSwitch) Value ¶ added in v0.0.90
func (c DeploymentGroupUpdateRequestAutoConnectionTestSwitch) Value() int32
type DeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum ¶
type DeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum struct { E_0 DeploymentGroupUpdateRequestAutoConnectionTestSwitch E_1 DeploymentGroupUpdateRequestAutoConnectionTestSwitch E_2 DeploymentGroupUpdateRequestAutoConnectionTestSwitch }
func GetDeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum ¶
func GetDeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum() DeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum
type DeploymentHost ¶
type DeploymentHost struct { // 主机名称 HostName string `json:"host_name"` // IP,请输入弹性ip格式:161.17.101.12 Ip string `json:"ip"` // ssh端口,如:22 Port int32 `json:"port"` // 操作系统:windows|linux,需要和主机组保持一致 Os DeploymentHostOs `json:"os"` // 是否为代理机 AsProxy bool `json:"as_proxy"` // 代理机id ProxyHostId *string `json:"proxy_host_id,omitempty"` Authorization *DeploymentHostAuthorizationBody `json:"authorization"` // 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机) InstallIcagent *bool `json:"install_icagent,omitempty"` }
主机信息body体
func (DeploymentHost) String ¶
func (o DeploymentHost) String() string
type DeploymentHostAuthorizationBody ¶
type DeploymentHostAuthorizationBody struct { // 用户名,可输入中英文,数字和符号(-_.)。 Username string `json:"username"` // 密码,认证类型为0时,密码必填。 Password *string `json:"password,omitempty"` // 密钥,认证类型为1时,密钥必填 PrivateKey *string `json:"private_key,omitempty"` // 认证类型,0表示使用密码认证,1表示使用密钥认证 TrustedType DeploymentHostAuthorizationBodyTrustedType `json:"trusted_type"` }
登录主机鉴权,使用密码登录则填写密码即可,使用密钥则填写密钥,二选一即可。
func (DeploymentHostAuthorizationBody) String ¶
func (o DeploymentHostAuthorizationBody) String() string
type DeploymentHostAuthorizationBodyTrustedType ¶
type DeploymentHostAuthorizationBodyTrustedType struct {
// contains filtered or unexported fields
}
func (DeploymentHostAuthorizationBodyTrustedType) MarshalJSON ¶
func (c DeploymentHostAuthorizationBodyTrustedType) MarshalJSON() ([]byte, error)
func (*DeploymentHostAuthorizationBodyTrustedType) UnmarshalJSON ¶
func (c *DeploymentHostAuthorizationBodyTrustedType) UnmarshalJSON(b []byte) error
func (DeploymentHostAuthorizationBodyTrustedType) Value ¶ added in v0.0.90
func (c DeploymentHostAuthorizationBodyTrustedType) Value() int32
type DeploymentHostAuthorizationBodyTrustedTypeEnum ¶
type DeploymentHostAuthorizationBodyTrustedTypeEnum struct { E_0 DeploymentHostAuthorizationBodyTrustedType E_1 DeploymentHostAuthorizationBodyTrustedType }
func GetDeploymentHostAuthorizationBodyTrustedTypeEnum ¶
func GetDeploymentHostAuthorizationBodyTrustedTypeEnum() DeploymentHostAuthorizationBodyTrustedTypeEnum
type DeploymentHostDetail ¶
type DeploymentHostDetail struct { // 主机组id GroupId string `json:"group_id"` // 主机名称 HostName string `json:"host_name"` // IP,请输入弹性ip格式:161.17.101.12 Ip string `json:"ip"` // ssh端口,如:22 Port int32 `json:"port"` // 操作系统:windows|linux,需要和主机组保持一致 Os DeploymentHostDetailOs `json:"os"` // 是否为代理机 AsProxy bool `json:"as_proxy"` // 代理机id ProxyHostId *string `json:"proxy_host_id,omitempty"` Authorization *DeploymentHostAuthorizationBody `json:"authorization"` // 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机) InstallIcagent *bool `json:"install_icagent,omitempty"` // 主机ID HostId *string `json:"host_id,omitempty"` ProxyHost *DeploymentHostDetail `json:"proxy_host,omitempty"` // 主机组名 GroupName *string `json:"group_name,omitempty"` // devcloud项目id ProjectId *string `json:"project_id,omitempty"` // devcloud项目名称 ProjectName *string `json:"project_name,omitempty"` Permission *PermissionHostDetail `json:"permission,omitempty"` // 更新时间 UpdateTime *string `json:"update_time,omitempty"` // 最后连接时间 LastestConnectionTime *string `json:"lastest_connection_time,omitempty"` // 连接状态 ConnectionStatus *string `json:"connection_status,omitempty"` // 拥有者名称 OwnerName *string `json:"owner_name,omitempty"` // 维护者id UpdatorId *string `json:"updator_id,omitempty"` // 创建时间 CreateTime *string `json:"create_time,omitempty"` // 昵称 NickName *string `json:"nick_name,omitempty"` // 拥有者id OwnerId *string `json:"owner_id,omitempty"` // 维护者名称 UpdatorName *string `json:"updator_name,omitempty"` // 连接结果 ConnectionResult *string `json:"connection_result,omitempty"` }
主机信息详情
func (DeploymentHostDetail) String ¶
func (o DeploymentHostDetail) String() string
type DeploymentHostDetailOs ¶
type DeploymentHostDetailOs struct {
// contains filtered or unexported fields
}
func (DeploymentHostDetailOs) MarshalJSON ¶
func (c DeploymentHostDetailOs) MarshalJSON() ([]byte, error)
func (*DeploymentHostDetailOs) UnmarshalJSON ¶
func (c *DeploymentHostDetailOs) UnmarshalJSON(b []byte) error
func (DeploymentHostDetailOs) Value ¶ added in v0.0.90
func (c DeploymentHostDetailOs) Value() string
type DeploymentHostDetailOsEnum ¶
type DeploymentHostDetailOsEnum struct { WINDOWS DeploymentHostDetailOs LINUX DeploymentHostDetailOs }
func GetDeploymentHostDetailOsEnum ¶
func GetDeploymentHostDetailOsEnum() DeploymentHostDetailOsEnum
type DeploymentHostInfo ¶
type DeploymentHostInfo struct { // 主机组id GroupId string `json:"group_id"` // 主机名称 HostName string `json:"host_name"` // IP,请输入弹性ip格式:161.17.101.12 Ip string `json:"ip"` // ssh端口,如:22 Port int32 `json:"port"` // 操作系统:windows|linux,需要和主机组保持一致 Os DeploymentHostInfoOs `json:"os"` // 是否为代理机 AsProxy bool `json:"as_proxy"` // 代理机id ProxyHostId *string `json:"proxy_host_id,omitempty"` Authorization *DeploymentHostAuthorizationBody `json:"authorization"` // 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机) InstallIcagent *bool `json:"install_icagent,omitempty"` }
主机信息body体
func (DeploymentHostInfo) String ¶
func (o DeploymentHostInfo) String() string
type DeploymentHostInfoOs ¶
type DeploymentHostInfoOs struct {
// contains filtered or unexported fields
}
func (DeploymentHostInfoOs) MarshalJSON ¶
func (c DeploymentHostInfoOs) MarshalJSON() ([]byte, error)
func (*DeploymentHostInfoOs) UnmarshalJSON ¶
func (c *DeploymentHostInfoOs) UnmarshalJSON(b []byte) error
func (DeploymentHostInfoOs) Value ¶ added in v0.0.90
func (c DeploymentHostInfoOs) Value() string
type DeploymentHostInfoOsEnum ¶
type DeploymentHostInfoOsEnum struct { WINDOWS DeploymentHostInfoOs LINUX DeploymentHostInfoOs }
func GetDeploymentHostInfoOsEnum ¶
func GetDeploymentHostInfoOsEnum() DeploymentHostInfoOsEnum
type DeploymentHostOs ¶
type DeploymentHostOs struct {
// contains filtered or unexported fields
}
func (DeploymentHostOs) MarshalJSON ¶
func (c DeploymentHostOs) MarshalJSON() ([]byte, error)
func (*DeploymentHostOs) UnmarshalJSON ¶
func (c *DeploymentHostOs) UnmarshalJSON(b []byte) error
func (DeploymentHostOs) Value ¶ added in v0.0.90
func (c DeploymentHostOs) Value() string
type DeploymentHostOsEnum ¶
type DeploymentHostOsEnum struct { WINDOWS DeploymentHostOs LINUX DeploymentHostOs }
func GetDeploymentHostOsEnum ¶
func GetDeploymentHostOsEnum() DeploymentHostOsEnum
type DeploymentHostRequest ¶
type DeploymentHostRequest struct { // 主机名称 HostName string `json:"host_name"` // IP,请输入弹性ip格式:161.17.101.12 Ip string `json:"ip"` // ssh端口,如:22 Port int32 `json:"port"` // 是否为代理机 AsProxy bool `json:"as_proxy"` // 代理机id ProxyHostId *string `json:"proxy_host_id,omitempty"` Authorization *DeploymentHostAuthorizationBody `json:"authorization"` // 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机) InstallIcagent *bool `json:"install_icagent,omitempty"` // 是否将当前主机的密码信息同步到同一项目下其他主机组中具有相同IP、用户名、端口的主机。 Sync *bool `json:"sync,omitempty"` }
主机信息
func (DeploymentHostRequest) String ¶
func (o DeploymentHostRequest) String() string
type DeploymentUpdateHost ¶
type DeploymentUpdateHost struct { // 主机名称 HostName string `json:"host_name"` // IP,请输入弹性ip格式:161.17.101.12 Ip string `json:"ip"` // ssh端口,如:22 Port int32 `json:"port"` // 是否为代理机 AsProxy bool `json:"as_proxy"` // 代理机id ProxyHostId *string `json:"proxy_host_id,omitempty"` Authorization *DeploymentHostAuthorizationBody `json:"authorization"` // 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机) InstallIcagent *bool `json:"install_icagent,omitempty"` }
主机信息body体
func (DeploymentUpdateHost) String ¶
func (o DeploymentUpdateHost) String() string
type DynamicConfigInfo ¶
type DynamicConfigInfo struct { // 执行部署任务时传递的参数名称 Key *string `json:"key,omitempty"` // 执行部署任务时传递的参数值 Value *string `json:"value,omitempty"` // 类型,如果填写动态参数,则类型必选 Type *DynamicConfigInfoType `json:"type,omitempty"` }
部署任务执行时传递的参数
func (DynamicConfigInfo) String ¶
func (o DynamicConfigInfo) String() string
type DynamicConfigInfoType ¶
type DynamicConfigInfoType struct {
// contains filtered or unexported fields
}
func (DynamicConfigInfoType) MarshalJSON ¶
func (c DynamicConfigInfoType) MarshalJSON() ([]byte, error)
func (*DynamicConfigInfoType) UnmarshalJSON ¶
func (c *DynamicConfigInfoType) UnmarshalJSON(b []byte) error
func (DynamicConfigInfoType) Value ¶ added in v0.0.90
func (c DynamicConfigInfoType) Value() string
type DynamicConfigInfoTypeEnum ¶
type DynamicConfigInfoTypeEnum struct { TEXT DynamicConfigInfoType HOST_GROUP DynamicConfigInfoType ENCRYPT DynamicConfigInfoType }
func GetDynamicConfigInfoTypeEnum ¶
func GetDynamicConfigInfoTypeEnum() DynamicConfigInfoTypeEnum
type EnvExecutionBody ¶
type EnvExecutionBody struct { // 部署任务执行时传递的参数 Params *[]DynamicConfigInfo `json:"params,omitempty"` // 部署任务的执行id,可通过record_id回滚至之前的部署状态。选中部署历史执行记录,在URL中获取 RecordId *string `json:"record_id,omitempty"` // 限制触发来源,0不限制任何执行请求来源,1时只允许通过流水线触发执行 TriggerSource *string `json:"trigger_source,omitempty"` }
部署任务启动参数
func (EnvExecutionBody) String ¶
func (o EnvExecutionBody) String() string
type ExecuteRecordV2Body ¶ added in v0.0.85
type ExecuteRecordV2Body struct { // 执行用时 Duration *string `json:"duration,omitempty"` // 任务状态 State *string `json:"state,omitempty"` // 操作人用户名 Operator *string `json:"operator,omitempty"` // 执行记录ID ExecutionId *string `json:"execution_id,omitempty"` // 执行任务的开始时间 StartTime *string `json:"start_time,omitempty"` // 操作人昵称 Nickname *string `json:"nickname,omitempty"` // 执行任务的结束时间 EndTime *string `json:"end_time,omitempty"` // 执行序列号 ReleaseId *int64 `json:"release_id,omitempty"` // 类型 Type *string `json:"type,omitempty"` }
任务执行记录Body
func (ExecuteRecordV2Body) String ¶ added in v0.0.85
func (o ExecuteRecordV2Body) String() string
type KeyValueDo ¶
type KeyValueDo struct { // 执行部署任务时传递的参数名称 Key *string `json:"key,omitempty"` // 执行部署任务时传递的参数值 Value *string `json:"value,omitempty"` }
执行部署任务时传递的动态参数
func (KeyValueDo) String ¶
func (o KeyValueDo) String() string
type ListDeployTaskHistoryByDateRequest ¶ added in v0.0.85
type ListDeployTaskHistoryByDateRequest struct { // 项目ID ProjectId string `json:"project_id"` // 任务ID Id string `json:"id"` // 分页页码, 表示从此页开始查询, page大于等于1 Page int32 `json:"page"` // 每页显示的条目数量,size小于等于100 Size int32 `json:"size"` // 区间开始时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天 StartDate string `json:"start_date"` // 区间结束时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天 EndDate string `json:"end_date"` }
Request Object
func (ListDeployTaskHistoryByDateRequest) String ¶ added in v0.0.85
func (o ListDeployTaskHistoryByDateRequest) String() string
type ListDeployTaskHistoryByDateResponse ¶ added in v0.0.85
type ListDeployTaskHistoryByDateResponse struct { // 部署任务历史执行记录列表 Result *[]ExecuteRecordV2Body `json:"result,omitempty"` // 开始时间和结束时间内任务历史执行记录总数 TotalNum *int32 `json:"total_num,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListDeployTaskHistoryByDateResponse) String ¶ added in v0.0.85
func (o ListDeployTaskHistoryByDateResponse) String() string
type ListDeployTasksRequest ¶ added in v0.0.85
type ListDeployTasksRequest struct { // 项目ID ProjectId string `json:"project_id"` // 分页页码, 表示从此页开始查询, page大于等于1 Page int32 `json:"page"` // 每页显示的条目数量,size小于等于100 Size int32 `json:"size"` }
Request Object
func (ListDeployTasksRequest) String ¶ added in v0.0.85
func (o ListDeployTasksRequest) String() string
type ListDeployTasksResponse ¶ added in v0.0.85
type ListDeployTasksResponse struct { // 总数 TotalNum *int32 `json:"total_num,omitempty"` // 返回结果 Result *[]TaskInfo `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListDeployTasksResponse) String ¶ added in v0.0.85
func (o ListDeployTasksResponse) String() string
type ListHostGroupsRequest ¶
type ListHostGroupsRequest struct { // devcloud创建的项目id ProjectId *string `json:"project_id,omitempty"` // 局点信息 RegionName string `json:"region_name"` // 操作系统:windows|linux Os *ListHostGroupsRequestOs `json:"os,omitempty"` // 偏移量,表示从此偏移量开始查询,offset大于等于0 Offset *int32 `json:"offset,omitempty"` // 每页显示的条目数量,默认为1000 Limit *int32 `json:"limit,omitempty"` // 主机组名 Name *string `json:"name,omitempty"` // 排序字段:nickName|NAME|OWNER_NAME|CREATE_TIME|name|owner_name|create_time,不传使用默认排序 SortKey *string `json:"sort_key,omitempty"` // 排序方式:DESC、ASC,默认为DESC SortDir *ListHostGroupsRequestSortDir `json:"sort_dir,omitempty"` }
Request Object
func (ListHostGroupsRequest) String ¶
func (o ListHostGroupsRequest) String() string
type ListHostGroupsRequestOs ¶
type ListHostGroupsRequestOs struct {
// contains filtered or unexported fields
}
func (ListHostGroupsRequestOs) MarshalJSON ¶
func (c ListHostGroupsRequestOs) MarshalJSON() ([]byte, error)
func (*ListHostGroupsRequestOs) UnmarshalJSON ¶
func (c *ListHostGroupsRequestOs) UnmarshalJSON(b []byte) error
func (ListHostGroupsRequestOs) Value ¶ added in v0.0.90
func (c ListHostGroupsRequestOs) Value() string
type ListHostGroupsRequestOsEnum ¶
type ListHostGroupsRequestOsEnum struct { WINDOWS ListHostGroupsRequestOs LINUX ListHostGroupsRequestOs }
func GetListHostGroupsRequestOsEnum ¶
func GetListHostGroupsRequestOsEnum() ListHostGroupsRequestOsEnum
type ListHostGroupsRequestSortDir ¶
type ListHostGroupsRequestSortDir struct {
// contains filtered or unexported fields
}
func (ListHostGroupsRequestSortDir) MarshalJSON ¶
func (c ListHostGroupsRequestSortDir) MarshalJSON() ([]byte, error)
func (*ListHostGroupsRequestSortDir) UnmarshalJSON ¶
func (c *ListHostGroupsRequestSortDir) UnmarshalJSON(b []byte) error
func (ListHostGroupsRequestSortDir) Value ¶ added in v0.0.90
func (c ListHostGroupsRequestSortDir) Value() string
type ListHostGroupsRequestSortDirEnum ¶
type ListHostGroupsRequestSortDirEnum struct { DESC ListHostGroupsRequestSortDir ASC ListHostGroupsRequestSortDir }
func GetListHostGroupsRequestSortDirEnum ¶
func GetListHostGroupsRequestSortDirEnum() ListHostGroupsRequestSortDirEnum
type ListHostGroupsResponse ¶
type ListHostGroupsResponse struct { // 主机组个数 Total *int32 `json:"total,omitempty"` // 主机组详情响应体 HostGroups *[]DeploymentGroupDetail `json:"host_groups,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListHostGroupsResponse) String ¶
func (o ListHostGroupsResponse) String() string
type ListHostsRequest ¶
type ListHostsRequest struct { // 主机组id GroupId string `json:"group_id"` // 是否为代理机 AsProxy *bool `json:"as_proxy,omitempty"` // 偏移量,表示从此偏移量开始查询,offset大于等于0 Offset *int32 `json:"offset,omitempty"` // 每页显示的条目数量,默认为1000 Limit *int32 `json:"limit,omitempty"` // 主机名,可输入中英文,数字和符号(-_.) Name *string `json:"name,omitempty"` // 排序字段,支持:AS_PROXY|HOST_NAME|OS|OWNER_NAME|as_proxy|host_name|os|owner_name|nickName。不填默认为:as_proxy SortKey *string `json:"sort_key,omitempty"` // 排序方式,默认为:DESC。DESC:降序排序。ASC:升序排序 SortDir *ListHostsRequestSortDir `json:"sort_dir,omitempty"` // 返回结果是否加密 WithAuth *bool `json:"with_auth,omitempty"` }
Request Object
func (ListHostsRequest) String ¶
func (o ListHostsRequest) String() string
type ListHostsRequestSortDir ¶
type ListHostsRequestSortDir struct {
// contains filtered or unexported fields
}
func (ListHostsRequestSortDir) MarshalJSON ¶
func (c ListHostsRequestSortDir) MarshalJSON() ([]byte, error)
func (*ListHostsRequestSortDir) UnmarshalJSON ¶
func (c *ListHostsRequestSortDir) UnmarshalJSON(b []byte) error
func (ListHostsRequestSortDir) Value ¶ added in v0.0.90
func (c ListHostsRequestSortDir) Value() string
type ListHostsRequestSortDirEnum ¶
type ListHostsRequestSortDirEnum struct { DESC ListHostsRequestSortDir ASC ListHostsRequestSortDir }
func GetListHostsRequestSortDirEnum ¶
func GetListHostsRequestSortDirEnum() ListHostsRequestSortDirEnum
type ListHostsResponse ¶
type ListHostsResponse struct { // 主机数量 Total *int32 `json:"total,omitempty"` // 主机组名称 GroupName *string `json:"group_name,omitempty"` // 主机列表信息 Hosts *[]DeploymentHostDetail `json:"hosts,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListHostsResponse) String ¶
func (o ListHostsResponse) String() string
type ListTaskSuccessRateRequest ¶ added in v0.0.85
type ListTaskSuccessRateRequest struct { // 项目id ProjectId string `json:"project_id"` Body *TasksSuccessRateQuery `json:"body,omitempty"` }
Request Object
func (ListTaskSuccessRateRequest) String ¶ added in v0.0.85
func (o ListTaskSuccessRateRequest) String() string
type ListTaskSuccessRateResponse ¶ added in v0.0.85
type ListTaskSuccessRateResponse struct { // 项目id ProjectId *string `json:"project_id,omitempty"` // 项目名称 ProjectName *string `json:"project_name,omitempty"` // 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd StartDate *string `json:"start_date,omitempty"` // 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 EndDate *string `json:"end_date,omitempty"` // 任务的成功率列表 TasksSuccessRate *[]TaskSuccessRate `json:"tasks_success_rate,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListTaskSuccessRateResponse) String ¶ added in v0.0.85
func (o ListTaskSuccessRateResponse) String() string
type ParamTypeLimits ¶
type ParamTypeLimits struct { // 枚举值可选参数 Name *string `json:"name,omitempty"` }
枚举类型参数实体类
func (ParamTypeLimits) String ¶
func (o ParamTypeLimits) String() string
type PermissionGroupDetail ¶
type PermissionGroupDetail struct { // 是否有查看权限 CanView *bool `json:"can_view,omitempty"` // 是否有编辑权限 CanEdit *bool `json:"can_edit,omitempty"` // 是否有删除权限 CanDelete *bool `json:"can_delete,omitempty"` // 是否有添加主机权限 CanAddHost *bool `json:"can_add_host,omitempty"` // 是否有管理权限 CanManage *bool `json:"can_manage,omitempty"` }
主机组相关权限详情类
func (PermissionGroupDetail) String ¶
func (o PermissionGroupDetail) String() string
type PermissionHostDetail ¶
type PermissionHostDetail struct { // 是否有查看权限 CanView *bool `json:"can_view,omitempty"` // 是否有编辑权限 CanEdit *bool `json:"can_edit,omitempty"` // 是否有删除权限 CanDelete *bool `json:"can_delete,omitempty"` // 是否有添加主机权限 CanAddHost *bool `json:"can_add_host,omitempty"` // 是否测试主机连通性权限 CanConnectionTest *bool `json:"can_connection_test,omitempty"` }
主机相关权限详情类
func (PermissionHostDetail) String ¶
func (o PermissionHostDetail) String() string
type ShowDeployTaskDetailRequest ¶
type ShowDeployTaskDetailRequest struct { // 部署任务id TaskId string `json:"task_id"` }
Request Object
func (ShowDeployTaskDetailRequest) String ¶
func (o ShowDeployTaskDetailRequest) String() string
type ShowDeployTaskDetailResponse ¶
type ShowDeployTaskDetailResponse struct { // 部署任务id TaskId *string `json:"task_id,omitempty"` // 部署任务名称 Name *string `json:"name,omitempty"` // devcloud项目id ProjectId *string `json:"project_id,omitempty"` // devcloud项目名称 ProjectName *string `json:"project_name,omitempty"` // 部署类型模式,包括deployTemplate,ansible,shell DeploySystem *string `json:"deploy_system,omitempty"` // 创建时间 CreateTime *string `json:"create_time,omitempty"` // 修改时间 UpdateTime *string `json:"update_time,omitempty"` // 部署任务状态,Draft表示草稿状态,Available表示可用状态 State *ShowDeployTaskDetailResponseState `json:"state,omitempty"` // 最后一次执行时间 ExecutionTime *string `json:"execution_time,omitempty"` // 描述 Description *string `json:"description,omitempty"` // 是否使用默认权限矩阵 IsDefautPermission *bool `json:"is_defaut_permission,omitempty"` // 模板id TemplateId *string `json:"template_id,omitempty"` // 部署任务创建者用户名 Owner *string `json:"owner,omitempty"` // 部署任务创建者昵称 NickName *string `json:"nick_name,omitempty"` // 部署任务创建者用户ID OwnerId *string `json:"owner_id,omitempty"` // 部署任务创建者租户ID TenantId *string `json:"tenant_id,omitempty"` // 部署任务创建者租户名 TenantName *string `json:"tenant_name,omitempty"` // slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id SlaveClusterId *string `json:"slave_cluster_id,omitempty"` // 当前用户是否已收藏 IsCare *bool `json:"is_care,omitempty"` // 是否有编辑权限 CanModify *bool `json:"can_modify,omitempty"` // 是否有删除的权限 CanDelete *bool `json:"can_delete,omitempty"` // 是否有查看权限 CanView *bool `json:"can_view,omitempty"` // 是否有执行权限 CanExecute *bool `json:"can_execute,omitempty"` // 是否有复制权限 CanCopy *bool `json:"can_copy,omitempty"` // 是否有管理权限,包含增删改查执行以及权限修改 CanManage *bool `json:"can_manage,omitempty"` // 部署任务和应用组件对应关系 AppComponentList *[]AppComponentDao `json:"app_component_list,omitempty"` // 角色ID,0:部署任务创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 RoleId *int32 `json:"role_id,omitempty"` // 部署任务id Id *string `json:"id,omitempty"` // 任务序列id ReleaseId *int32 `json:"release_id,omitempty"` // 执行时间 Duration *string `json:"duration,omitempty"` // 执行状态 ExecutionState *string `json:"execution_state,omitempty"` // 执行者id ExecutorId *string `json:"executor_id,omitempty"` // 执行者名称 ExecutorNickName *string `json:"executor_nick_name,omitempty"` // 执行步骤 Steps map[string]Step `json:"steps,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowDeployTaskDetailResponse) String ¶
func (o ShowDeployTaskDetailResponse) String() string
type ShowDeployTaskDetailResponseState ¶
type ShowDeployTaskDetailResponseState struct {
// contains filtered or unexported fields
}
func (ShowDeployTaskDetailResponseState) MarshalJSON ¶
func (c ShowDeployTaskDetailResponseState) MarshalJSON() ([]byte, error)
func (*ShowDeployTaskDetailResponseState) UnmarshalJSON ¶
func (c *ShowDeployTaskDetailResponseState) UnmarshalJSON(b []byte) error
func (ShowDeployTaskDetailResponseState) Value ¶ added in v0.0.90
func (c ShowDeployTaskDetailResponseState) Value() string
type ShowDeployTaskDetailResponseStateEnum ¶
type ShowDeployTaskDetailResponseStateEnum struct { AVAILABLE ShowDeployTaskDetailResponseState DRAFT ShowDeployTaskDetailResponseState }
func GetShowDeployTaskDetailResponseStateEnum ¶
func GetShowDeployTaskDetailResponseStateEnum() ShowDeployTaskDetailResponseStateEnum
type ShowDeploymentGroupDetailRequest ¶
type ShowDeploymentGroupDetailRequest struct { // 主机组id GroupId string `json:"group_id"` }
Request Object
func (ShowDeploymentGroupDetailRequest) String ¶
func (o ShowDeploymentGroupDetailRequest) String() string
type ShowDeploymentGroupDetailResponse ¶
type ShowDeploymentGroupDetailResponse struct { // 主机组id GroupId *string `json:"group_id,omitempty"` // 创建时间 CreatedTime *string `json:"created_time,omitempty"` // 修改时间 UpdatedTime *string `json:"updated_time,omitempty"` // 组内主机数量,一个主机组内最多可添加200台主机 HostCount *int32 `json:"host_count,omitempty"` // devcloud项目名称 ProjectName *string `json:"project_name,omitempty"` // 主机组名 Name *string `json:"name,omitempty"` // 局点信息 RegionName *string `json:"region_name,omitempty"` // devcloud项目id ProjectId *string `json:"project_id,omitempty"` // 操作系统:windows|linux Os *string `json:"os,omitempty"` // 自动连通性验证 0不执行 1每日 2每周 AutoConnectionTestSwitch *int32 `json:"auto_connection_test_switch,omitempty"` // slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id SlaveClusterId *string `json:"slave_cluster_id,omitempty"` // 用户昵称 NickName *string `json:"nick_name,omitempty"` CreatedBy *UserInfo `json:"created_by,omitempty"` UpdatedBy *UserInfo `json:"updated_by,omitempty"` // 描述 Description *string `json:"description,omitempty"` Permission *PermissionGroupDetail `json:"permission,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowDeploymentGroupDetailResponse) String ¶
func (o ShowDeploymentGroupDetailResponse) String() string
type ShowDeploymentHostDetailRequest ¶
type ShowDeploymentHostDetailRequest struct { // 主机组id GroupId string `json:"group_id"` // 主机id HostId string `json:"host_id"` }
Request Object
func (ShowDeploymentHostDetailRequest) String ¶
func (o ShowDeploymentHostDetailRequest) String() string
type ShowDeploymentHostDetailResponse ¶
type ShowDeploymentHostDetailResponse struct { // 主机组id GroupId string `json:"group_id"` // 主机名称 HostName string `json:"host_name"` // IP,请输入弹性ip格式:161.17.101.12 Ip string `json:"ip"` // ssh端口,如:22 Port int32 `json:"port"` // 操作系统:windows|linux,需要和主机组保持一致 Os ShowDeploymentHostDetailResponseOs `json:"os"` // 是否为代理机 AsProxy bool `json:"as_proxy"` // 代理机id ProxyHostId *string `json:"proxy_host_id,omitempty"` Authorization *DeploymentHostAuthorizationBody `json:"authorization"` // 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机) InstallIcagent *bool `json:"install_icagent,omitempty"` // 主机ID HostId *string `json:"host_id,omitempty"` ProxyHost *DeploymentHostDetail `json:"proxy_host,omitempty"` // 主机组名 GroupName *string `json:"group_name,omitempty"` // devcloud项目id ProjectId *string `json:"project_id,omitempty"` // devcloud项目名称 ProjectName *string `json:"project_name,omitempty"` Permission *PermissionHostDetail `json:"permission,omitempty"` // 更新时间 UpdateTime *string `json:"update_time,omitempty"` // 最后连接时间 LastestConnectionTime *string `json:"lastest_connection_time,omitempty"` // 连接状态 ConnectionStatus *string `json:"connection_status,omitempty"` // 拥有者名称 OwnerName *string `json:"owner_name,omitempty"` // 维护者id UpdatorId *string `json:"updator_id,omitempty"` // 创建时间 CreateTime *string `json:"create_time,omitempty"` // 昵称 NickName *string `json:"nick_name,omitempty"` // 拥有者id OwnerId *string `json:"owner_id,omitempty"` // 维护者名称 UpdatorName *string `json:"updator_name,omitempty"` // 连接结果 ConnectionResult *string `json:"connection_result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowDeploymentHostDetailResponse) String ¶
func (o ShowDeploymentHostDetailResponse) String() string
type ShowDeploymentHostDetailResponseOs ¶
type ShowDeploymentHostDetailResponseOs struct {
// contains filtered or unexported fields
}
func (ShowDeploymentHostDetailResponseOs) MarshalJSON ¶
func (c ShowDeploymentHostDetailResponseOs) MarshalJSON() ([]byte, error)
func (*ShowDeploymentHostDetailResponseOs) UnmarshalJSON ¶
func (c *ShowDeploymentHostDetailResponseOs) UnmarshalJSON(b []byte) error
func (ShowDeploymentHostDetailResponseOs) Value ¶ added in v0.0.90
func (c ShowDeploymentHostDetailResponseOs) Value() string
type ShowDeploymentHostDetailResponseOsEnum ¶
type ShowDeploymentHostDetailResponseOsEnum struct { WINDOWS ShowDeploymentHostDetailResponseOs LINUX ShowDeploymentHostDetailResponseOs }
func GetShowDeploymentHostDetailResponseOsEnum ¶
func GetShowDeploymentHostDetailResponseOsEnum() ShowDeploymentHostDetailResponseOsEnum
type ShowProjectSuccessRateRequest ¶ added in v0.0.85
type ShowProjectSuccessRateRequest struct { // 项目id ProjectId string `json:"project_id"` // 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd StartDate string `json:"start_date"` // 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 EndDate string `json:"end_date"` }
Request Object
func (ShowProjectSuccessRateRequest) String ¶ added in v0.0.85
func (o ShowProjectSuccessRateRequest) String() string
type ShowProjectSuccessRateResponse ¶ added in v0.0.85
type ShowProjectSuccessRateResponse struct { // 成功率 SuccessRate *string `json:"success_rate,omitempty"` // 项目id ProjectId *string `json:"project_id,omitempty"` // 项目名称 ProjectName *string `json:"project_name,omitempty"` // 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd StartDate *string `json:"start_date,omitempty"` // 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd EndDate *string `json:"end_date,omitempty"` // 查询到的任务数 TaskCount *int32 `json:"task_count,omitempty"` // 查询到的任务执行记录数 RecordCount *int32 `json:"record_count,omitempty"` // 成功的任务执行记录数 SuccessRecordCount *int32 `json:"success_record_count,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowProjectSuccessRateResponse) String ¶ added in v0.0.85
func (o ShowProjectSuccessRateResponse) String() string
type StartDeployTaskRequest ¶
type StartDeployTaskRequest struct { // 部署任务id TaskId string `json:"task_id"` Body *EnvExecutionBody `json:"body,omitempty"` }
Request Object
func (StartDeployTaskRequest) String ¶
func (o StartDeployTaskRequest) String() string
type StartDeployTaskResponse ¶
type StartDeployTaskResponse struct { // 执行记录id Id *string `json:"id,omitempty"` // 部署任务id TaskId *string `json:"task_id,omitempty"` // 执行任务名称 JobName *string `json:"job_name,omitempty"` // 部署任务和应用组件对应关系 AppComponentList *[]AppComponentDao `json:"app_component_list,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (StartDeployTaskResponse) String ¶
func (o StartDeployTaskResponse) String() string
type Step ¶ added in v0.1.8
type Step struct { // id Id *string `json:"id,omitempty"` // 名称 Name *string `json:"name,omitempty"` // 参数 Params map[string]string `json:"params,omitempty"` // 是否开启 Enable *bool `json:"enable,omitempty"` }
执行步骤
type TaskInfo ¶ added in v0.0.85
type TaskInfo struct { // 部署任务id TaskId *string `json:"task_id,omitempty"` // 部署任务名称 Name *string `json:"name,omitempty"` // devcloud项目id ProjectId *string `json:"project_id,omitempty"` // devcloud项目名称 ProjectName *string `json:"project_name,omitempty"` // 部署类型模式,包括deployTemplate,ansible,shell DeploySystem *string `json:"deploy_system,omitempty"` // 创建时间 CreateTime *string `json:"create_time,omitempty"` // 修改时间 UpdateTime *string `json:"update_time,omitempty"` // 部署任务状态,Draft表示草稿状态,Available表示可用状态 State *TaskInfoState `json:"state,omitempty"` // 最后一次执行时间 ExecutionTime *string `json:"execution_time,omitempty"` // 描述 Description *string `json:"description,omitempty"` // 是否使用默认权限矩阵 IsDefautPermission *bool `json:"is_defaut_permission,omitempty"` // 模板id TemplateId *string `json:"template_id,omitempty"` // 部署任务创建者用户名 Owner *string `json:"owner,omitempty"` // 部署任务创建者昵称 NickName *string `json:"nick_name,omitempty"` // 部署任务创建者用户ID OwnerId *string `json:"owner_id,omitempty"` // 部署任务创建者租户ID TenantId *string `json:"tenant_id,omitempty"` // 部署任务创建者租户名 TenantName *string `json:"tenant_name,omitempty"` // slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id SlaveClusterId *string `json:"slave_cluster_id,omitempty"` // 当前用户是否已收藏 IsCare *bool `json:"is_care,omitempty"` // 是否有编辑权限 CanModify *bool `json:"can_modify,omitempty"` // 是否有删除的权限 CanDelete *bool `json:"can_delete,omitempty"` // 是否有查看权限 CanView *bool `json:"can_view,omitempty"` // 是否有执行权限 CanExecute *bool `json:"can_execute,omitempty"` // 是否有复制权限 CanCopy *bool `json:"can_copy,omitempty"` // 是否有管理权限,包含增删改查执行以及权限修改 CanManage *bool `json:"can_manage,omitempty"` // 部署任务和应用组件对应关系 AppComponentList *[]AppComponentDao `json:"app_component_list,omitempty"` // 角色ID,0:部署任务创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 RoleId *int32 `json:"role_id,omitempty"` // 部署任务id Id *string `json:"id,omitempty"` // 任务序列id ReleaseId *int32 `json:"release_id,omitempty"` // 执行时间 Duration *string `json:"duration,omitempty"` // 执行状态 ExecutionState *string `json:"execution_state,omitempty"` // 执行者id ExecutorId *string `json:"executor_id,omitempty"` // 执行者名称 ExecutorNickName *string `json:"executor_nick_name,omitempty"` // 执行步骤 Steps map[string]Step `json:"steps,omitempty"` }
查询部署任务详情响应体
type TaskInfoState ¶ added in v0.0.85
type TaskInfoState struct {
// contains filtered or unexported fields
}
func (TaskInfoState) MarshalJSON ¶ added in v0.0.85
func (c TaskInfoState) MarshalJSON() ([]byte, error)
func (*TaskInfoState) UnmarshalJSON ¶ added in v0.0.85
func (c *TaskInfoState) UnmarshalJSON(b []byte) error
func (TaskInfoState) Value ¶ added in v0.0.90
func (c TaskInfoState) Value() string
type TaskInfoStateEnum ¶ added in v0.0.85
type TaskInfoStateEnum struct { AVAILABLE TaskInfoState DRAFT TaskInfoState }
func GetTaskInfoStateEnum ¶ added in v0.0.85
func GetTaskInfoStateEnum() TaskInfoStateEnum
type TaskSuccessRate ¶ added in v0.0.85
type TaskSuccessRate struct { // 任务id TaskId *string `json:"task_id,omitempty"` // 任务名称 TaskName *string `json:"task_name,omitempty"` // 成功率 SuccessRate *string `json:"success_rate,omitempty"` // 执行记录数 RecordCount *int32 `json:"record_count,omitempty"` // 成功的执行记录数 SuccessRecordCount *int32 `json:"success_record_count,omitempty"` }
单个任务的执行成功率
func (TaskSuccessRate) String ¶ added in v0.0.85
func (o TaskSuccessRate) String() string
type TasksSuccessRateQuery ¶ added in v0.0.85
type TasksSuccessRateQuery struct { // 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd StartDate string `json:"start_date"` // 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 EndDate string `json:"end_date"` // 任务id列表 TaskIds []string `json:"task_ids"` }
查询多个任务的执行成功率的请求体
func (TasksSuccessRateQuery) String ¶ added in v0.0.85
func (o TasksSuccessRateQuery) String() string
type TemplateTaskRequestBody ¶
type TemplateTaskRequestBody struct { // devcloud创建的项目id ProjectId string `json:"project_id"` // devcloud创建的项目名称 ProjectName string `json:"project_name"` // 部署模板id TemplateId string `json:"template_id"` // 部署任务名称 TaskName string `json:"task_name"` // 自定义slave资源池id SlaveClusterId *string `json:"slave_cluster_id,omitempty"` // 部署参数类 Configs *[]ConfigInfoDo `json:"configs,omitempty"` }
通过模板创建部署任务请求体
func (TemplateTaskRequestBody) String ¶
func (o TemplateTaskRequestBody) String() string
type UpdateDeploymentGroupRequest ¶
type UpdateDeploymentGroupRequest struct { // 主机组ID GroupId string `json:"group_id"` Body *DeploymentGroupUpdateRequest `json:"body,omitempty"` }
Request Object
func (UpdateDeploymentGroupRequest) String ¶
func (o UpdateDeploymentGroupRequest) String() string
type UpdateDeploymentGroupResponse ¶
type UpdateDeploymentGroupResponse struct { // 主机组ID GroupId *string `json:"group_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateDeploymentGroupResponse) String ¶
func (o UpdateDeploymentGroupResponse) String() string
type UpdateDeploymentHostRequest ¶
type UpdateDeploymentHostRequest struct { // 主机组id GroupId string `json:"group_id"` // 主机id HostId string `json:"host_id"` Body *DeploymentHostRequest `json:"body,omitempty"` }
Request Object
func (UpdateDeploymentHostRequest) String ¶
func (o UpdateDeploymentHostRequest) String() string
type UpdateDeploymentHostResponse ¶
type UpdateDeploymentHostResponse struct { // 主机id HostId *string `json:"host_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateDeploymentHostResponse) String ¶
func (o UpdateDeploymentHostResponse) String() string
Source Files ¶
- model_app_component_dao.go
- model_config_info_do.go
- model_create_deploy_task_by_template_request.go
- model_create_deploy_task_by_template_response.go
- model_create_deployment_group_request.go
- model_create_deployment_group_response.go
- model_create_deployment_host_request.go
- model_create_deployment_host_response.go
- model_delete_deploy_task_request.go
- model_delete_deploy_task_response.go
- model_delete_deployment_group_request.go
- model_delete_deployment_group_response.go
- model_delete_deployment_host_request.go
- model_delete_deployment_host_response.go
- model_deployment_group.go
- model_deployment_group_detail.go
- model_deployment_group_update_request.go
- model_deployment_host.go
- model_deployment_host_authorization_body.go
- model_deployment_host_detail.go
- model_deployment_host_info.go
- model_deployment_host_request.go
- model_deployment_update_host.go
- model_dynamic_config_info.go
- model_env_execution_body.go
- model_execute_record_v2_body.go
- model_key_value_do.go
- model_list_deploy_task_history_by_date_request.go
- model_list_deploy_task_history_by_date_response.go
- model_list_deploy_tasks_request.go
- model_list_deploy_tasks_response.go
- model_list_host_groups_request.go
- model_list_host_groups_response.go
- model_list_hosts_request.go
- model_list_hosts_response.go
- model_list_task_success_rate_request.go
- model_list_task_success_rate_response.go
- model_param_type_limits.go
- model_permission_group_detail.go
- model_permission_host_detail.go
- model_show_deploy_task_detail_request.go
- model_show_deploy_task_detail_response.go
- model_show_deployment_group_detail_request.go
- model_show_deployment_group_detail_response.go
- model_show_deployment_host_detail_request.go
- model_show_deployment_host_detail_response.go
- model_show_project_success_rate_request.go
- model_show_project_success_rate_response.go
- model_start_deploy_task_request.go
- model_start_deploy_task_response.go
- model_step.go
- model_task_info.go
- model_task_success_rate.go
- model_tasks_success_rate_query.go
- model_template_task_request_body.go
- model_update_deployment_group_request.go
- model_update_deployment_group_response.go
- model_update_deployment_host_request.go
- model_update_deployment_host_response.go
- model_user_info.go