package
0.0.0-20220812090954-57dc9257a988
Repository: https://github.com/elchead/k8s-cluster-simulator.git
Documentation: pkg.go.dev

# Functions

DefaultComparator returns true if pod0 has higher priority than pod1.
NewFIFOQueue creates a new FIFOQueue.
NewPriorityQueue creates a new PriorityQueue with DefaultComparator.
NewPriorityQueueWithComparator creates a new PriorityQueue with the given comparator.

# Variables

ErrDifferentNames is returned from Update.
ErrEmptyQueue is returned from Pop.

# Structs

ErrNoMatchingPod is returned from Update.
FIFOQueue stores pods in a FIFO queue.
Metrics represents a metrics of a PodQueue at one time point.
PriorityQueue stores pods in a priority queue.

# Interfaces

PodQueue defines the interface of pod queues.

# Type aliases

Compare is a comparator function that returns true if pod0 has higher priority than pod1, or false otherwise.