Documentation ¶
Index ¶
- type BuildFactory
- type BuildScheduler
- type BuildStarter
- type Runner
- type Scanner
- type Scheduler
- func (s *Scheduler) SaveNextInputMapping(logger lager.Logger, job db.Job) error
- func (s *Scheduler) Schedule(logger lager.Logger, versions *algorithm.VersionsDB, jobs []db.Job, ...) (map[string]time.Duration, error)
- func (s *Scheduler) TriggerImmediately(logger lager.Logger, job db.Job, resources db.Resources, ...) (db.Build, Waiter, error)
- type Waiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildFactory ¶
type BuildFactory interface {
Create(atc.JobConfig, atc.ResourceConfigs, atc.VersionedResourceTypes, []db.BuildInput) (atc.Plan, error)
}
type BuildScheduler ¶
type BuildScheduler interface { Schedule( logger lager.Logger, versions *algorithm.VersionsDB, jobs []db.Job, resources db.Resources, resourceTypes atc.VersionedResourceTypes, ) (map[string]time.Duration, error) TriggerImmediately( logger lager.Logger, job db.Job, resources db.Resources, resourceTypes atc.VersionedResourceTypes, ) (db.Build, Waiter, error) SaveNextInputMapping(logger lager.Logger, job db.Job) error }
type BuildStarter ¶
type BuildStarter interface { TryStartPendingBuildsForJob( logger lager.Logger, job db.Job, resources db.Resources, resourceTypes atc.VersionedResourceTypes, nextPendingBuilds []db.Build, ) error }
func NewBuildStarter ¶
func NewBuildStarter( pipeline db.Pipeline, maxInFlightUpdater maxinflight.Updater, factory BuildFactory, scanner Scanner, inputMapper inputmapper.InputMapper, execEngine engine.Engine, ) BuildStarter
type Runner ¶
type Scheduler ¶
type Scheduler struct { Pipeline db.Pipeline InputMapper inputmapper.InputMapper BuildStarter BuildStarter Scanner Scanner }
func (*Scheduler) SaveNextInputMapping ¶
Directories ¶
Path | Synopsis |
---|---|
factoryfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
inputconfig/inputconfigfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
inputmapperfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
maxinflightfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.