model

package
v0.0.88 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchShowPipelinesStatusRequest

type BatchShowPipelinesStatusRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// 要获取状态的流水线ID,用逗号隔开
	PipelineIds string `json:"pipeline_ids"`
}

Request Object

func (BatchShowPipelinesStatusRequest) String

type BatchShowPipelinesStatusResponse

type BatchShowPipelinesStatusResponse struct {
	Body           *[]PipelineExecuteStates `json:"body,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (BatchShowPipelinesStatusResponse) String

type Constraint

type Constraint struct {

	// 校验规则类型
	Type string `json:"type"`

	// 校验规则
	Value string `json:"value"`

	// 校验失败描述
	Errormsg string `json:"errormsg"`
}

任务参数校验参数

func (Constraint) String

func (o Constraint) String() string

type CreatePipelineByTemplateRequest

type CreatePipelineByTemplateRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	Body *TemplateCddl `json:"body,omitempty"`
}

Request Object

func (CreatePipelineByTemplateRequest) String

type CreatePipelineByTemplateResponse

type CreatePipelineByTemplateResponse struct {

	// 实例ID
	TaskId         *string `json:"task_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePipelineByTemplateResponse) String

type ListPipelineSimpleInfoRequest added in v0.0.53

type ListPipelineSimpleInfoRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	Body *ListPipelineSimpleInfoRequestBody `json:"body,omitempty"`
}

Request Object

func (ListPipelineSimpleInfoRequest) String added in v0.0.53

type ListPipelineSimpleInfoRequestBody added in v0.0.53

type ListPipelineSimpleInfoRequestBody struct {

	// 流水线名字。参数存在,则进行模糊匹配
	PipelineName *string `json:"pipeline_name,omitempty"`

	// devCloud项目ids。该参数存在,则获取对应项目下的流水线列表,逗号分隔,id个数取值[0,10];如果不存在,则获取调用方所属租户的流水线列表
	ProjectIds *string `json:"project_ids,omitempty"`

	// 创建人id。该参数存在,逗号分隔,id个数取值[0,10]
	CreatorIds *string `json:"creator_ids,omitempty"`

	// 执行人id。该参数存在,逗号分隔,id个数取值[0,10];
	ExecutorIds *string `json:"executor_ids,omitempty"`

	// 流水线运行状态。取值范围:waiting,running,verifying,handling,suspending,completed
	Status *string `json:"status,omitempty"`

	// 流水线结果,标记流水线。error、success、aborted
	Outcome *string `json:"outcome,omitempty"`

	// 用于排序的字段。取值为:pipeline_name,create_time,start_time
	SortKey *string `json:"sort_key,omitempty"`

	// 排序类型。asc按排序字段升序,desc按排序字段降序
	SortDir *string `json:"sort_dir,omitempty"`

	// codehub搜索链接:git@codehub.XXX.git;gitee搜索链接:git@gitee.com.XXX.git;github搜索链接:git@github.com.XXX.git等
	GitUrl *string `json:"git_url,omitempty"`

	// 偏移量。表示从此偏移量开始查询,offset大于等于0,默认取值为0
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的条目数量。取值[10-50],默认取值为10
	Limit *int32 `json:"limit,omitempty"`
}

查询流水线信息对象

func (ListPipelineSimpleInfoRequestBody) String added in v0.0.53

type ListPipelineSimpleInfoResponse added in v0.0.53

type ListPipelineSimpleInfoResponse struct {

	// 偏移量,表示从此偏移量开始查询,offset大于等于0
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的条目数量
	Limit *int32 `json:"limit,omitempty"`

	// 总条目数量
	Total *int32 `json:"total,omitempty"`

	// 执行状况数据列表
	Result         *[]PipelineBasicInfo `json:"result,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListPipelineSimpleInfoResponse) String added in v0.0.53

type ListPipleineBuildResultRequest

type ListPipleineBuildResultRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// 项目id
	ProjectId string `json:"project_id"`

	// 起始日期,起始日期和结束日期间隔不超过一个月,查询包含起始日期
	StartDate string `json:"start_date"`

	// 结束日期,起始日期和结束日期间隔不超过一个月,查询包含结束日期
	EndDate string `json:"end_date"`

	// 偏移量,表示从此偏移量开始查询,offset大于等于0
	Offset int32 `json:"offset"`

	// 每次查询的条目数量
	Limit int32 `json:"limit"`
}

Request Object

func (ListPipleineBuildResultRequest) String

type ListPipleineBuildResultResponse

type ListPipleineBuildResultResponse struct {

	// 偏移量,表示从此偏移量开始查询,offset大于等于0
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的条目数量
	Limit *int32 `json:"limit,omitempty"`

	// 总条目数量
	Total *int32 `json:"total,omitempty"`

	// 执行状况数据列表
	BuildResults   *[]PipelineBuildResult `json:"build_results,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListPipleineBuildResultResponse) String

type ListTemplatesRequest

type ListTemplatesRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// 模板类型
	TemplateType string `json:"template_type"`

	// 是否内置模板
	IsBuildIn string `json:"is_build_in"`

	// 偏移量,表示从此偏移量开始查询,offset大于等于0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量
	Limit *int32 `json:"limit,omitempty"`

	// 模板名称,匹配规则为模糊匹配
	Name *string `json:"name,omitempty"`

	// 排序字段
	Sort *string `json:"sort,omitempty"`

	// 是否正序
	Asc *string `json:"asc,omitempty"`
}

