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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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