policies

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SortPolicy

type SortPolicy int

Sort type for queues & apps.

const (
	FifoSortPolicy   SortPolicy = iota // first in first out, submit time
	FairSortPolicy                     // fair based on usage
	StateAwarePolicy                   // only 1 app in starting state
	Undefined                          // not initialised or parsing failed
)

func SortPolicyFromString

func SortPolicyFromString(str string) (SortPolicy, error)

func (SortPolicy) String

func (s SortPolicy) String() string

type SortingPolicy added in v0.10.0

type SortingPolicy int
const (
	BinPackingPolicy SortingPolicy = iota
	FairnessPolicy
)

func SortingPolicyFromString added in v0.12.0

func SortingPolicyFromString(str string) (SortingPolicy, error)

func (SortingPolicy) String added in v0.10.0

func (nsp SortingPolicy) String() string

Jump to

Keyboard shortcuts

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