Request Object

func (ListTemplatesRequest) String

func (o ListTemplatesRequest) String() string

type ListTemplatesResponse

type ListTemplatesResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 页码数
	PageNumber *int32 `json:"page_number,omitempty"`

	// 每页显示数
	PageSize *int32 `json:"page_size,omitempty"`

	// 模板数据,list类型数据
	Content        *[]TemplateView `json:"content,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListTemplatesResponse) String

func (o ListTemplatesResponse) String() string

type ParamTypeLimits

type ParamTypeLimits struct {

	// 是否废弃
	Disable string `json:"disable"`

	// 语言名字
	Name string `json:"name"`

	// 语言展示名字
	Displayname string `json:"displayname"`

	// 规则集ID
	Id string `json:"id"`

	// 扫描语言
	Language string `json:"language"`
}

CodeCheck任务语言参数

func (ParamTypeLimits) String

func (o ParamTypeLimits) String() string

type PipelineBasicInfo added in v0.0.53

type PipelineBasicInfo struct {

	// devCloud项目id
	ProjectId string `json:"project_id"`

	// devCloud项目名字
	ProjectName string `json:"project_name"`

	// 流水线id
	PipelineId string `json:"pipeline_id"`

	// 流水线名字
	PipelineName string `json:"pipeline_name"`

	// 流水线创建人id
	CreatorId string `json:"creator_id"`

	// 流水线创建人名字
	CreatorName string `json:"creator_name"`

	// 流水线创建人id
	ExecutorId string `json:"executor_id"`

	// 流水线执行人名字
	ExecutorName string `json:"executor_name"`

	// 启动时间
	StartTime string `json:"start_time"`

	// 创建时间
	CreateTime string `json:"create_time"`

	// 用户是否关注流水线:true(关注),false(未关注)
	Watched string `json:"watched"`
}

func (PipelineBasicInfo) String added in v0.0.53

func (o PipelineBasicInfo) String() string

type PipelineBuildResult

type PipelineBuildResult struct {

	// 执行ID
	BuildId string `json:"build_id"`

	// 运行耗时
	ElapseTime *string `json:"elapse_time,omitempty"`

	// 执行结束时间
	EndTime string `json:"end_time"`

	// 运行结果
	Outcome string `json:"outcome"`

	// 流水线id
	PipelineId string `json:"pipeline_id"`

	// 流水线名称
	PipelineName string `json:"pipeline_name"`

	// 执行开始时间
	StartTime string `json:"start_time"`

	// 运行状态
	Status string `json:"status"`
}

func (PipelineBuildResult) String

func (o PipelineBuildResult) String() string

type PipelineExecuteStates

type PipelineExecuteStates struct {

	// 流水线执行结果
	Result string `json:"result"`

	// 流水线执行状态
	Status string `json:"status"`

	// 阶段执行情况
	Stages []Stages `json:"stages"`

	// 执行人
	Executor string `json:"executor"`

	// 流水线名字
	PipelineName string `json:"pipeline_name"`

	// 流水线ID
	PipelineId string `json:"pipeline_id"`

	// 流水线详情页URL
	DetailUrl string `json:"detail_url"`

	// 流水线编辑页URL
	ModifyUrl string `json:"modify_url"`

	// 开始执行时间
	StartTime string `json:"start_time"`

	// 结束执行时间
	EndTime string `json:"end_time"`
}

流水线执行结果

func (PipelineExecuteStates) String

func (o PipelineExecuteStates) String() string

type PipelineParam

type PipelineParam struct {

	// 流水线参数名字
	Name string `json:"name"`

	// 流水线参数值
	Value string `json:"value"`

	// 流水线参数描述
	Description string `json:"description"`

	// 流水线参数类型
	ParamType string `json:"param_type"`

	// 是否静态参数
	IsStatic bool `json:"is_static"`

	// 是否默认参数
	IsDefault bool `json:"is_default"`
}

流水线参数

func (PipelineParam) String

func (o PipelineParam) String() string

type PipelineParameter

type PipelineParameter struct {

	// 参数名称
	Name string `json:"name"`

	// 参数值
	Value string `json:"value"`
}

func (PipelineParameter) String

func (o PipelineParameter) String() string

type PipelineStateStatus

type PipelineStateStatus struct {

	// 阶段或任务标识
	Id string `json:"id"`

	// 阶段或任务名称
	Name string `json:"name"`

	// 类别(阶段/任务)
	Type string `json:"type"`

	// 执行开始时间
	StartTime string `json:"start_time"`

	// 执行结束时间
	EndTime string `json:"end_time"`

	// 运行耗时
	ElapsedTime string `json:"elapsed_time"`

	// 运行状态
	Status string `json:"status"`

	// 运行结果
	Outcome string `json:"outcome"`

	// 错误码
	ErrorCode string `json:"error_code"`

	// 错误信息
	ErrorMsg string `json:"error_msg"`

	// 子任务运行信息(对任务来说是空的)
	Children []PipelineStateStatus `json:"children"`

	// 任务运行记录跳转链接
	DetailUrl string `json:"detail_url"`
}

func (PipelineStateStatus) String

func (o PipelineStateStatus) String() string

type RegisterAgentRequest

type RegisterAgentRequest struct {
	Body *SlaveRegister `json:"body,omitempty"`
}

Request Object

func (RegisterAgentRequest) String

func (o RegisterAgentRequest) String() string

type RegisterAgentResponse

type RegisterAgentResponse struct {

	// 状态信息
	Status *string `json:"status,omitempty"`

	// 返回结果
	Result *interface{} `json:"result,omitempty"`

	// 返回错误
	Error          *interface{} `json:"error,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (RegisterAgentResponse) String

