Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipeline ¶
type Pipeline struct { orm.Model WorkflowId int64 Number uint32 Uuid string Salt string Yaml string FirstDispatchedAt *time.Time LastDispatchedAt *time.Time DispatchSucceedAt *time.Time DispatchTimes int64 RunnerId int64 FirstBorrowRunnerAt *time.Time BorrowRunnerSucceedAt *time.Time ReleaseRunnerAt *time.Time StartedAt *time.Time ClosedAt *time.Time Duration int64 TriggeredCause string FailedCause string Envs Envs Status Status LastStatusChangedAt *time.Time StatusMessage string RawLog string }
func NewPipeline ¶
type Status ¶
const ( CachePersistenceError Status = status.CachePersistenceError LogPersistenceError Status = status.LogPersistenceError RunnerInternalError Status = status.RunnerInternalError RunnerPrepareError Status = status.RunnerPrepareError )
const BorrowRunnerTimeouted Status = status.BorrowRunnerTimeouted
const BuildAborted Status = status.BuildAborted
const BuildFailed Status = status.BuildFailed
const BuildQueuing Status = status.BuildQueuing
const BuildRunning Status = status.BuildRunning
const BuildSucceed Status = status.BuildSucceed
const BuildTimeouted Status = status.BuildTimeouted
const DispatchAbortSucceed Status = status.DispatchAbortSucceed
const DispatchFailed Status = status.DispatchFailed
const DispatchSucceed Status = status.DispatchSucceed
const DispatchTimeouted Status = status.DispatchTimeouted
const NoAvailableRunnerDispatchTimeouted Status = status.NoAvailableRunnerDispatchTimeouted
const PreCheckFailed Status = status.PreCheckFailed
const SelfHostRunnerDispatchTimeouted Status = status.SelfHostRunnerDispatchTimeouted
const WaitForAborting Status = status.WaitForAborting
const WaitForBorrowing Status = status.WaitForBorrowing
const WaitForDispatching Status = status.WaitForDispatching
type StatusOption ¶
func WithCloseAt ¶
func WithCloseAt(at time.Time) StatusOption
func WithFailedCause ¶
func WithFailedCause(failedCause string) StatusOption
func WithStartedAt ¶
func WithStartedAt(at time.Time) StatusOption
func WithStatusMessage ¶
func WithStatusMessage(msg string) StatusOption
Click to show internal directories.
Click to hide internal directories.