Documentation ¶
Index ¶
- type BuildStep
- type DownloadKeystoreRequest
- type DownloadKeystoreResponse
- type HistoryRecord
- type HistoryRecord1
- type Job
- type ParameterItem
- type RunJobRequest
- type RunJobRequestBody
- type RunJobResponse
- type Scm
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildStep ¶ added in v0.0.73
type DownloadKeystoreRequest ¶
type DownloadKeystoreRequest struct { // 下载的文件名称 FileName string `json:"file_name"` // 租户ID。32位数字、小写字母组合 DomainId string `json:"domain_id"` }
Request Object
func (DownloadKeystoreRequest) String ¶
func (o DownloadKeystoreRequest) String() string
type DownloadKeystoreResponse ¶
type DownloadKeystoreResponse struct { HttpStatusCode int `json:"-"` Body io.ReadCloser `json:"-" type:"stream"` }
Response Object
func (DownloadKeystoreResponse) Consume ¶
func (o DownloadKeystoreResponse) Consume(writer io.Writer) (int64, error)
func (DownloadKeystoreResponse) String ¶
func (o DownloadKeystoreResponse) 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 ¶ added in v0.0.73
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 ¶ added in v0.0.73
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 ParameterItem ¶
func (ParameterItem) String ¶
func (o ParameterItem) String() string
type RunJobRequest ¶
type RunJobRequest struct {
Body *RunJobRequestBody `json:"body,omitempty"`
}
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"` }
执行任务接口请求体
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:"-"` }
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"` }
代码信息
type ShowHistoryDetailsRequest ¶ added in v0.0.73
type ShowHistoryDetailsRequest struct { // 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 构建任务的构建编号,从1开始,每次构建递增1 BuildNumber int32 `json:"build_number"` }
Request Object
func (ShowHistoryDetailsRequest) String ¶ added in v0.0.73
func (o ShowHistoryDetailsRequest) String() string
type ShowHistoryDetailsResponse ¶ added in v0.0.73
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:"-"` }
Response Object
func (ShowHistoryDetailsResponse) String ¶ added in v0.0.73
func (o ShowHistoryDetailsResponse) String() string
type ShowJobListByProjectIdRequest ¶
type ShowJobListByProjectIdRequest struct { // DevCloud项目ID,32位数字、小写字母组合。[查询项目列表](https://support.huaweicloud.com/api-projectman/ListProjectsV4.html) ProjectId string `json:"project_id"` // 分页页码, 表示从此页开始查询, page_index大于等于0 PageIndex int32 `json:"page_index"` // 每页显示的条目数量,page_size小于等于100 PageSize int32 `json:"page_size"` }
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:"-"` }
Response Object
func (ShowJobListByProjectIdResponse) String ¶
func (o ShowJobListByProjectIdResponse) String() string
type ShowJobStatusRequest ¶
type ShowJobStatusRequest struct { // 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` }
Request Object
func (ShowJobStatusRequest) String ¶
func (o ShowJobStatusRequest) String() string
type ShowJobStatusResponse ¶
type ShowJobStatusResponse struct { // 任务运行结果 Result *bool `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowJobStatusResponse) String ¶
func (o ShowJobStatusResponse) String() string
type ShowJobSuccessRatioRequest ¶ added in v0.0.84
type ShowJobSuccessRatioRequest struct { // 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。 JobId string `json:"job_id"` // 区间开始时间,格式yyyy-MM-dd。 StartTime string `json:"start_time"` // 区间结束时间,格式yyyy-MM-dd。 EndTime string `json:"end_time"` }
Request Object
func (ShowJobSuccessRatioRequest) String ¶ added in v0.0.84
func (o ShowJobSuccessRatioRequest) String() string
type ShowJobSuccessRatioResponse ¶ added in v0.0.84
type ShowJobSuccessRatioResponse struct { // 任务成功构建次数 SuccessCount *int32 `json:"success_count,omitempty"` // 任务构建总次数 TotalCount *int32 `json:"total_count,omitempty"` // 任务成功率,精确到小数点后两位 SuccessRatio *float64 `json:"success_ratio,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowJobSuccessRatioResponse) String ¶ added in v0.0.84
func (o ShowJobSuccessRatioResponse) String() string
type ShowLastHistoryRequest ¶
type ShowLastHistoryRequest struct { // DevCloud项目ID,32位数字、小写字母组合。[查询项目列表](https://support.huaweicloud.com/api-projectman/ListProjectsV4.html) ProjectId string `json:"project_id"` // 代码仓库名,不支持中文 RepositoryName string `json:"repository_name"` }
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:"-"` }
Response Object
func (ShowLastHistoryResponse) String ¶
func (o ShowLastHistoryResponse) String() string
type ShowListHistoryRequest ¶
type ShowListHistoryRequest struct { // 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器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"` }
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:"-"` }
Response Object
func (ShowListHistoryResponse) String ¶
func (o ShowListHistoryResponse) String() string
type ShowListPeriodHistoryRequest ¶
type ShowListPeriodHistoryRequest struct { // 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器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"` }
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:"-"` }
Response Object
func (ShowListPeriodHistoryResponse) String ¶
func (o ShowListPeriodHistoryResponse) String() string
Source Files ¶
- model_build_step.go
- model_download_keystore_request.go
- model_download_keystore_response.go
- model_history_record.go
- model_history_record_1.go
- model_job.go
- model_parameter_item.go
- model_run_job_request.go
- model_run_job_request_body.go
- model_run_job_response.go
- model_scm.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
Click to show internal directories.
Click to hide internal directories.