model

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 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 {
	XLanguage *string `json:"X-Language,omitempty"`

	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 {
	XLanguage *string `json:"X-Language,omitempty"`

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

Request Object

func (CreatePipelineByTemplateRequest) String

type CreatePipelineByTemplateResponse

type CreatePipelineByTemplateResponse struct {
	TaskId         *string `json:"task_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePipelineByTemplateResponse) String

type ListPipleineBuildResultRequest

type ListPipleineBuildResultRequest struct {
	XLanguage *string `json:"X-Language,omitempty"`

	ProjectId string `json:"project_id"`

	StartDate string `json:"start_date"`

	EndDate string `json:"end_date"`

	Offset int32 `json:"offset"`

	Limit int32 `json:"limit"`
}

Request Object

func (ListPipleineBuildResultRequest) String

type ListPipleineBuildResultResponse

type ListPipleineBuildResultResponse struct {
	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 {
	XLanguage *string `json:"X-Language,omitempty"`

	TemplateType string `json:"template_type"`

	IsBuildIn string `json:"is_build_in"`

	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"`

	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 string `json:"id"`

	Language string `json:"language"`
}

CodeCheck任务语言参数

func (ParamTypeLimits) String

func (o ParamTypeLimits) String() string

type PipelineBuildResult

type PipelineBuildResult struct {
	BuildId string `json:"build_id"`

	ElapseTime *string `json:"elapse_time,omitempty"`

	EndTime string `json:"end_time"`

	Outcome string `json:"outcome"`

	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"`

	PipelineId string `json:"pipeline_id"`

	DetailUrl string `json:"detail_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:"paramtype"`

	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 {
	XLanguage *string `json:"X-Language,omitempty"`

	PipelineId string `json:"pipeline_id"`
}

Request Object

func (RemovePipelineRequest) String

func (o RemovePipelineRequest) String() string

type RemovePipelineResponse

type RemovePipelineResponse struct {
	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 {
	XLanguage *string `json:"X-Language,omitempty"`

	AgentId string `json:"agent_id"`
}

Request Object

func (ShowAgentStatusRequest) String

func (o ShowAgentStatusRequest) String() string

type ShowAgentStatusResponse

type ShowAgentStatusResponse struct {
	Status *string `json:"status,omitempty"`

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

Response Object

func (ShowAgentStatusResponse) String

func (o ShowAgentStatusResponse) String() string

type ShowInstanceStatusRequest

type ShowInstanceStatusRequest struct {
	XLanguage *string `json:"X-Language,omitempty"`

	TaskId string `json:"task_id"`
}

Request Object

func (ShowInstanceStatusRequest) String

func (o ShowInstanceStatusRequest) String() string

type ShowInstanceStatusResponse

type ShowInstanceStatusResponse struct {
	TaskId *string `json:"task_id,omitempty"`

	TaskStatus *string `json:"task_status,omitempty"`

	PipelineId *string `json:"pipeline_id,omitempty"`

	PipelineName *string `json:"pipeline_name,omitempty"`

	PipelineUrl    *string `json:"pipeline_url,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowInstanceStatusResponse) String

type ShowPipleineStatusRequest

type ShowPipleineStatusRequest struct {
	XLanguage *string `json:"X-Language,omitempty"`

	PipelineId string `json:"pipeline_id"`

	BuildId *string `json:"build_id,omitempty"`
}

Request Object

func (ShowPipleineStatusRequest) String

func (o ShowPipleineStatusRequest) String() string

type ShowPipleineStatusResponse

type ShowPipleineStatusResponse struct {
	PipelineId *string `json:"pipeline_id,omitempty"`

	PipelineName *string `json:"pipeline_name,omitempty"`

	Executor *string `json:"executor,omitempty"`

	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 {
	XLanguage *string `json:"X-Language,omitempty"`

	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 {
	TemplateId *string `json:"template_id,omitempty"`

	TemplateName *string `json:"template_name,omitempty"`

	TemplateType *string `json:"template_type,omitempty"`

	UserId *string `json:"user_id,omitempty"`

	UserName *string `json:"user_name,omitempty"`

	DomainId *string `json:"domain_id,omitempty"`

	DomainName *string `json:"domain_name,omitempty"`

	IsBuildIn *bool `json:"is_build_in,omitempty"`

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

	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[string]map[string]string `json:"flow,omitempty"`

	States         map[string]interface{} `json:"states,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ShowTemplateDetailResponse) String

type SlaveRegister

type SlaveRegister struct {
	ClusterId string `json:"cluster_id"`

	SlaveName string `json:"slave_name"`

	WorkDir string `json:"work_dir"`

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

	Version *string `json:"version,omitempty"`

	Retry *bool `json:"retry,omitempty"`

	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"`

	GitUrl string `json:"git_url"`

	CodehubId string `json:"codehub_id"`

	WebUrl string `json:"web_url"`

	BranchList []string `json:"branch_list"`

	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 {
	XLanguage *string `json:"X-Language,omitempty"`

	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 {
	PipelineId *string `json:"pipeline_id,omitempty"`

	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"`

	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 {
	XLanguage *string `json:"X-Language,omitempty"`

	PipelineId string `json:"pipeline_id"`

	BuildId string `json:"build_id"`
}

Request Object

func (StopPipelineNewRequest) String

func (o StopPipelineNewRequest) String() string

type StopPipelineNewResponse

type StopPipelineNewResponse struct {
	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[string]map[string]string `json:"flow"`

	States map[string]interface{} `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"`

	Limits []ParamTypeLimits `json:"limits"`

	Constraints []Constraint `json:"constraints"`
}

流水线参数

func (TemplateParam) String

func (o TemplateParam) String() string

type TemplateView

type TemplateView struct {
	TemplateId string `json:"template_id"`

	TemplateName string `json:"template_name"`

	TemplateType string `json:"template_type"`

	TemplateUrl string `json:"template_url"`

	UserId string `json:"user_id"`

	UserName string `json:"user_name"`

	DomainId string `json:"domain_id"`

	DomainName string `json:"domain_name"`

	IsBuildIn bool `json:"is_build_in"`

	Region string `json:"region"`

	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[string]map[string]string `json:"flow"`

	States map[string]interface{} `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 {
	Parameter []PipelineParam `json:"parameter"`

	Source []Source `json:"source"`

	Name string `json:"name"`

	ProjectId string `json:"project_id"`

	ProjectName string `json:"project_name"`
}

流水线参数详情

func (Workflow) String

func (o Workflow) String() string

Jump to

Keyboard shortcuts

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