func (o RegisterAgentResponse) String() string

type RemovePipelineRequest

type RemovePipelineRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// 要删除的流水线ID
	PipelineId string `json:"pipeline_id"`
}

Request Object

func (RemovePipelineRequest) String

func (o RemovePipelineRequest) String() string

type RemovePipelineResponse

type RemovePipelineResponse struct {

	// 流水线ID
	PipelineId *string `json:"pipeline_id,omitempty"`

	// 流水线名字
	PipelineName   *string `json:"pipeline_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RemovePipelineResponse) String

func (o RemovePipelineResponse) String() string

type ShowAgentStatusRequest

type ShowAgentStatusRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// AgentID
	AgentId string `json:"agent_id"`
}

Request Object

func (ShowAgentStatusRequest) String

func (o ShowAgentStatusRequest) String() string

type ShowAgentStatusResponse

type ShowAgentStatusResponse struct {

	// Agent状态
	Status *string `json:"status,omitempty"`

	// AgentID
	AgentId        *string `json:"agent_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowAgentStatusResponse) String

func (o ShowAgentStatusResponse) String() string

type ShowInstanceStatusRequest

type ShowInstanceStatusRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// 实例ID
	TaskId string `json:"task_id"`
}

Request Object

func (ShowInstanceStatusRequest) String

func (o ShowInstanceStatusRequest) String() string

type ShowInstanceStatusResponse

