package
0.0.0-20190319231021-e6272b887b81
Repository: https://github.com/marun/kubernetes.git
Documentation: pkg.go.dev
# Functions
CreateDefaultPodBackoff creates a default pod back-off object.
CreatePodBackoff creates a pod back-off object by default duration and max duration.
CreatePodBackoffWithClock creates a pod back-off object by default duration, max duration and clock.
GetContainerPorts returns the used host ports of Pods: if 'port' was used, a 'port:true' pair will be in the result; but it does not resolve port conflict.
GetPodFullName returns a name that uniquely identifies a pod.
GetPodPriority return priority of the given pod.
HigherPriorityPod return true when priority of the first pod is higher than the second one.
NewHeap returns a Heap which can be used to queue up items to process.
PodPriorityEnabled indicates whether pod priority feature is enabled.
# Structs
Heap is a producer/consumer queue that implements a heap data structure.
PodBackoff is used to restart a pod with back-off delay.
RealClock implements a clock using time.
SortableList is a list that implements sort.Interface.
# Interfaces
Clock provides an interface for getting the current time.