Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBuildNotActive = errors.New("build not yet active")
View Source
var ErrBuildNotFound = errors.New("build not found")
Functions ¶
This section is empty.
Types ¶
type BuildDelegate ¶
type BuildDelegate interface {
InputDelegate(lager.Logger, atc.GetPlan, event.OriginLocation, string) exec.GetDelegate
ExecutionDelegate(lager.Logger, atc.TaskPlan, event.OriginLocation, string) exec.TaskDelegate
OutputDelegate(lager.Logger, atc.PutPlan, event.OriginLocation, string) exec.PutDelegate
Finish(lager.Logger, error, exec.Success, bool)
}
type BuildDelegateFactory ¶
type BuildDelegateFactory interface {
Delegate(buildID int) BuildDelegate
}
func NewBuildDelegateFactory ¶
func NewBuildDelegateFactory(db EngineDB) BuildDelegateFactory
type BuildLocker ¶
type Engine ¶
type Engine interface {
Name() string
CreateBuild(db.Build, atc.Plan) (Build, error)
LookupBuild(db.Build) (Build, error)
}
func NewDBEngine ¶
func NewDBEngine(engines Engines, buildDB BuildDB, locker BuildLocker) Engine
func NewExecEngine ¶
func NewExecEngine(factory exec.Factory, delegateFactory BuildDelegateFactory, db EngineDB) Engine
type EngineDB ¶
type EngineDB interface {
SaveBuildEvent(buildID int, event atc.Event) error
FinishBuild(buildID int, status db.Status) error
SaveBuildEngineMetadata(buildID int, metadata string) error
SaveBuildInput(buildID int, input db.BuildInput) (db.SavedVersionedResource, error)
SaveBuildOutput(buildID int, vr db.VersionedResource) (db.SavedVersionedResource, error)
}
type UnknownEngineError ¶
type UnknownEngineError struct {
Engine string
}
func (UnknownEngineError) Error ¶
func (err UnknownEngineError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.