builds

package
v6.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Planner

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

func NewPlanner

func NewPlanner(planFactory atc.PlanFactory) Planner

func (Planner) Create

func (planner Planner) Create(
	planConfig atc.StepConfig,
	resources db.SchedulerResources,
	resourceTypes atc.VersionedResourceTypes,
	inputs []db.BuildInput,
) (atc.Plan, error)

type Tracker

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

func NewTracker

func NewTracker(
	buildFactory db.BuildFactory,
	engine engine.Engine,
) *Tracker

func (*Tracker) Drain

func (bt *Tracker) Drain(ctx context.Context)

func (*Tracker) Run

func (bt *Tracker) Run(ctx context.Context) error

type UnknownResourceError

type UnknownResourceError struct {
	Resource string
}

UnknownResourceError is returned when a 'get' or 'put' step refers to a resource which is not in the set of resources provided to the Planner.

func (UnknownResourceError) Error

func (err UnknownResourceError) Error() string

type VersionNotProvidedError

type VersionNotProvidedError struct {
	Input string
}

VersionNotProvidedError is returned when a 'get' step does not have a corresponding input provided to the Planner.

func (VersionNotProvidedError) Error

func (err VersionNotProvidedError) Error() string

Jump to

Keyboard shortcuts

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