pipeline

package
v0.0.0-...-feeaf7e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env = workflow.Env

type Envs

type Envs = workflow.Envs

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

func NewPipeline(workflow *workflow.Workflow) *Pipeline

func (Pipeline) String

func (p Pipeline) String() string

type Status

type Status = status.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

type StatusOption func(pipeline *Pipeline) string

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

Jump to

Keyboard shortcuts

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