type ShowInstanceStatusResponse struct {

	// 实例ID
	TaskId *string `json:"task_id,omitempty"`

	// 实例创建状态,取值和含义:initializing:初始化中;processing:处理中;finished:已完成;succeeded:成功
	TaskStatus *string `json:"task_status,omitempty"`

	// 流水线ID
	PipelineId *string `json:"pipeline_id,omitempty"`

	// 流水线名字
	PipelineName *string `json:"pipeline_name,omitempty"`

	// 流水线详情页面url
	PipelineUrl    *string `json:"pipeline_url,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowInstanceStatusResponse) String

type ShowPipleineStatusRequest

type ShowPipleineStatusRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// 要获取状态的流水线ID
	PipelineId string `json:"pipeline_id"`

	// 要获取状态的执行ID
	BuildId *string `json:"build_id,omitempty"`
}

Request Object

func (ShowPipleineStatusRequest) String

func (o ShowPipleineStatusRequest) String() string

type ShowPipleineStatusResponse

type ShowPipleineStatusResponse struct {

	// 流水线ID
	PipelineId *string `json:"pipeline_id,omitempty"`

	// 流水线名称
	PipelineName *string `json:"pipeline_name,omitempty"`

	// 执行人
	Executor *string `json:"executor,omitempty"`

	// 流水线执行ID
	BuildId *string `json:"build_id,omitempty"`

	// 开始执行时间
	StartTime *string `json:"start_time,omitempty"`

	// 结束执行时间
	EndTime *string `json:"end_time,omitempty"`

	// 流水线参数
	Parameters *[]PipelineParameter `json:"parameters,omitempty"`

	// 流水线执行情况
	States *[]PipelineStateStatus `json:"states,omitempty"`

	// 执行耗时
	ElapsedTime *string `json:"elapsed_time,omitempty"`

	// 流水线运行状态
	Status *string `json:"status,omitempty"`

	// 流水线执行结果
	Outcome *string `json:"outcome,omitempty"`

	// 流水线详情页地址
	DetailUrl      *string `json:"detail_url,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPipleineStatusResponse) String

type ShowTemplateDetailRequest

type ShowTemplateDetailRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// 模板ID
	TemplateId string `json:"template_id"`

	// 模板类型
	TemplateType string `json:"template_type"`

	// 接口调用方
	Source *string `json:"source,omitempty"`
}

Request Object

func (ShowTemplateDetailRequest) String

func (o ShowTemplateDetailRequest) String() string

type ShowTemplateDetailResponse

type ShowTemplateDetailResponse struct {

	// 模板ID
	TemplateId *string `json:"template_id,omitempty"`

	// 模板名字
	TemplateName *string `json:"template_name,omitempty"`

	// 模板类型
	TemplateType *string `json:"template_type,omitempty"`

	// 用户ID
	UserId *string `json:"user_id,omitempty"`

	// 用户名字
	UserName *string `json:"user_name,omitempty"`

	// 租户ID
	DomainId *string `json:"domain_id,omitempty"`

	// 租户名字
	DomainName *string `json:"domain_name,omitempty"`

	// 是否内置模板
	IsBuildIn *bool `json:"is_build_in,omitempty"`

	// region
	Region *string `json:"region,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 项目名字
	ProjectName *string `json:"project_name,omitempty"`

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 修改时间
	LastModifyTime *string `json:"last_modify_time,omitempty"`

	// 是否关注
	IsWatch *bool `json:"is_watch,omitempty"`

	// 模板描述
	Description *string `json:"description,omitempty"`

	// 模板参数
	Parameter *[]TemplateParam `json:"parameter,omitempty"`

	// 编排flow详情,描述流水线内各阶段任务的串并行关系。map类型数据,key为阶段名字,默认第一阶段initial,最后阶段为final,其余名字以'state_数字'标识。value为该阶段内任务(以'Task_数字'标识)以及后续阶段的标识。本字段为描述流水线基础编排数据之一,建议可通过流水线真实界面基于模板创建接口中获取
	Flow map[string]map[string]string `json:"flow,omitempty"`

	// 编排State详情,map类型数据。本字段为描述流水线基础编排数据之一,建议可通过流水线真实界面基于模板创建接口中获取
	States         map[string]TemplateState `json:"states,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (ShowTemplateDetailResponse) String

type SlaveRegister

type SlaveRegister struct {

	// cluster ID
	ClusterId string `json:"cluster_id"`

	// Slave名称
	SlaveName string `json:"slave_name"`

	// Slave工作空间
	WorkDir string `json:"work_dir"`

	// Slave label
	Label *string `json:"label,omitempty"`

	// agent版本
	Version *string `json:"version,omitempty"`

	// 是否重试
	Retry *bool `json:"retry,omitempty"`

	// Slave ownerType
	OwnerType *string `json:"owner_type,omitempty"`
}

分页查询对象Query

func (SlaveRegister) String

func (o SlaveRegister) String() string

type Source

type Source struct {

	// 源码仓名字
	CodehubName string `json:"codehub_name"`

	// 触发分支
	Branches []string `json:"branches"`

	// 源码仓来源
	ScmType string `json:"scm_type"`

	// 是否开启触发执行流水线功能
	HookFlag bool `json:"hook_flag"`

	// 触发分支
	Branch string `json:"branch"`

	// 源码仓ssh地址
	GitUrl string `json:"git_url"`

	// 源码仓ID
	CodehubId string `json:"codehub_id"`

	// 源码仓首页url
	WebUrl string `json:"web_url"`

	// 分支列表
	BranchList []string `json:"branch_list"`

	// 初始化ID
	InitId string `json:"init_id"`

	// 是否废弃
	Disable bool `json:"disable"`
}

源码仓库参数

func (Source) String

func (o Source) String() string

type Stages

type Stages struct {

	// 阶段执行结果
	Result string `json:"result"`

	// 阶段执行状态
	Status string `json:"status"`

	// 阶段名字
	Name string `json:"name"`

	// 任务参数
	Parameters *interface{} `json:"parameters"`

	// 阶段顺序
	Order int32 `json:"order"`

	// 阶段类型
	DslMethod string `json:"dsl_method"`

	// 阶段显示名称
	DisplayName string `json:"display_name"`
}

流水线阶段执行信息

func (Stages) String

func (o Stages) String() string

type StartNewPipelineRequest

type StartNewPipelineRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// 流水线ID
	PipelineId string `json:"pipeline_id"`

	Body *StartPipelineParameters `json:"body,omitempty"`
}

