engine

package
v0.0.0-...-44dad58 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNewPlacement

func GetNewPlacement(slices algorithm.SliceInfoArray) (map[string]int, error)

func GetSlicesToSchedule

func GetSlicesToSchedule(namespace *internalcache.Namespace, oldPlacements map[string]int) algorithm.SliceInfoArray

Types

type Engine

type Engine interface {
	ScheduleNamespace(*internalcache.Namespace) (*internalcache.Namespace, error)
	EnsureNamespacePlacements(*internalcache.Namespace) error
	DeScheduleNamespace(key string) error
	SchedulePod(pod *internalcache.Pod) (*internalcache.Pod, error)
	DeSchedulePod(key string) error
}

func NewSchedulerEngine

func NewSchedulerEngine(schedulerCache internalcache.Cache) Engine

Jump to

Keyboard shortcuts

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