engine

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 engine defines the Engine struct, which execute registered pipelines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Resources    *pipelines.Resources
	MonitorCh    *chan stages.Mediator
	Opts         *config.Opts
	EnvVariables *config.EnvVariables
}

Engine executes the its pipeline.

func (*Engine) Execute

func (e *Engine) Execute(stage stages.Stage, mediator stages.Mediator) stages.Mediator

Execute executes a stage using the supplied mediator

func (*Engine) ExecuteStage

func (e *Engine) ExecuteStage(stage stages.Stage)

ExecuteStage executes the supplied stage

func (*Engine) RunOnce

func (e *Engine) RunOnce() *Result

RunOnce executes the pipeline and the cleanup prccedures.

type Result added in v1.1.0

type Result struct {
	Pipeline *stages.Mediator
	Cleanup  *stages.Mediator
}

Result stores the output in pipelines.

func (*Result) IsSucceeded added in v1.1.0

func (r *Result) IsSucceeded() bool

IsSucceeded shows the pipeline finished successfully or not.

Jump to

Keyboard shortcuts

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