runner

package
v0.0.0-...-2a3d657 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	// contains filtered or unexported fields
}

func Load

func Load(tree *parser.Tree) *Build

func (*Build) RunNode

func (b *Build) RunNode(state *State, flags parser.NodeType) error

type State

type State struct {
	sync.Mutex

	Repo      *plugin.Repo
	Build     *plugin.Build
	BuildLast *plugin.Build
	Job       *plugin.Job
	System    *plugin.System
	Workspace *plugin.Workspace

	// Client is an instance of the Docker client
	// used to spawn container tasks.
	Client dockerclient.Client

	Stdout, Stderr io.Writer
}

State represents the state of an execution.

func (*State) Exit

func (s *State) Exit(code int)

Exit writes the exit code. A non-zero value indicates the build exited with errors.

func (*State) ExitCode

func (s *State) ExitCode() int

ExitCode reports the process exit code. A non-zero value indicates the build exited with errors.

func (*State) Failed

func (s *State) Failed() bool

Failed reports whether the execution has failed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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