Documentation ¶
Index ¶
- type Builds
- func (c *Builds) BuildDependencies(build *models.Build) runnerCommon.Dependencies
- func (c *Builds) BuildsForPipelineAndStage(pipelineID, stageIdx int64) []*models.Build
- func (c *Builds) CreateFromPipeline(pipeline *models.Pipeline) error
- func (c *Builds) DoUpdateState(build *models.Build, state string, failureReason *string) (*models.Build, error)
- func (c *Builds) Enqueue(build *models.Build, lastStageState string, hadPreviousFailure bool)
- func (c *Builds) ForRunner(runner *models.Runner) (*models.Build, error)
- func (c *Builds) MapDependency(builds []models.Build) runnerCommon.Dependencies
- func (c *Builds) NamedDependencies(build *models.Build, name string) runnerCommon.Dependencies
- func (c *Builds) StartBuild(build *models.Build, runner *models.Runner) (*models.Build, error)
- func (c *Builds) TransitionState(build *models.Build, state *string, failureReason *string, pipelineNotify bool) (*models.Build, error)
- func (c *Builds) UpdateState(build *models.Build, state string, failureReason *string) (*models.Build, error)
- type LastState
- type MatrixBuild
- type PipelineStats
- type Pipelines
- func (p *Pipelines) BuildsByState(pipelineID int64) (*PipelineStats, error)
- func (p *Pipelines) Cancel(pipelineID int64) error
- func (p *Pipelines) DoCancel(pipelineID int64) error
- func (p *Pipelines) Failed(pipelineID int64) error
- func (p *Pipelines) Run(pipeline *models.Pipeline) error
- func (p *Pipelines) Success(pipelineID int64) error
- func (p *Pipelines) Update(pipeline *models.Pipeline, updates map[string]interface{}) error
- func (p *Pipelines) UpdateState(pipelineID int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builds ¶
type Builds struct {
// contains filtered or unexported fields
}
Builds --
func (*Builds) BuildDependencies ¶
func (c *Builds) BuildDependencies(build *models.Build) runnerCommon.Dependencies
BuildDependencies --
func (*Builds) BuildsForPipelineAndStage ¶
BuildsForPipelineAndStage --
func (*Builds) CreateFromPipeline ¶
CreateFromPipeline --
func (*Builds) DoUpdateState ¶
func (c *Builds) DoUpdateState(build *models.Build, state string, failureReason *string) (*models.Build, error)
DoUpdateState --
func (*Builds) MapDependency ¶
func (c *Builds) MapDependency(builds []models.Build) runnerCommon.Dependencies
MapDependency --
func (*Builds) NamedDependencies ¶
func (c *Builds) NamedDependencies(build *models.Build, name string) runnerCommon.Dependencies
NamedDependencies --
func (*Builds) StartBuild ¶
StartBuild --
type MatrixBuild ¶
MatrixBuild --
type PipelineStats ¶
type PipelineStats struct { Failed int64 Successful int64 Canceled int64 AllowedFailures int64 OnFailure int64 Manual int64 Skipped int64 }
PipelineStats --
type Pipelines ¶
type Pipelines struct {
// contains filtered or unexported fields
}
Pipelines --
func (*Pipelines) BuildsByState ¶
func (p *Pipelines) BuildsByState(pipelineID int64) (*PipelineStats, error)
BuildsByState returns stats based on build states
func (*Pipelines) UpdateState ¶
UpdateState --
Click to show internal directories.
Click to hide internal directories.