scheduler

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: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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