Documentation ¶
Overview ¶
Package toy is a mock scheduling output that simply reflects back whatever we tell it
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ToyScheduler ¶
type ToyScheduler struct { }
ToyScheduler is a mock scheduler that does nothing
func (*ToyScheduler) Cleanup ¶
func (t *ToyScheduler) Cleanup() error
Cleanup gives the scheduler an opportunity to stop anything that needs to be stopped
func (*ToyScheduler) CountAllTasks ¶
func (t *ToyScheduler) CountAllTasks(running *demand.Tasks) error
CountAllTasks for the Toy scheduler simply reflects back what has been requested
func (*ToyScheduler) InitScheduler ¶
func (t *ToyScheduler) InitScheduler(task *demand.Task) error
InitScheduler initializes the scheduler
func (*ToyScheduler) StopStartTasks ¶
func (t *ToyScheduler) StopStartTasks(tasks *demand.Tasks) error
StopStartTasks asks the scheduler to bring the number of running tasks up to task.Demand.
Click to show internal directories.
Click to hide internal directories.