Request Object

func (StartNewPipelineRequest) String

func (o StartNewPipelineRequest) String() string

type StartNewPipelineResponse

type StartNewPipelineResponse struct {

	// 流水线ID
	PipelineId *string `json:"pipeline_id,omitempty"`

	// 流水线构建ID
	BuildId        *string `json:"build_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (StartNewPipelineResponse) String

func (o StartNewPipelineResponse) String() string

type StartPipelineBuildParams

type StartPipelineBuildParams struct {

	// 构建参数名
	Name string `json:"name"`

	// 构建参数值,最大长度为8192
	Value string `json:"value"`
}

func (StartPipelineBuildParams) String

func (o StartPipelineBuildParams) String() string

type StartPipelineParameters

type StartPipelineParameters struct {

	// 启动流水线时的构建参数
	BuildParams *[]StartPipelineBuildParams `json:"build_params,omitempty"`
}

func (StartPipelineParameters) String

func (o StartPipelineParameters) String() string

type StopPipelineNewRequest

type StopPipelineNewRequest struct {

	// 语言类型 中文:zh-cn 英文:en-us,默认en-us
	XLanguage *string `json:"X-Language,omitempty"`

	// 流水线ID
	PipelineId string `json:"pipeline_id"`

	// 流水线执行ID
	BuildId string `json:"build_id"`
}

Request Object

func (StopPipelineNewRequest) String

func (o StopPipelineNewRequest) String() string

type StopPipelineNewResponse

type StopPipelineNewResponse struct {

	// 流水线ID
	PipelineId *string `json:"pipeline_id,omitempty"`

	// 流水线名字
	PipelineName   *string `json:"pipeline_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (StopPipelineNewResponse) String

func (o StopPipelineNewResponse) String() string

type TemplateCddl

type TemplateCddl struct {

	// 编排flow详情,描述流水线内各阶段任务的串并行关系。map类型数据,key为阶段名字,默认第一阶段initial,最后阶段为final,其余名字以'state_数字'标识。value为该阶段内任务(以'Task_数字'标识)以及后续阶段的标识。本字段为描述流水线基础编排数据之一,建议可通过流水线真实界面基于模板创建接口中获取
	Flow map[string]map[string]string `json:"flow"`

	// 编排State详情,map类型数据。本字段为描述流水线基础编排数据之一,建议可通过流水线真实界面基于模板创建接口中获取
	States map[string]TemplateState `json:"states"`

	Workflow *Workflow `json:"workflow"`
}

创建流水线接口入参

func (TemplateCddl) String

func (o TemplateCddl) String() string

type TemplateParam

type TemplateParam struct {

	// 是否必须
	Required string `json:"required"`

	// 是否可见
	Visible string `json:"visible"`

	// 流水线参数名字
	Name string `json:"name"`

	// 流水线参数值
	Value string `json:"value"`

	// 流水线参数描述
	Description string `json:"description"`

	// 流水线参数类型
	Paramtype string `json:"paramtype"`

	// 流水线参数展示类型
	DisplayType string `json:"display_type"`

	// 流水线参数展示名字
	DisplayName string `json:"display_name"`

	// 是否静态参数
	IsStatic bool `json:"is_static"`

	// 是否默认参数
	IsDefault bool `json:"is_default"`

	// array类型数据
	Limits []ParamTypeLimits `json:"limits"`

	// array类型数据
	Constraints []Constraint `json:"constraints"`
}

流水线参数

func (TemplateParam) String

func (o TemplateParam) String() string

type TemplateState

type TemplateState struct {

	// 任务类型
	Type string `json:"type"`

	// 任务名字
	Name string `json:"name"`

	// 模板任务ID
	ModuleOrTemplateId string `json:"module_or_template_id"`

	// 模板任务名字
	ModuleOrTemplateName string `json:"module_or_template_name"`

	// 任务在流水线页面展示名字
	DisplayName string `json:"display_name"`

	// 流水线可挂载任务类型
	DslMethod string `json:"dsl_method"`

	// 任务参数,map类型数据
	Parameters map[string]interface{} `json:"parameters"`

	// 是否手动执行
	IsManualExecution bool `json:"is_manual_execution"`

	// 任务参数是否校验
	JobParameterValidate bool `json:"job_parameter_validate"`

	// 是否显示代码仓URL
	IsShowCodehubUrl bool `json:"is_show_codehub_url"`

	// 是否执行
	IsExecute bool `json:"is_execute"`

	// 执行任务ID
	JobId string `json:"job_id"`

	// 执行任务名字
	JobName string `json:"job_name"`

	// 任务所属项目ID
	ProjectId string `json:"project_id"`

	// 控制阶段下任务的串并行(type是task的execution_mode值为null,type是stage的execution_mode可选parallel(并行)或者serial(串行))
	ExecutionMode string `json:"execution_mode"`
}

子任务参数

func (TemplateState) String

func (o TemplateState) String() string

type TemplateView

type TemplateView struct {

	// 模板ID
	TemplateId string `json:"template_id"`

	// 模板名字
	TemplateName string `json:"template_name"`

	// 模板类型
	TemplateType string `json:"template_type"`

	// 模板编辑URL
	TemplateUrl string `json:"template_url"`

	// 用户ID
	UserId string `json:"user_id"`

	// 用户名字
	UserName string `json:"user_name"`

	// 租户ID
	DomainId string `json:"domain_id"`

	// 租户名字
	DomainName string `json:"domain_name"`

	// 是否内置模板
	IsBuildIn bool `json:"is_build_in"`

	// 系统模板region为Cloud Pipeline。自定义模板region为实际region
	Region string `json:"region"`

	// 项目ID
	ProjectId string `json:"project_id"`

	// 项目名字
	ProjectName string `json:"project_name"`

	// 创建时间
	CreateTime string `json:"create_time"`

	// 修改时间
	LastModifyTime string `json:"last_modify_time"`

	// 是否关注
	IsWatch bool `json:"is_watch"`

	// 模板描述
	Description string `json:"description"`

	// 模板参数
	Parameter []TemplateParam `json:"parameter"`

	// 编排flow详情,描述流水线内各阶段任务的串并行关系。map类型数据,key为阶段名字,默认第一阶段initial,最后阶段为final,其余名字以'state_数字'标识。value为该阶段内任务(以'Task_数字'标识)以及后续阶段的标识。本字段为描述流水线基础编排数据之一,建议可通过流水线真实界面基于模板创建接口中获取
	Flow map[string]map[string]string `json:"flow"`

	// 编排State详情,map类型数据。本字段为描述流水线基础编排数据之一,建议可通过流水线真实界面基于模板创建接口中获取
	States map[string]TemplateState `json:"states"`

	// 是否可以修改
	CanUpdate bool `json:"can_update"`

	// 是否可以删除
	CanDelete bool `json:"can_delete"`

	// 是否需要代码仓库
	NeedHub bool `json:"need_hub"`
}

流水线创建状态响应体

func (TemplateView) String

func (o TemplateView) String() string

type Workflow

type Workflow struct {

	// 任务类型,list类型数据
	Parameter []PipelineParam `json:"parameter"`

	// 源码仓,list类型数据
	Source []Source `json:"source"`

	// 流水线名字
	Name string `json:"name"`

	// 项目ID
	ProjectId string `json:"project_id"`

	// 项目名字
	ProjectName string `json:"project_name"`
}

流水线参数详情

func (Workflow) String

func (o Workflow) String() string

Source Files

Jump to

Keyboard shortcuts

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