engine

package
v6.7.3-0...-1f455d7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuildStepDelegate

func NewBuildStepDelegate(
	build db.Build,
	planID atc.PlanID,
	state exec.RunState,
	clock clock.Clock,
	policyChecker policy.Checker,
) *buildStepDelegate

func NewCheckDelegate

func NewCheckDelegate(
	build db.Build,
	plan atc.Plan,
	state exec.RunState,
	clock clock.Clock,
	limiter RateLimiter,
	policyChecker policy.Checker,
) exec.CheckDelegate

func NewGetDelegate

func NewGetDelegate(
	build db.Build,
	planID atc.PlanID,
	state exec.RunState,
	clock clock.Clock,
	policyChecker policy.Checker,
) exec.GetDelegate

func NewPutDelegate

func NewPutDelegate(
	build db.Build,
	planID atc.PlanID,
	state exec.RunState,
	clock clock.Clock,
	policyChecker policy.Checker,
) exec.PutDelegate

func NewSetPipelineStepDelegate

func NewSetPipelineStepDelegate(
	build db.Build,
	planID atc.PlanID,
	state exec.RunState,
	clock clock.Clock,
) *setPipelineStepDelegate

func NewTaskDelegate

func NewTaskDelegate(
	build db.Build,
	planID atc.PlanID,
	state exec.RunState,
	clock clock.Clock,
	policyChecker policy.Checker,
) exec.TaskDelegate

Types

type CoreStepFactory

func NewCoreStepFactory

func NewCoreStepFactory(
	pool worker.Pool,
	client worker.Client,
	resourceFactory resource.ResourceFactory,
	teamFactory db.TeamFactory,
	buildFactory db.BuildFactory,
	resourceCacheFactory db.ResourceCacheFactory,
	resourceConfigFactory db.ResourceConfigFactory,
	defaultLimits atc.ContainerLimits,
	strategy worker.ContainerPlacementStrategy,
	lockFactory lock.LockFactory,
	defaultCheckTimeout time.Duration,
) CoreStepFactory

type DelegateFactory

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

func (DelegateFactory) BuildStepDelegate

func (delegate DelegateFactory) BuildStepDelegate(state exec.RunState) exec.BuildStepDelegate

func (DelegateFactory) CheckDelegate

func (delegate DelegateFactory) CheckDelegate(state exec.RunState) exec.CheckDelegate

func (DelegateFactory) GetDelegate

func (delegate DelegateFactory) GetDelegate(state exec.RunState) exec.GetDelegate

func (DelegateFactory) PutDelegate

func (delegate DelegateFactory) PutDelegate(state exec.RunState) exec.PutDelegate

func (DelegateFactory) SetPipelineStepDelegate

func (delegate DelegateFactory) SetPipelineStepDelegate(state exec.RunState) exec.SetPipelineStepDelegate

func (DelegateFactory) TaskDelegate

func (delegate DelegateFactory) TaskDelegate(state exec.RunState) exec.TaskDelegate

type Engine

type Engine interface {
	NewBuild(db.Build) Runnable

	Drain(context.Context)
}

func NewEngine

func NewEngine(
	stepperFactory StepperFactory,
	secrets creds.Secrets,
	varSourcePool creds.VarSourcePool,
) Engine

type RateLimiter

type RateLimiter interface {
	Wait(context.Context) error
}

type Runnable

type Runnable interface {
	Run(context.Context)
}

func NewBuild

func NewBuild(
	build db.Build,
	builder StepperFactory,
	globalSecrets creds.Secrets,
	varSourcePool creds.VarSourcePool,
	release chan bool,
	trackedStates *sync.Map,
	waitGroup *sync.WaitGroup,
) Runnable

type StepperFactory

type StepperFactory interface {
	StepperForBuild(db.Build) (exec.Stepper, error)
}

func NewStepperFactory

func NewStepperFactory(
	coreFactory CoreStepFactory,
	externalURL string,
	rateLimiter RateLimiter,
	policyChecker policy.Checker,
) StepperFactory

Directories

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

Jump to

Keyboard shortcuts

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