model

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadKeystoreRequest

type DownloadKeystoreRequest struct {
	FileName string `json:"file_name"`

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

	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 Job

type Job struct {
	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"`
}

func (Job) String

func (o Job) String() string

type ParameterItem

type ParameterItem struct {
	Name string `json:"name"`

	Value string `json:"value"`
}

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

	BuildCommitId *string `json:"build_commit_id,omitempty"`
}

代码信息

func (Scm) String

func (o Scm) String() string

type ShowJobListByProjectIdRequest

type ShowJobListByProjectIdRequest struct {
	ProjectId string `json:"project_id"`

	PageIndex int32 `json:"page_index"`

	PageSize int32 `json:"page_size"`
}

Request Object

func (ShowJobListByProjectIdRequest) String

type ShowJobListByProjectIdResponse

type ShowJobListByProjectIdResponse struct {
	Jobs *[]Job `json:"jobs,omitempty"`

	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowJobListByProjectIdResponse) String

type ShowJobStatusRequest

type ShowJobStatusRequest struct {
	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 ShowLastHistoryRequest

type ShowLastHistoryRequest struct {
	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 {
	RecordId *string `json:"record_id,omitempty"`

	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       *string `json:"commit_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowLastHistoryResponse) String

func (o ShowLastHistoryResponse) String() string

type ShowListHistoryRequest

type ShowListHistoryRequest struct {
	JobId string `json:"job_id"`

	Offset int32 `json:"offset"`

	Limit int32 `json:"limit"`

	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 {
	JobId string `json:"job_id"`

	Offset int32 `json:"offset"`

	Limit int32 `json:"limit"`

	StartTime string `json:"start_time"`

	EndTime string `json:"end_time"`
}

Request Object

func (ShowListPeriodHistoryRequest) String

type ShowListPeriodHistoryResponse

type ShowListPeriodHistoryResponse struct {
	HistoryRecords *[]HistoryRecord `json:"history_records,omitempty"`

	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowListPeriodHistoryResponse) String

Jump to

Keyboard shortcuts

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