scheduler

package
v0.0.0-...-afaf855 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	CurrentTime() time.Time
}

func NewClock

func NewClock() Clock

type ScheduledBuild

type ScheduledBuild struct {
	Build     turbine.Build
	Status    turbine.Status
	ProcessID uint32
	EventHub  *event.Hub
	// contains filtered or unexported fields
}

type Scheduler

type Scheduler interface {
	Start(turbine.Build)
	Restore(ScheduledBuild)
	Abort(guid string)
	Hijack(guid string, process gapi.ProcessSpec, io gapi.ProcessIO) (gapi.Process, error)
	Subscribe(guid string, from uint) (<-chan event.Event, chan<- struct{}, error)
	Delete(guid string)

	Drain() []ScheduledBuild
}

func NewScheduler

func NewScheduler(
	l lager.Logger,
	b builder.Builder,
	clock Clock,
) Scheduler

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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