builder

package
v0.0.0-...-afaf855 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAborted = errors.New("build aborted")
View Source
var ErrNoImageSpecified = errors.New("no image specified")

Functions

This section is empty.

Types

type Builder

type Builder interface {
	// begin execution of a build, fetching all inputs and spawning the process
	Start(turbine.Build, event.Emitter, <-chan struct{}) (RunningBuild, error)

	// attach to a running build, forwarding output events
	//
	// this will be called again after turbine restarts
	Attach(RunningBuild, event.Emitter, <-chan struct{}) (ExitedBuild, error)

	// execute an arbitrary process in a running container
	Hijack(string, gapi.ProcessSpec, gapi.ProcessIO) (gapi.Process, error)

	// process an exited build's outputs
	Finish(ExitedBuild, event.Emitter, <-chan struct{}) (turbine.Build, error)
}

func NewBuilder

func NewBuilder(
	gardenClient gapi.Client,
	inputFetcher inputs.Fetcher,
	outputPerformer outputs.Performer,
) Builder

type ExitedBuild

type ExitedBuild struct {
	Build turbine.Build

	Container gapi.Container

	ExitStatus int
}

type RunningBuild

type RunningBuild struct {
	Build turbine.Build

	Container gapi.Container

	ProcessID uint32
	Process   gapi.Process
}

type UnsatisfiedInputError

type UnsatisfiedInputError struct {
	InputName string
}

func (UnsatisfiedInputError) Error

func (err UnsatisfiedInputError) Error() string

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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