pipelines

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2015 License: Apache-2.0 Imports: 5 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

func (*Pipeline) AddStage

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

AddStage appends specified stage to the pipeline.

func (*Pipeline) Build

func (self *Pipeline) Build()

func (*Pipeline) Size

func (self *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 (self *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