Documentation ¶
Index ¶
- type BuildStep
- type CreateBuildJobParameter
- type CreateBuildJobParameterParam
- type CreateBuildJobRequest
- type CreateBuildJobRequestBody
- type CreateBuildJobResponse
- type CreateBuildJobResponseBodyResult
- type CreateBuildJobScm
- type CreateBuildJobSteps
- type CreateTemplate
- type CreateTemplateSteps
- type CreateTemplatesItems
- type CreateTemplatesRequest
- type CreateTemplatesRequestBody
- type CreateTemplatesResponse
- type DeleteBuildJobRequest
- type DeleteBuildJobResponse
- type DeleteBuildJobResponseBodyResult
- type DeleteTemplatesRequest
- type DeleteTemplatesResponse
- type DisableBuildJobRequest
- type DisableBuildJobResponse
- type DisableNoticeRequest
- type DisableNoticeResponse
- type DownloadBuildLogRequest
- type DownloadBuildLogResponse
- type DownloadKeystoreRequest
- type DownloadKeystoreResponse
- type DownloadLogByRecordIdRequest
- type DownloadLogByRecordIdResponse
- type DownloadTaskLogRequest
- type DownloadTaskLogResponse
- type EnableBuildJobRequest
- type EnableBuildJobResponse
- type FlowGraphResult
- type FlowGraphResultEdges
- type HistoryRecord
- type HistoryRecord1
- type Job
- type LimitsParam
- type ListJobConfigRequest
- type ListJobConfigResponse
- type ListNoticeRequest
- type ListNoticeResponse
- type ListTemplatesRequest
- type ListTemplatesResponse
- type OutPutInfoResult
- type OutPutResult
- type ParameterItem
- type QueryJobNoticeItems
- type QueryTemplate
- type QueryTemplatesItems
- type QueryTemplatesResult
- type RecordInfo2Result
- type RecordInfoResult
- type RunJobRequest
- type RunJobRequestBody
- type RunJobResponse
- type Scm
- type ShowFlowGraphRequest
- type ShowFlowGraphResponse
- type ShowHistoryDetailsRequest
- type ShowHistoryDetailsResponse
- type ShowJobListByProjectIdRequest
- type ShowJobListByProjectIdResponse
- type ShowJobStatusRequest
- type ShowJobStatusResponse
- type ShowJobSuccessRatioRequest
- type ShowJobSuccessRatioResponse
- type ShowLastHistoryRequest
- type ShowLastHistoryResponse
- type ShowListHistoryRequest
- type ShowListHistoryResponse
- type ShowListPeriodHistoryRequest
- type ShowListPeriodHistoryResponse
- type ShowOutputInfoRequest
- type ShowOutputInfoResponse
- type ShowRecordDetailRequest
- type ShowRecordDetailResponse
- type ShowRecordInfoRequest
- type ShowRecordInfoResponse
- type StopBuildJobRequest
- type StopBuildJobResponse
- type StopJobRequest
- type StopJobRequestBody
- type StopJobResponse
- type UpdateBuildJobParameter
- type UpdateBuildJobParameterParam
- type UpdateBuildJobRequest
- type UpdateBuildJobRequestBody
- type UpdateBuildJobResponse
- type UpdateBuildJobScm
- type UpdateBuildJobSteps
- type UpdateNoticeRequest
- type UpdateNoticeRequestBody
- type UpdateNoticeResponse
- type Vertices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildStep ¶
type CreateBuildJobParameter ¶ added in v0.1.67
type CreateBuildJobParameter struct { // 参数定义名,默认为hudson.model.StringParameterDefinition Name *string `json:"name,omitempty"` // 构建执行参数子参数 Params *[]CreateBuildJobParameterParam `json:"params,omitempty"` }
CreateBuildJobParameter 创建构建作业参数
func (CreateBuildJobParameter) String ¶ added in v0.1.67
func (o CreateBuildJobParameter) String() string
type CreateBuildJobParameterParam ¶ added in v0.1.67
type CreateBuildJobParameterParam struct { // 参数字段名 Name *string `json:"name,omitempty"` // 参数字段值 Value *string `json:"value,omitempty"` // 枚举类参数限制 Limits *[]LimitsParam `json:"limits,omitempty"` }
CreateBuildJobParameterParam 构建执行参数子参数
func (CreateBuildJobParameterParam) String ¶ added in v0.1.67
func (o CreateBuildJobParameterParam) String() string
type CreateBuildJobRequest ¶ added in v0.1.67
type CreateBuildJobRequest struct {
Body *CreateBuildJobRequestBody `json:"body,omitempty"`
}
CreateBuildJobRequest Request Object
func (CreateBuildJobRequest) String ¶ added in v0.1.67
func (o CreateBuildJobRequest) String() string
type CreateBuildJobRequestBody ¶ added in v0.1.67
type CreateBuildJobRequestBody struct { // 使用机器的架构 Arch string `json:"arch"` // 构建任务所在项目的ID ProjectId string `json:"project_id"` // 任务名称 JobName string `json:"job_name"` // 是否自动更新子模块 AutoUpdateSubModule *string `json:"auto_update_sub_module,omitempty"` // 执行机规格 Flavor *string `json:"flavor,omitempty"` // 构建执行参数列表 Parameters *[]CreateBuildJobParameter `json:"parameters,omitempty"` // 构建执行SCM Scms *[]CreateBuildJobScm `json:"scms,omitempty"` // 构建执行的步骤 Steps []CreateBuildJobSteps `json:"steps"` // host类型 HostType *string `json:"host_type,omitempty"` // 构建的配置类型 BuildConfigType *string `json:"build_config_type,omitempty"` }
CreateBuildJobRequestBody 创建构建任务接口请求体
func (CreateBuildJobRequestBody) String ¶ added in v0.1.67
func (o CreateBuildJobRequestBody) String() string
type CreateBuildJobResponse ¶ added in v0.1.67
type CreateBuildJobResponse struct { Result *CreateBuildJobResponseBodyResult `json:"result,omitempty"` // 状态信息 Status *string `json:"status,omitempty"` // 错误信息 Error *string `json:"error,omitempty"` HttpStatusCode int `json:"-"` }
CreateBuildJobResponse Response Object
func (CreateBuildJobResponse) String ¶ added in v0.1.67
func (o CreateBuildJobResponse) String() string
type CreateBuildJobResponseBodyResult ¶ added in v0.1.67
type CreateBuildJobResponseBodyResult struct { // 构建任务ID JobId *string `json:"job_id,omitempty"` }
CreateBuildJobResponseBodyResult 结果
func (CreateBuildJobResponseBodyResult) String ¶ added in v0.1.67
func (o CreateBuildJobResponseBodyResult) String() string
type CreateBuildJobScm ¶ added in v0.1.67
type CreateBuildJobScm struct { // 代码分支 Branch *string `json:"branch,omitempty"` // 代码仓地址 Url string `json:"url"` // repo的id RepoId *string `json:"repo_id,omitempty"` // 代码仓http地址 WebUrl *string `json:"web_url,omitempty"` // 仓库类别,Repo、Github等 ScmType string `json:"scm_type"` // 是否自动构建 IsAutoBuild *bool `json:"is_auto_build,omitempty"` // 构建类别 BuildType *string `json:"build_type,omitempty"` // 克隆深度 Depth *string `json:"depth,omitempty"` // endpointId EndPointId *string `json:"end_point_id,omitempty"` // source Source *string `json:"source,omitempty"` }
CreateBuildJobScm 构建执行SCM
func (CreateBuildJobScm) String ¶ added in v0.1.67
func (o CreateBuildJobScm) String() string
type CreateBuildJobSteps ¶ added in v0.1.67
type CreateBuildJobSteps struct { // 具体的构建步骤 Properties map[string]interface{} `json:"properties,omitempty"` // 构建模块id ModuleId string `json:"module_id"` // 构建模块名称 Name string `json:"name"` // 构建版本 Version *string `json:"version,omitempty"` // 是否开启 Enable *bool `json:"enable,omitempty"` }
CreateBuildJobSteps 构建执行的步骤,采用驼峰式命名
func (CreateBuildJobSteps) String ¶ added in v0.1.67
func (o CreateBuildJobSteps) String() string
type CreateTemplate ¶ added in v0.1.67
type CreateTemplate struct { // 构建执行的步骤 Steps []CreateTemplateSteps `json:"steps"` }
CreateTemplate 模板中构建执行步骤列表
func (CreateTemplate) String ¶ added in v0.1.67
func (o CreateTemplate) String() string
type CreateTemplateSteps ¶ added in v0.1.67
type CreateTemplateSteps struct { // 具体的构建步骤 Properties map[string]interface{} `json:"properties,omitempty"` // 构建模块id ModuleId string `json:"module_id"` // 构建模块名称 Name *string `json:"name,omitempty"` // 构建版本 Version *string `json:"version,omitempty"` // 是否开启 Enable *bool `json:"enable,omitempty"` }
CreateTemplateSteps 构建执行的步骤,采用驼峰式命名
func (CreateTemplateSteps) String ¶ added in v0.1.67
func (o CreateTemplateSteps) String() string
type CreateTemplatesItems ¶ added in v0.1.67
type CreateTemplatesItems struct { // 是否收藏模板 Favourite *bool `json:"favourite,omitempty"` // 数据库中id Id *string `json:"id,omitempty"` // uuid Uuid *string `json:"uuid,omitempty"` Template *QueryTemplate `json:"template,omitempty"` // 模板类别 Type *string `json:"type,omitempty"` // 模板是否公开 Public *bool `json:"public,omitempty"` // 模板命名 Name *string `json:"name,omitempty"` // 创建时间 CreateTime *string `json:"create_time,omitempty"` // domainId DomainId *string `json:"domain_id,omitempty"` // 权重 Weight *float64 `json:"weight,omitempty"` // 用户id UserId *string `json:"user_id,omitempty"` // 用户名 UserName *string `json:"user_name,omitempty"` // domain名字 DomainName *string `json:"domain_name,omitempty"` // 模板范围,自定义模板默认为custom Scope *string `json:"scope,omitempty"` // 模板说明 Description *string `json:"description,omitempty"` // 构建工具类型,yaml构建还是action构建 ToolType *string `json:"tool_type,omitempty"` // intl说明 IntlDescription *interface{} `json:"intl_description,omitempty"` // 构建执行参数列表 Parameters *[]CreateBuildJobParameter `json:"parameters,omitempty"` // i18n I18n *interface{} `json:"i18n,omitempty"` }
func (CreateTemplatesItems) String ¶ added in v0.1.67
func (o CreateTemplatesItems) String() string
type CreateTemplatesRequest ¶ added in v0.1.67
type CreateTemplatesRequest struct {
Body *CreateTemplatesRequestBody `json:"body,omitempty"`
}
CreateTemplatesRequest Request Object
func (CreateTemplatesRequest) String ¶ added in v0.1.67
func (o CreateTemplatesRequest) String() string
type CreateTemplatesRequestBody ¶ added in v0.1.67
type CreateTemplatesRequestBody struct { Template *CreateTemplate `json:"template"` // 模板命名 Name string `json:"name"` // 模板说明 Description *string `json:"description,omitempty"` // 工具类型 ToolType *string `json:"tool_type,omitempty"` // 构建执行参数列表 Parameters *[]CreateBuildJobParameter `json:"parameters,omitempty"` }
CreateTemplatesRequestBody 创建作业模板接口请求体
func (CreateTemplatesRequestBody) String ¶ added in v0.1.67
func (o CreateTemplatesRequestBody) String() string
type CreateTemplatesResponse ¶ added in v0.1.67
type CreateTemplatesResponse struct { Result *CreateTemplatesItems `json:"result,omitempty"` // 返回错误信息 Error *string `json:"error,omitempty"` // 返回状态信息 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
CreateTemplatesResponse Response Object
func (CreateTemplatesResponse) String ¶ added in v0.1.67
func (o CreateTemplatesResponse) String() string
type DeleteBuildJobRequest ¶ added in v0.1.62
type DeleteBuildJobRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` }
DeleteBuildJobRequest Request Object
func (DeleteBuildJobRequest) String ¶ added in v0.1.62
func (o DeleteBuildJobRequest) String() string
type DeleteBuildJobResponse ¶ added in v0.1.62
type DeleteBuildJobResponse struct { Result *DeleteBuildJobResponseBodyResult `json:"result,omitempty"` // 状态信息 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
DeleteBuildJobResponse Response Object
func (DeleteBuildJobResponse) String ¶ added in v0.1.62
func (o DeleteBuildJobResponse) String() string
type DeleteBuildJobResponseBodyResult ¶ added in v0.1.62
type DeleteBuildJobResponseBodyResult struct { // 构建任务ID JobId *string `json:"job_id,omitempty"` // 构建任务所在项目的ID ProjectId *string `json:"project_id,omitempty"` }
DeleteBuildJobResponseBodyResult 结果
func (DeleteBuildJobResponseBodyResult) String ¶ added in v0.1.62
func (o DeleteBuildJobResponseBodyResult) String() string
type DeleteTemplatesRequest ¶ added in v0.1.67
type DeleteTemplatesRequest struct { // uuid Uuid string `json:"uuid"` }
DeleteTemplatesRequest Request Object
func (DeleteTemplatesRequest) String ¶ added in v0.1.67
func (o DeleteTemplatesRequest) String() string
type DeleteTemplatesResponse ¶ added in v0.1.67
type DeleteTemplatesResponse struct { // 查询模板结果 Result *[]CreateTemplatesItems `json:"result,omitempty"` // 返回错误信息 Error *string `json:"error,omitempty"` // 返回状态信息 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
DeleteTemplatesResponse Response Object
func (DeleteTemplatesResponse) String ¶ added in v0.1.67
func (o DeleteTemplatesResponse) String() string
type DisableBuildJobRequest ¶ added in v0.1.62
type DisableBuildJobRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` }
DisableBuildJobRequest Request Object
func (DisableBuildJobRequest) String ¶ added in v0.1.62
func (o DisableBuildJobRequest) String() string
type DisableBuildJobResponse ¶ added in v0.1.62
type DisableBuildJobResponse struct { // 返回结果状态 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
DisableBuildJobResponse Response Object
func (DisableBuildJobResponse) String ¶ added in v0.1.62
func (o DisableBuildJobResponse) String() string
type DisableNoticeRequest ¶ added in v0.1.67
type DisableNoticeRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 通知的类型,分为消息,邮件和钉钉 NoticeType string `json:"notice_type"` }
DisableNoticeRequest Request Object
func (DisableNoticeRequest) String ¶ added in v0.1.67
func (o DisableNoticeRequest) String() string
type DisableNoticeResponse ¶ added in v0.1.67
type DisableNoticeResponse struct { // 返回错误信息 Result *string `json:"result,omitempty"` // 返回错误信息 Error *string `json:"error,omitempty"` // 返回状态信息 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
DisableNoticeResponse Response Object
func (DisableNoticeResponse) String ¶ added in v0.1.67
func (o DisableNoticeResponse) String() string
type DownloadBuildLogRequest ¶ added in v0.1.67
type DownloadBuildLogRequest struct { // 记录ID,36位数字、小写字母、'-'组组合。 RecordId string `json:"record_id"` // 日志等级 值为INFO | DEBUG。 LogLevel *string `json:"log_level,omitempty"` }
DownloadBuildLogRequest Request Object
func (DownloadBuildLogRequest) String ¶ added in v0.1.67
func (o DownloadBuildLogRequest) String() string
type DownloadBuildLogResponse ¶ added in v0.1.67
type DownloadBuildLogResponse struct { HttpStatusCode int `json:"-"` Body io.ReadCloser `json:"-" type:"stream"` }
DownloadBuildLogResponse Response Object
func (DownloadBuildLogResponse) Consume ¶ added in v0.1.67
func (o DownloadBuildLogResponse) Consume(writer io.Writer) (int64, error)
func (DownloadBuildLogResponse) String ¶ added in v0.1.67
func (o DownloadBuildLogResponse) String() string
type DownloadKeystoreRequest ¶
type DownloadKeystoreRequest struct { // 下载的文件名称 FileName string `json:"file_name"` // 租户ID。32位数字、小写字母组合 DomainId string `json:"domain_id"` }
DownloadKeystoreRequest Request Object
func (DownloadKeystoreRequest) String ¶
func (o DownloadKeystoreRequest) String() string
type DownloadKeystoreResponse ¶
type DownloadKeystoreResponse struct { HttpStatusCode int `json:"-"` Body io.ReadCloser `json:"-" type:"stream"` }
DownloadKeystoreResponse Response Object
func (DownloadKeystoreResponse) Consume ¶
func (o DownloadKeystoreResponse) Consume(writer io.Writer) (int64, error)
func (DownloadKeystoreResponse) String ¶
func (o DownloadKeystoreResponse) String() string
type DownloadLogByRecordIdRequest ¶ added in v0.1.62
type DownloadLogByRecordIdRequest struct { // 记录ID,36位数字、小写字母、'-'组组合。 RecordId string `json:"record_id"` }
DownloadLogByRecordIdRequest Request Object
func (DownloadLogByRecordIdRequest) String ¶ added in v0.1.62
func (o DownloadLogByRecordIdRequest) String() string
type DownloadLogByRecordIdResponse ¶ added in v0.1.62
type DownloadLogByRecordIdResponse struct { HttpStatusCode int `json:"-"` Body io.ReadCloser `json:"-" type:"stream"` }
DownloadLogByRecordIdResponse Response Object
func (DownloadLogByRecordIdResponse) Consume ¶ added in v0.1.62
func (o DownloadLogByRecordIdResponse) Consume(writer io.Writer) (int64, error)
func (DownloadLogByRecordIdResponse) String ¶ added in v0.1.62
func (o DownloadLogByRecordIdResponse) String() string
type DownloadTaskLogRequest ¶ added in v0.1.67
type DownloadTaskLogRequest struct { // 记录ID,36位数字、小写字母、'-'组组合。 RecordId string `json:"record_id"` // 步骤名称 TaskName string `json:"task_name"` // 日志等级 值为INFO | DEBUG。 LogLevel *string `json:"log_level,omitempty"` }
DownloadTaskLogRequest Request Object
func (DownloadTaskLogRequest) String ¶ added in v0.1.67
func (o DownloadTaskLogRequest) String() string
type DownloadTaskLogResponse ¶ added in v0.1.67
type DownloadTaskLogResponse struct { HttpStatusCode int `json:"-"` Body io.ReadCloser `json:"-" type:"stream"` }
DownloadTaskLogResponse Response Object
func (DownloadTaskLogResponse) Consume ¶ added in v0.1.67
func (o DownloadTaskLogResponse) Consume(writer io.Writer) (int64, error)
func (DownloadTaskLogResponse) String ¶ added in v0.1.67
func (o DownloadTaskLogResponse) String() string
type EnableBuildJobRequest ¶ added in v0.1.67
type EnableBuildJobRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` }
EnableBuildJobRequest Request Object
func (EnableBuildJobRequest) String ¶ added in v0.1.67
func (o EnableBuildJobRequest) String() string
type EnableBuildJobResponse ¶ added in v0.1.67
type EnableBuildJobResponse struct { // 返回结果状态 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
EnableBuildJobResponse Response Object
func (EnableBuildJobResponse) String ¶ added in v0.1.67
func (o EnableBuildJobResponse) String() string
type FlowGraphResult ¶ added in v0.1.67
type FlowGraphResult struct { // edges Edges *[]FlowGraphResultEdges `json:"edges,omitempty"` // record信息 Vertices *[]Vertices `json:"vertices,omitempty"` }
FlowGraphResult 结果
func (FlowGraphResult) String ¶ added in v0.1.67
func (o FlowGraphResult) String() string
type FlowGraphResultEdges ¶ added in v0.1.67
type FlowGraphResultEdges struct { // 依赖子任务ID From *string `json:"from,omitempty"` // 被依赖的子任务ID To *string `json:"to,omitempty"` }
func (FlowGraphResultEdges) String ¶ added in v0.1.67
func (o FlowGraphResultEdges) String() string
type HistoryRecord ¶
type HistoryRecord struct { // 构建记录id--唯一key RecordId *string `json:"record_id,omitempty"` // 任务id JobId *string `json:"job_id,omitempty"` // 构建编号 BuildNumber *int32 `json:"build_number,omitempty"` // 构建开始时间 StartTime *string `json:"start_time,omitempty"` // 构建结束时间 EndTime *string `json:"end_time,omitempty"` // 构建结果 Result *string `json:"result,omitempty"` }
func (HistoryRecord) String ¶
func (o HistoryRecord) String() string
type HistoryRecord1 ¶
type HistoryRecord1 struct { // 构建记录id--唯一key RecordId *string `json:"record_id,omitempty"` // 任务id JobId *string `json:"job_id,omitempty"` // 构建编号 BuildNumber *int32 `json:"build_number,omitempty"` // 构建开始时间 StartTime *string `json:"start_time,omitempty"` // 构建结束时间 EndTime *string `json:"end_time,omitempty"` // 构建结果 Result *string `json:"result,omitempty"` // 代码分支 Branch *string `json:"branch,omitempty"` // 代码提交的commit id CommitId *string `json:"commit_id,omitempty"` // 代码提交时用户输入的提交信息,只有使用codehub仓库时有值 CommitMessage *string `json:"commit_message,omitempty"` // 执行构建任务的用户的用户名 Executor *string `json:"executor,omitempty"` // 触发方式,可选值:手工触发,定时触发,代码更新触发,流水线触发 TriggerType *string `json:"trigger_type,omitempty"` }
func (HistoryRecord1) String ¶
func (o HistoryRecord1) String() string
type Job ¶
type Job struct { // 任务ID Id *string `json:"id,omitempty"` // 任务名称 JobName *string `json:"job_name,omitempty"` // 任务创建者 JobCreator *string `json:"job_creator,omitempty"` // 用户名称 UserName *string `json:"user_name,omitempty"` // 最新执行时间 LastBuildTime float32 `json:"last_build_time,omitempty"` // 健康分值 HealthScore *int32 `json:"health_score,omitempty"` // 代码来源 SourceCode *string `json:"source_code,omitempty"` // 最新构建状态 LastBuildStatus *string `json:"last_build_status,omitempty"` // 是否已结束 IsFinished *bool `json:"is_finished,omitempty"` // 是否已禁用 Disabled *bool `json:"disabled,omitempty"` // 是否已收藏 Favorite *bool `json:"favorite,omitempty"` // 是否有修改任务权限 IsModify *bool `json:"is_modify,omitempty"` // 是否有删除任务权限 IsDelete *bool `json:"is_delete,omitempty"` // 是否有执行任务权限 IsExecute *bool `json:"is_execute,omitempty"` // 是否有复制任务权限 IsCopy *bool `json:"is_copy,omitempty"` // 是否有禁用任务权限 IsForbidden *bool `json:"is_forbidden,omitempty"` // 是否有查看任务权限 IsView *bool `json:"is_view,omitempty"` }
type LimitsParam ¶ added in v0.1.67
type LimitsParam struct { // 是否生效,默认为\"0\",为生效状态 Disable *string `json:"disable,omitempty"` // 参数展示的名字 DisplayName *string `json:"display_name,omitempty"` // 参数名字 Name *string `json:"name,omitempty"` }
LimitsParam 枚举类参数限制
func (LimitsParam) String ¶ added in v0.1.67
func (o LimitsParam) String() string
type ListJobConfigRequest ¶ added in v0.1.67
type ListJobConfigRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 输入\"true\"或者\"false\"来控制返回参数是不是完整的 GetAllParams *string `json:"get_all_params,omitempty"` }
ListJobConfigRequest Request Object
func (ListJobConfigRequest) String ¶ added in v0.1.67
func (o ListJobConfigRequest) String() string
type ListJobConfigResponse ¶ added in v0.1.67
type ListJobConfigResponse struct { Result *CreateBuildJobRequestBody `json:"result,omitempty"` // 返回错误信息 Error *string `json:"error,omitempty"` // 返回状态信息 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
ListJobConfigResponse Response Object
func (ListJobConfigResponse) String ¶ added in v0.1.67
func (o ListJobConfigResponse) String() string
type ListNoticeRequest ¶ added in v0.1.67
type ListNoticeRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` }
ListNoticeRequest Request Object
func (ListNoticeRequest) String ¶ added in v0.1.67
func (o ListNoticeRequest) String() string
type ListNoticeResponse ¶ added in v0.1.67
type ListNoticeResponse struct { // 查询模板结果 Result *[]QueryJobNoticeItems `json:"result,omitempty"` // 返回错误信息 Error *string `json:"error,omitempty"` // 返回状态信息 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
ListNoticeResponse Response Object
func (ListNoticeResponse) String ¶ added in v0.1.67
func (o ListNoticeResponse) String() string
type ListTemplatesRequest ¶ added in v0.1.67
type ListTemplatesRequest struct { // 检索的模板的名字模糊查询 Name *string `json:"name,omitempty"` // 分页页码, 表示从此页开始查询 Page *string `json:"page,omitempty"` // 每页显示的条目数量,page_size小于等于100 PageSize *string `json:"page_size,omitempty"` }
ListTemplatesRequest Request Object
func (ListTemplatesRequest) String ¶ added in v0.1.67
func (o ListTemplatesRequest) String() string
type ListTemplatesResponse ¶ added in v0.1.67
type ListTemplatesResponse struct { Result *QueryTemplatesResult `json:"result,omitempty"` // 返回错误信息 Error *string `json:"error,omitempty"` // 返回状态信息 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
ListTemplatesResponse Response Object
func (ListTemplatesResponse) String ¶ added in v0.1.67
func (o ListTemplatesResponse) String() string
type OutPutInfoResult ¶ added in v0.1.67
type OutPutInfoResult struct { PackageInfo *OutPutResult `json:"package_info,omitempty"` // 二方包信息 PackageInfos map[string]OutPutResult `json:"package_infos,omitempty"` // 镜像包信息 ImageInfos map[string]OutPutResult `json:"image_infos,omitempty"` }
OutPutInfoResult 结果
func (OutPutInfoResult) String ¶ added in v0.1.67
func (o OutPutInfoResult) String() string
type OutPutResult ¶ added in v0.1.67
type OutPutResult struct { // 构建任务所在项目的ID ProjectId *string `json:"project_id,omitempty"` // 产物名称 Name *string `json:"name,omitempty"` // 产物版本 Version *string `json:"version,omitempty"` // 产物类型 PackageType *string `json:"package_type,omitempty"` // 产物路径 Uri *string `json:"uri,omitempty"` // 类型 Type *string `json:"type,omitempty"` // 构建编号,每日从1开始 DailyBuildNumber *string `json:"daily_build_number,omitempty"` }
OutPutResult 产物信息
func (OutPutResult) String ¶ added in v0.1.67
func (o OutPutResult) String() string
type ParameterItem ¶
func (ParameterItem) String ¶
func (o ParameterItem) String() string
type QueryJobNoticeItems ¶ added in v0.1.67
type QueryJobNoticeItems struct { // 通知类型 NoticeType *string `json:"notice_type,omitempty"` // 通知品种开启详情的表 EnableMap map[string]bool `json:"enable_map,omitempty"` // 参数配置 ParamConfig *string `json:"param_config,omitempty"` }
func (QueryJobNoticeItems) String ¶ added in v0.1.67
func (o QueryJobNoticeItems) String() string
type QueryTemplate ¶ added in v0.1.67
type QueryTemplate struct { // 构建执行的步骤 Steps []CreateBuildJobSteps `json:"steps"` }
QueryTemplate 模板中构建执行步骤列表
func (QueryTemplate) String ¶ added in v0.1.67
func (o QueryTemplate) String() string
type QueryTemplatesItems ¶ added in v0.1.67
type QueryTemplatesItems struct { // 是否收藏模板 Favourite *bool `json:"favourite,omitempty"` // 昵称 NickName *string `json:"nick_name,omitempty"` // 数据库中id Id *string `json:"id,omitempty"` // uuid Uuid *string `json:"uuid,omitempty"` Template *QueryTemplate `json:"template,omitempty"` // 模板类别 Type *string `json:"type,omitempty"` // 模板是否公开 Public *bool `json:"public,omitempty"` // 模板命名 Name *string `json:"name,omitempty"` // 创建时间 CreateTime *string `json:"create_time,omitempty"` // domainId DomainId *string `json:"domain_id,omitempty"` // 权重 Weight *float64 `json:"weight,omitempty"` // 用户id UserId *string `json:"user_id,omitempty"` // 用户名 UserName *string `json:"user_name,omitempty"` // domain名字 DomainName *string `json:"domain_name,omitempty"` // 模板范围,自定义模板默认为custom Scope *string `json:"scope,omitempty"` // 模板说明 Description *string `json:"description,omitempty"` // 构建工具类型,yaml构建还是action构建 ToolType *string `json:"tool_type,omitempty"` // intl说明 IntlDescription *interface{} `json:"intl_description,omitempty"` // 构建执行参数列表 Parameters *[]CreateBuildJobParameter `json:"parameters,omitempty"` // i18n I18n *interface{} `json:"i18n,omitempty"` }
func (QueryTemplatesItems) String ¶ added in v0.1.67
func (o QueryTemplatesItems) String() string
type QueryTemplatesResult ¶ added in v0.1.67
type QueryTemplatesResult struct { // 返回模板数量 TotalSize *int32 `json:"total_size,omitempty"` // 模板信息列表 Items *[]QueryTemplatesItems `json:"items,omitempty"` }
func (QueryTemplatesResult) String ¶ added in v0.1.67
func (o QueryTemplatesResult) String() string
type RecordInfo2Result ¶ added in v0.1.67
type RecordInfo2Result struct { // id Id *string `json:"id,omitempty"` // 构建工程ID,唯一对应codeci_job_id BuildProjectId *string `json:"build_project_id,omitempty"` // 构建记录ID BuildRecordId *string `json:"build_record_id,omitempty"` // 父构建记录ID ParentRecordId *string `json:"parent_record_id,omitempty"` // 项目ID DevcloudProjectId *string `json:"devcloud_project_id,omitempty"` // codeci任务ID,唯一对应build_project_id CodeciJobId *string `json:"codeci_job_id,omitempty"` // 用户ID UserId *string `json:"user_id,omitempty"` // 构建编号 BuildNo *int32 `json:"build_no,omitempty"` // 每日构建编号,每日从1开始 DailyBuildNum *string `json:"daily_build_num,omitempty"` // 八爪鱼任务ID ExecutionId *string `json:"execution_id,omitempty"` // 仓库名称 RepoName *string `json:"repo_name,omitempty"` // 仓库id RepoId *string `json:"repo_id,omitempty"` // 仓库分支 Branch *string `json:"branch,omitempty"` // 仓库tag Tag *string `json:"tag,omitempty"` // 仓库commit ID Commit *string `json:"commit,omitempty"` // 仓库commit提交信息 CommitMessage *string `json:"commit_message,omitempty"` // commit创建时间 CommitCreateTime *string `json:"commit_create_time,omitempty"` // 触发类型 TriggerType *string `json:"trigger_type,omitempty"` // 构建类型 BuildType *string `json:"build_type,omitempty"` // 构建状态 Status *string `json:"status,omitempty"` // 租户ID DomainId *string `json:"domain_id,omitempty"` // 任务创建时间 CreateTime *string `json:"create_time,omitempty"` // 构建下发耗时 ScheduleTime *string `json:"schedule_time,omitempty"` // 构建排队耗时 QueuedTime *string `json:"queued_time,omitempty"` // 开始构建时间 StartTime *string `json:"start_time,omitempty"` // 八爪鱼真正开始构建时间 RunnableTime *string `json:"runnable_time,omitempty"` // 构建结束时间 FinishTime *string `json:"finish_time,omitempty"` // 构建时长 Duration *int32 `json:"duration,omitempty"` // record状态 RecordStatus *string `json:"record_status,omitempty"` // 是否使用自定义执行机 UsePrivateSlave *int32 `json:"use_private_slave,omitempty"` // 租户所在region Region *string `json:"region,omitempty"` // 错误信息 ErrMsg *string `json:"err_msg,omitempty"` // 构建配置类型,YAML或ACTION BuildConfigType *string `json:"build_config_type,omitempty"` }
RecordInfo2Result 结果
func (RecordInfo2Result) String ¶ added in v0.1.67
func (o RecordInfo2Result) String() string
type RecordInfoResult ¶ added in v0.1.62
type RecordInfoResult struct { // id Id *string `json:"id,omitempty"` // 构建工程ID,唯一对应codeci_job_id BuildProjectId *string `json:"build_project_id,omitempty"` // 构建记录ID BuildRecordId *string `json:"build_record_id,omitempty"` // 父构建记录ID ParentRecordId *string `json:"parent_record_id,omitempty"` // 项目ID DevcloudProjectId *string `json:"devcloud_project_id,omitempty"` // codeci任务ID,唯一对应build_project_id CodeciJobId *string `json:"codeci_job_id,omitempty"` // 用户ID UserId *string `json:"user_id,omitempty"` // 构建编号 BuildNo *int32 `json:"build_no,omitempty"` // 每日构建编号,每日从1开始 DailyBuildNum *string `json:"daily_build_num,omitempty"` // 八爪鱼任务ID ExecutionId *string `json:"execution_id,omitempty"` // 仓库名称 RepoName *string `json:"repo_name,omitempty"` // 仓库id RepoId *string `json:"repo_id,omitempty"` // 仓库分支 Branch *string `json:"branch,omitempty"` // 仓库tag Tag *string `json:"tag,omitempty"` // 仓库commit ID Commit *string `json:"commit,omitempty"` // 仓库commit提交信息 CommitMessage *string `json:"commit_message,omitempty"` // commit创建时间 CommitCreateTime *string `json:"commit_create_time,omitempty"` // 触发类型 TriggerType *string `json:"trigger_type,omitempty"` // 构建类型 BuildType *string `json:"build_type,omitempty"` // 构建状态 Status *string `json:"status,omitempty"` // 租户ID DomainId *string `json:"domain_id,omitempty"` // 任务创建时间 CreateTime *string `json:"create_time,omitempty"` // 构建下发耗时 ScheduleTime *string `json:"schedule_time,omitempty"` // 构建排队耗时 QueuedTime *string `json:"queued_time,omitempty"` // 开始构建时间 StartTime *string `json:"start_time,omitempty"` // 八爪鱼真正开始构建时间 RunnableTime *string `json:"runnable_time,omitempty"` // 构建结束时间 FinishTime *string `json:"finish_time,omitempty"` // 构建时长 Duration *float32 `json:"duration,omitempty"` // record状态 RecordStatus *string `json:"record_status,omitempty"` // 是否使用自定义执行机 UsePrivateSlave *int32 `json:"use_private_slave,omitempty"` // 租户所在region Region *string `json:"region,omitempty"` // 错误信息 ErrMsg *string `json:"err_msg,omitempty"` // 构建配置类型,YAML或ACTION BuildConfigType *string `json:"build_config_type,omitempty"` }
RecordInfoResult 结果
func (RecordInfoResult) String ¶ added in v0.1.62
func (o RecordInfoResult) String() string
type RunJobRequest ¶
type RunJobRequest struct {
Body *RunJobRequestBody `json:"body,omitempty"`
}
RunJobRequest Request Object
func (RunJobRequest) String ¶
func (o RunJobRequest) String() string
type RunJobRequestBody ¶
type RunJobRequestBody struct { // 构建任务ID;编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串 JobId string `json:"job_id"` // 自定义参数 Parameter *[]ParameterItem `json:"parameter,omitempty"` Scm *Scm `json:"scm,omitempty"` }
RunJobRequestBody 执行任务接口请求体
func (RunJobRequestBody) String ¶
func (o RunJobRequestBody) String() string
type RunJobResponse ¶
type RunJobResponse struct { // 临时任务名称 OctopusJobName *string `json:"octopus_job_name,omitempty"` // 实际构建次数 ActualBuildNumber *string `json:"actual_build_number,omitempty"` // 构建每日编号 DailyBuildNumber *string `json:"daily_build_number,omitempty"` HttpStatusCode int `json:"-"` }
RunJobResponse Response Object
func (RunJobResponse) String ¶
func (o RunJobResponse) String() string
type Scm ¶
type Scm struct { // 代码Tag BuildTag *string `json:"build_tag,omitempty"` // 代码提交ID BuildCommitId *string `json:"build_commit_id,omitempty"` }
Scm 代码信息
type ShowFlowGraphRequest ¶ added in v0.1.67
type ShowFlowGraphRequest struct { // 父任务构建记录ID BuildFlowRecordId string `json:"build_flow_record_id"` }
ShowFlowGraphRequest Request Object
func (ShowFlowGraphRequest) String ¶ added in v0.1.67
func (o ShowFlowGraphRequest) String() string
type ShowFlowGraphResponse ¶ added in v0.1.67
type ShowFlowGraphResponse struct { // 状态 Success *bool `json:"success,omitempty"` // 消息 Message *string `json:"message,omitempty"` // 错误码 ErrCode *string `json:"err_code,omitempty"` Result *FlowGraphResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
ShowFlowGraphResponse Response Object
func (ShowFlowGraphResponse) String ¶ added in v0.1.67
func (o ShowFlowGraphResponse) String() string
type ShowHistoryDetailsRequest ¶
type ShowHistoryDetailsRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 构建任务的构建编号,从1开始,每次构建递增1 BuildNumber int32 `json:"build_number"` }
ShowHistoryDetailsRequest Request Object
func (ShowHistoryDetailsRequest) String ¶
func (o ShowHistoryDetailsRequest) String() string
type ShowHistoryDetailsResponse ¶
type ShowHistoryDetailsResponse struct { // 构建任务名称 JobName *string `json:"job_name,omitempty"` // 构建编号 BuildNumber *int32 `json:"build_number,omitempty"` // 构建任务所在项目的ID ProjectId *string `json:"project_id,omitempty"` // 构建任务所在项目的名称 ProjectName *string `json:"project_name,omitempty"` // 本次构建的参数,Map类型,敏感参数值返回*号 Parameters map[string]string `json:"parameters,omitempty"` // 本次任务的构建步骤详情,返回的步骤为页面可见步骤 BuildSteps *[]BuildStep `json:"build_steps,omitempty"` HttpStatusCode int `json:"-"` }
ShowHistoryDetailsResponse Response Object
func (ShowHistoryDetailsResponse) String ¶
func (o ShowHistoryDetailsResponse) String() string
type ShowJobListByProjectIdRequest ¶
type ShowJobListByProjectIdRequest struct { // CodeArts项目ID,32位数字、小写字母组合。 ProjectId string `json:"project_id"` // 分页页码, 表示从此页开始查询, page_index大于等于0 PageIndex int32 `json:"page_index"` // 每页显示的条目数量,page_size小于等于100 PageSize int32 `json:"page_size"` }
ShowJobListByProjectIdRequest Request Object
func (ShowJobListByProjectIdRequest) String ¶
func (o ShowJobListByProjectIdRequest) String() string
type ShowJobListByProjectIdResponse ¶
type ShowJobListByProjectIdResponse struct { // 任务列表 Jobs *[]Job `json:"jobs,omitempty"` // 任务总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
ShowJobListByProjectIdResponse Response Object
func (ShowJobListByProjectIdResponse) String ¶
func (o ShowJobListByProjectIdResponse) String() string
type ShowJobStatusRequest ¶
type ShowJobStatusRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` }
ShowJobStatusRequest Request Object
func (ShowJobStatusRequest) String ¶
func (o ShowJobStatusRequest) String() string
type ShowJobStatusResponse ¶
type ShowJobStatusResponse struct { // 任务运行结果 Result *bool `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
ShowJobStatusResponse Response Object
func (ShowJobStatusResponse) String ¶
func (o ShowJobStatusResponse) String() string
type ShowJobSuccessRatioRequest ¶
type ShowJobSuccessRatioRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 区间开始时间,格式yyyy-MM-dd。 StartTime string `json:"start_time"` // 区间结束时间,格式yyyy-MM-dd。 EndTime string `json:"end_time"` }
ShowJobSuccessRatioRequest Request Object
func (ShowJobSuccessRatioRequest) String ¶
func (o ShowJobSuccessRatioRequest) String() string
type ShowJobSuccessRatioResponse ¶
type ShowJobSuccessRatioResponse struct { // 任务成功构建次数 SuccessCount *int32 `json:"success_count,omitempty"` // 任务构建总次数 TotalCount *int32 `json:"total_count,omitempty"` // 任务成功率,精确到小数点后两位 SuccessRatio *float64 `json:"success_ratio,omitempty"` HttpStatusCode int `json:"-"` }
ShowJobSuccessRatioResponse Response Object
func (ShowJobSuccessRatioResponse) String ¶
func (o ShowJobSuccessRatioResponse) String() string
type ShowLastHistoryRequest ¶
type ShowLastHistoryRequest struct { // CodeArts项目ID,32位数字、小写字母组合。 ProjectId string `json:"project_id"` // 代码仓库名,不支持中文 RepositoryName string `json:"repository_name"` }
ShowLastHistoryRequest Request Object
func (ShowLastHistoryRequest) String ¶
func (o ShowLastHistoryRequest) String() string
type ShowLastHistoryResponse ¶
type ShowLastHistoryResponse struct { // 构建记录id--唯一key RecordId *string `json:"record_id,omitempty"` // 构建任务ID JobId *string `json:"job_id,omitempty"` // 构建任务名称 JobName *string `json:"job_name,omitempty"` // 构建编号 BuildNumber *int32 `json:"build_number,omitempty"` // 构建开始时间 StartTime *string `json:"start_time,omitempty"` // 构建结束时间 EndTime *string `json:"end_time,omitempty"` // 构建执行结果 Result *string `json:"result,omitempty"` // commitId CommitId *string `json:"commit_id,omitempty"` HttpStatusCode int `json:"-"` }
ShowLastHistoryResponse Response Object
func (ShowLastHistoryResponse) String ¶
func (o ShowLastHistoryResponse) String() string
type ShowListHistoryRequest ¶
type ShowListHistoryRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 分页页码, 表示从此页开始查询, offset大于等于0 Offset int32 `json:"offset"` // 每页显示的条目数量,limit小于等于100 Limit int32 `json:"limit"` // 距今天的时间区间(单位:天),interval小于等于30 Interval int32 `json:"interval"` }
ShowListHistoryRequest Request Object
func (ShowListHistoryRequest) String ¶
func (o ShowListHistoryRequest) String() string
type ShowListHistoryResponse ¶
type ShowListHistoryResponse struct { // 构建历史列表 HistoryRecords *[]HistoryRecord `json:"history_records,omitempty"` // 记录总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
ShowListHistoryResponse Response Object
func (ShowListHistoryResponse) String ¶
func (o ShowListHistoryResponse) String() string
type ShowListPeriodHistoryRequest ¶
type ShowListPeriodHistoryRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 分页页码, 表示从此页开始查询, offset大于等于0 Offset int32 `json:"offset"` // 每页显示的条目数量,limit小于等于100 Limit int32 `json:"limit"` // 区间开始时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天 StartTime string `json:"start_time"` // 区间结束时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天 EndTime string `json:"end_time"` }
ShowListPeriodHistoryRequest Request Object
func (ShowListPeriodHistoryRequest) String ¶
func (o ShowListPeriodHistoryRequest) String() string
type ShowListPeriodHistoryResponse ¶
type ShowListPeriodHistoryResponse struct { // 记录总数 Total *int32 `json:"total,omitempty"` // 构建历史列表 HistoryRecords *[]HistoryRecord1 `json:"history_records,omitempty"` HttpStatusCode int `json:"-"` }
ShowListPeriodHistoryResponse Response Object
func (ShowListPeriodHistoryResponse) String ¶
func (o ShowListPeriodHistoryResponse) String() string
type ShowOutputInfoRequest ¶ added in v0.1.67
type ShowOutputInfoRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 构建任务的构建编号,从1开始,每次构建递增1 BuildNo int32 `json:"build_no"` }
ShowOutputInfoRequest Request Object
func (ShowOutputInfoRequest) String ¶ added in v0.1.67
func (o ShowOutputInfoRequest) String() string
type ShowOutputInfoResponse ¶ added in v0.1.67
type ShowOutputInfoResponse struct { // 状态 Status *string `json:"status,omitempty"` // 错误 Error *interface{} `json:"error,omitempty"` Result *OutPutInfoResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
ShowOutputInfoResponse Response Object
func (ShowOutputInfoResponse) String ¶ added in v0.1.67
func (o ShowOutputInfoResponse) String() string
type ShowRecordDetailRequest ¶ added in v0.1.67
type ShowRecordDetailRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 构建任务的构建编号,从1开始,每次构建递增1 BuildNo int32 `json:"build_no"` }
ShowRecordDetailRequest Request Object
func (ShowRecordDetailRequest) String ¶ added in v0.1.67
func (o ShowRecordDetailRequest) String() string
type ShowRecordDetailResponse ¶ added in v0.1.67
type ShowRecordDetailResponse struct { // 状态 Status *string `json:"status,omitempty"` // 错误 Error *interface{} `json:"error,omitempty"` Result *RecordInfo2Result `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
ShowRecordDetailResponse Response Object
func (ShowRecordDetailResponse) String ¶ added in v0.1.67
func (o ShowRecordDetailResponse) String() string
type ShowRecordInfoRequest ¶ added in v0.1.62
type ShowRecordInfoRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 构建任务的构建编号,从1开始,每次构建递增1 BuildNo int32 `json:"build_no"` }
ShowRecordInfoRequest Request Object
func (ShowRecordInfoRequest) String ¶ added in v0.1.62
func (o ShowRecordInfoRequest) String() string
type ShowRecordInfoResponse ¶ added in v0.1.62
type ShowRecordInfoResponse struct { // 状态 Success *bool `json:"success,omitempty"` // 消息 Message *string `json:"message,omitempty"` // 错误码 ErrCode *string `json:"err_code,omitempty"` Result *RecordInfoResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
ShowRecordInfoResponse Response Object
func (ShowRecordInfoResponse) String ¶ added in v0.1.62
func (o ShowRecordInfoResponse) String() string
type StopBuildJobRequest ¶ added in v0.1.62
type StopBuildJobRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 构建任务的构建编号,从1开始,每次构建递增1 BuildNo int32 `json:"build_no"` }
StopBuildJobRequest Request Object
func (StopBuildJobRequest) String ¶ added in v0.1.62
func (o StopBuildJobRequest) String() string
type StopBuildJobResponse ¶ added in v0.1.62
type StopBuildJobResponse struct { // 是否停止成功 Success *bool `json:"success,omitempty"` // 返回结果 Result *string `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
StopBuildJobResponse Response Object
func (StopBuildJobResponse) String ¶ added in v0.1.62
func (o StopBuildJobResponse) String() string
type StopJobRequest ¶ added in v0.1.67
type StopJobRequest struct {
Body *StopJobRequestBody `json:"body,omitempty"`
}
StopJobRequest Request Object
func (StopJobRequest) String ¶ added in v0.1.67
func (o StopJobRequest) String() string
type StopJobRequestBody ¶ added in v0.1.67
type StopJobRequestBody struct { // 构建任务ID;编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串 JobId string `json:"job_id"` // 构建任务的构建编号,从1开始,每次构建递增1 BuildNo string `json:"build_no"` }
StopJobRequestBody 停止构建任务接口请求体
func (StopJobRequestBody) String ¶ added in v0.1.67
func (o StopJobRequestBody) String() string
type StopJobResponse ¶ added in v0.1.67
type StopJobResponse struct { // 构建停止结果 Result *bool `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
StopJobResponse Response Object
func (StopJobResponse) String ¶ added in v0.1.67
func (o StopJobResponse) String() string
type UpdateBuildJobParameter ¶ added in v0.1.67
type UpdateBuildJobParameter struct { // 参数定义名,默认为hudson.model.StringParameterDefinition Name *string `json:"name,omitempty"` // 构建执行参数子参数 Params *[]UpdateBuildJobParameterParam `json:"params,omitempty"` }
UpdateBuildJobParameter 创建构建作业参数
func (UpdateBuildJobParameter) String ¶ added in v0.1.67
func (o UpdateBuildJobParameter) String() string
type UpdateBuildJobParameterParam ¶ added in v0.1.67
type UpdateBuildJobParameterParam struct { // 参数字段名 Name *string `json:"name,omitempty"` // 参数字段值 Value *string `json:"value,omitempty"` // 枚举类参数限制 Limits *[]LimitsParam `json:"limits,omitempty"` }
UpdateBuildJobParameterParam 构建执行参数子参数
func (UpdateBuildJobParameterParam) String ¶ added in v0.1.67
func (o UpdateBuildJobParameterParam) String() string
type UpdateBuildJobRequest ¶ added in v0.1.67
type UpdateBuildJobRequest struct {
Body *UpdateBuildJobRequestBody `json:"body,omitempty"`
}
UpdateBuildJobRequest Request Object
func (UpdateBuildJobRequest) String ¶ added in v0.1.67
func (o UpdateBuildJobRequest) String() string
type UpdateBuildJobRequestBody ¶ added in v0.1.67
type UpdateBuildJobRequestBody struct { // 使用机器的架构 Arch string `json:"arch"` // 构建任务所在项目的ID ProjectId string `json:"project_id"` // 任务名称 JobName string `json:"job_name"` // 构建任务ID JobId string `json:"job_id"` // 是否自动更新子模块 AutoUpdateSubModule *string `json:"auto_update_sub_module,omitempty"` // 执行机规格 Flavor *string `json:"flavor,omitempty"` // 构建执行参数列表 Parameters *[]UpdateBuildJobParameter `json:"parameters,omitempty"` // 构建执行SCM Scms *[]UpdateBuildJobScm `json:"scms,omitempty"` // 构建执行的步骤 Steps []UpdateBuildJobSteps `json:"steps"` // host类型 HostType *string `json:"host_type,omitempty"` // 构建的配置类型 BuildConfigType *string `json:"build_config_type,omitempty"` }
UpdateBuildJobRequestBody 更新构建任务请求体
func (UpdateBuildJobRequestBody) String ¶ added in v0.1.67
func (o UpdateBuildJobRequestBody) String() string
type UpdateBuildJobResponse ¶ added in v0.1.67
type UpdateBuildJobResponse struct { Result *CreateBuildJobResponseBodyResult `json:"result,omitempty"` // 状态信息 Status *string `json:"status,omitempty"` // 错误信息 Error *string `json:"error,omitempty"` HttpStatusCode int `json:"-"` }
UpdateBuildJobResponse Response Object
func (UpdateBuildJobResponse) String ¶ added in v0.1.67
func (o UpdateBuildJobResponse) String() string
type UpdateBuildJobScm ¶ added in v0.1.67
type UpdateBuildJobScm struct { // 代码分支 Branch *string `json:"branch,omitempty"` // 代码仓地址 Url string `json:"url"` // repo的id RepoId *string `json:"repo_id,omitempty"` // 代码仓http地址 WebUrl *string `json:"web_url,omitempty"` // 仓库类别,Repo、Github等 ScmType string `json:"scm_type"` // 是否自动构建 IsAutoBuild *bool `json:"is_auto_build,omitempty"` // 构建类别 BuildType *string `json:"build_type,omitempty"` // 克隆深度 Depth *string `json:"depth,omitempty"` // endpointId EndPointId *string `json:"end_point_id,omitempty"` // source Source *string `json:"source,omitempty"` }
UpdateBuildJobScm 构建执行SCM
func (UpdateBuildJobScm) String ¶ added in v0.1.67
func (o UpdateBuildJobScm) String() string
type UpdateBuildJobSteps ¶ added in v0.1.67
type UpdateBuildJobSteps struct { // 具体的构建步骤 Properties map[string]interface{} `json:"properties,omitempty"` // 构建模块id ModuleId string `json:"module_id"` // 构建模块名称 Name string `json:"name"` // 构建版本 Version *string `json:"version,omitempty"` // 是否开启 Enable *bool `json:"enable,omitempty"` }
UpdateBuildJobSteps 构建执行的步骤
func (UpdateBuildJobSteps) String ¶ added in v0.1.67
func (o UpdateBuildJobSteps) String() string
type UpdateNoticeRequest ¶ added in v0.1.67
type UpdateNoticeRequest struct { // 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` Body *UpdateNoticeRequestBody `json:"body,omitempty"` }
UpdateNoticeRequest Request Object
func (UpdateNoticeRequest) String ¶ added in v0.1.67
func (o UpdateNoticeRequest) String() string
type UpdateNoticeRequestBody ¶ added in v0.1.67
type UpdateNoticeRequestBody struct { // 通知类型 NoticeType string `json:"notice_type"` // 开启的通知的种类 EnabledEventTypeNames []string `json:"enabled_event_type_names"` // 通知参数配置 ParamConfig *string `json:"param_config,omitempty"` }
UpdateNoticeRequestBody 更新消息接口返回体
func (UpdateNoticeRequestBody) String ¶ added in v0.1.67
func (o UpdateNoticeRequestBody) String() string
type UpdateNoticeResponse ¶ added in v0.1.67
type UpdateNoticeResponse struct { // 返回错误信息 Result *string `json:"result,omitempty"` // 返回错误信息 Error *string `json:"error,omitempty"` // 返回状态信息 Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
UpdateNoticeResponse Response Object
func (UpdateNoticeResponse) String ¶ added in v0.1.67
func (o UpdateNoticeResponse) String() string
type Vertices ¶ added in v0.1.67
type Vertices struct { // 子任务构建记录ID Id *string `json:"id,omitempty"` // 子任务执行状态 Status *string `json:"status,omitempty"` // 子任务名称 DisplayName *string `json:"display_name,omitempty"` // 子任务构建耗时 BuildDuration *int32 `json:"build_duration,omitempty"` // 子任务开始时间 StartTime *string `json:"start_time,omitempty"` // 子任务结束时间 FinishTime *string `json:"finish_time,omitempty"` // 子任务构建编号 BuildNo *string `json:"build_no,omitempty"` }
Source Files ¶
- model_build_step.go
- model_create_build_job_parameter.go
- model_create_build_job_parameter_param.go
- model_create_build_job_request.go
- model_create_build_job_request_body.go
- model_create_build_job_response.go
- model_create_build_job_response_body_result.go
- model_create_build_job_scm.go
- model_create_build_job_steps.go
- model_create_template.go
- model_create_template_steps.go
- model_create_templates_items.go
- model_create_templates_request.go
- model_create_templates_request_body.go
- model_create_templates_response.go
- model_delete_build_job_request.go
- model_delete_build_job_response.go
- model_delete_build_job_response_body_result.go
- model_delete_templates_request.go
- model_delete_templates_response.go
- model_disable_build_job_request.go
- model_disable_build_job_response.go
- model_disable_notice_request.go
- model_disable_notice_response.go
- model_download_build_log_request.go
- model_download_build_log_response.go
- model_download_keystore_request.go
- model_download_keystore_response.go
- model_download_log_by_record_id_request.go
- model_download_log_by_record_id_response.go
- model_download_task_log_request.go
- model_download_task_log_response.go
- model_enable_build_job_request.go
- model_enable_build_job_response.go
- model_flow_graph_result.go
- model_flow_graph_result_edges.go
- model_history_record.go
- model_history_record_1.go
- model_job.go
- model_limits_param.go
- model_list_job_config_request.go
- model_list_job_config_response.go
- model_list_notice_request.go
- model_list_notice_response.go
- model_list_templates_request.go
- model_list_templates_response.go
- model_out_put_info_result.go
- model_out_put_result.go
- model_parameter_item.go
- model_query_job_notice_items.go
- model_query_template.go
- model_query_templates_items.go
- model_query_templates_result.go
- model_record_info2_result.go
- model_record_info_result.go
- model_run_job_request.go
- model_run_job_request_body.go
- model_run_job_response.go
- model_scm.go
- model_show_flow_graph_request.go
- model_show_flow_graph_response.go
- model_show_history_details_request.go
- model_show_history_details_response.go
- model_show_job_list_by_project_id_request.go
- model_show_job_list_by_project_id_response.go
- model_show_job_status_request.go
- model_show_job_status_response.go
- model_show_job_success_ratio_request.go
- model_show_job_success_ratio_response.go
- model_show_last_history_request.go
- model_show_last_history_response.go
- model_show_list_history_request.go
- model_show_list_history_response.go
- model_show_list_period_history_request.go
- model_show_list_period_history_response.go
- model_show_output_info_request.go
- model_show_output_info_response.go
- model_show_record_detail_request.go
- model_show_record_detail_response.go
- model_show_record_info_request.go
- model_show_record_info_response.go
- model_stop_build_job_request.go
- model_stop_build_job_response.go
- model_stop_job_request.go
- model_stop_job_request_body.go
- model_stop_job_response.go
- model_update_build_job_parameter.go
- model_update_build_job_parameter_param.go
- model_update_build_job_request.go
- model_update_build_job_request_body.go
- model_update_build_job_response.go
- model_update_build_job_scm.go
- model_update_build_job_steps.go
- model_update_notice_request.go
- model_update_notice_request_body.go
- model_update_notice_response.go
- model_vertices.go