toy

package
v0.0.0-...-33bb219 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

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 NewScheduler

func NewScheduler() *ToyScheduler

NewScheduler creates a new ToyScheduler

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.

Jump to

Keyboard shortcuts

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