engine

package
Version: v3.3.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBActionsBuildEventsDelegate

func NewDBActionsBuildEventsDelegate(
	build db.Build,
	eventOrigin event.Origin,
	implicitOutputsRepo *implicitOutputsRepo,
) exec.ActionsBuildEventsDelegate

func NewDBTaskBuildEventsDelegate

func NewDBTaskBuildEventsDelegate(
	build db.Build,
	eventOrigin event.Origin,
) exec.TaskBuildEventsDelegate

Types

type Build

type Build interface {
	Metadata() string

	Abort(lager.Logger) error
	Resume(lager.Logger)
}

type BuildDelegate

type BuildDelegate interface {
	DBActionsBuildEventsDelegate(atc.PlanID) exec.ActionsBuildEventsDelegate
	DBTaskBuildEventsDelegate(atc.PlanID) exec.TaskBuildEventsDelegate
	ImageFetchingDelegate(atc.PlanID) exec.ImageFetchingDelegate

	Finish(lager.Logger, error, exec.Success, bool)
}

type BuildDelegateFactory

type BuildDelegateFactory interface {
	Delegate(db.Build) BuildDelegate
}

func NewBuildDelegateFactory

func NewBuildDelegateFactory() BuildDelegateFactory

type Engine

type Engine interface {
	Name() string

	CreateBuild(lager.Logger, db.Build, atc.Plan) (Build, error)
	LookupBuild(lager.Logger, db.Build) (Build, error)
	ReleaseAll(lager.Logger)
}

func NewDBEngine

func NewDBEngine(engines Engines) Engine

func NewExecEngine

func NewExecEngine(
	factory exec.Factory,
	delegateFactory BuildDelegateFactory,
	externalURL string,
) Engine

func NewExecV1DummyEngine

func NewExecV1DummyEngine() Engine

type Engines

type Engines []Engine

func (Engines) Lookup

func (engines Engines) Lookup(name string) (Engine, bool)

type StepMetadata

type StepMetadata struct {
	BuildID int

	PipelineName string
	JobName      string
	BuildName    string
	ExternalURL  string
	TeamName     string
}

func (StepMetadata) Env

func (metadata StepMetadata) Env() []string

type UnknownEngineError

type UnknownEngineError struct {
	Engine string
}

func (UnknownEngineError) Error

func (err UnknownEngineError) Error() string

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL