Documentation ¶
Index ¶
- type BuildFactory
- type BuildScheduler
- type BuildsDB
- type Locker
- type PipelineDB
- type Runner
- type Scanner
- type Scheduler
- func (s *Scheduler) BuildLatestInputs(logger lager.Logger, job atc.JobConfig, resources atc.ResourceConfigs) error
- func (s *Scheduler) TriggerImmediately(logger lager.Logger, job atc.JobConfig, resources atc.ResourceConfigs) (db.Build, error)
- func (s *Scheduler) TryNextPendingBuild(logger lager.Logger, job atc.JobConfig, resources atc.ResourceConfigs) Waiter
- 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, []db.BuildInput) (atc.Plan, error)
}
type BuildScheduler ¶
type PipelineDB ¶
type PipelineDB interface { CreateJobBuild(job string) (db.Build, error) CreateJobBuildForCandidateInputs(job string) (db.Build, bool, error) ScheduleBuild(buildID int, jobConfig atc.JobConfig) (bool, error) GetJobBuildForInputs(job string, inputs []db.BuildInput) (db.Build, error) GetNextPendingBuild(job string) (db.Build, error) GetLatestInputVersions([]atc.JobInput) ([]db.BuildInput, error) SaveResourceVersions(atc.ResourceConfig, []atc.Version) error UseInputsForBuild(buildID int, inputs []db.BuildInput) error }
type Runner ¶
type Runner struct { Logger lager.Logger Locker Locker DB db.PipelineDB Scheduler BuildScheduler Noop bool Interval time.Duration }
type Scheduler ¶
type Scheduler struct { PipelineDB PipelineDB BuildsDB BuildsDB Factory BuildFactory Engine engine.Engine Scanner Scanner }
func (*Scheduler) BuildLatestInputs ¶
func (*Scheduler) TriggerImmediately ¶
func (*Scheduler) TryNextPendingBuild ¶
Click to show internal directories.
Click to hide internal directories.