pipelines

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package pipelines defines the pipeline and the resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

type Pipeline struct {
	Stages list.List
}

Pipeline stores the list of stages.

func NewPipeline

func NewPipeline() *Pipeline

NewPipeline create a new pipeline instance

func (*Pipeline) AddStage

func (resources *Pipeline) AddStage(stage stages.Stage)

AddStage appends specified stage to the pipeline.

func (*Pipeline) Build

func (resources *Pipeline) Build()

Build builds a pipeline for the current resources

func (*Pipeline) GetStageResult added in v1.3.0

func (resources *Pipeline) GetStageResult(name string, stageType string) (string, error)

GetStageResult returns the result (stdout, stderr, return value) of specified stage.

func (*Pipeline) Size

func (resources *Pipeline) Size() int

Size returns the number of stages in the pipeline.

type Resources added in v1.1.0

type Resources struct {
	// Pipeline stores the list of stages to be executed.
	Pipeline *Pipeline

	// Cleanup stores the list of stages extecuted after Pipeline.
	Cleanup *Pipeline

	// Reporter stores the messenger client which report the result to the server.
	Reporter messengers.Messenger

	// RepoService is a client of VCS services such as GitHub and reports the result to the service.
	RepoService services.Service
}

Resources stores the settings loaded from the configuation file.

func (*Resources) ReportStageResult added in v1.1.0

func (resources *Resources) ReportStageResult(stage stages.Stage, resultStr string)

ReportStageResult throw the results of specified stage to the messenger services.

Jump to

Keyboard shortcuts

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