queuesort

package
v1.18.6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

View Source
const Name = "PrioritySort"

Name is the name of the plugin used in the plugin registry and configurations.

Variables

This section is empty.

Functions

func New

New initializes a new plugin and returns it.

Types

type PrioritySort

type PrioritySort struct{}

PrioritySort is a plugin that implements Priority based sorting.

func (*PrioritySort) Less

func (pl *PrioritySort) Less(pInfo1, pInfo2 *framework.PodInfo) bool

Less is the function used by the activeQ heap algorithm to sort pods. It sorts pods based on their priority. When priorities are equal, it uses PodInfo.timestamp.

func (*PrioritySort) Name

func (pl *PrioritySort) Name() string

Name returns name of the plugin.

Jump to

Keyboard shortcuts

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