Documentation ¶
Overview ¶
Package scheduler defines the interface with schedulers & orchestration systems
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler interface { // InitScheduler creates and starts the app identified by appId InitScheduler(task *demand.Task) error // StopStartTasks changes the count of containers to match task.Demand StopStartTasks(tasks *demand.Tasks) error // CountAllTasks updates task.Running to tell us how many instances of each task are currently running CountAllTasks(tasks *demand.Tasks) error // Cleanup is called to give the scheduler a chance to clean up Cleanup() error }
Scheduler is the interface to schedulers / orchestration systems
Directories ¶
Path | Synopsis |
---|---|
Package docker integrates with the Docker Remote API https://docs.docker.com/reference/api/docker_remote_api_v1.20/
|
Package docker integrates with the Docker Remote API https://docs.docker.com/reference/api/docker_remote_api_v1.20/ |
Package kubernetes provides a scheduler using the Kubernetes API.
|
Package kubernetes provides a scheduler using the Kubernetes API. |
Package marathon provides a scheduler using the Marathon REST API.
|
Package marathon provides a scheduler using the Marathon REST API. |
Package toy is a mock scheduling output that simply reflects back whatever we tell it
|
Package toy is a mock scheduling output that simply reflects back whatever we tell it |
Click to show internal directories.
Click to hide internal directories.