package
1.14.0-alpha.0
Repository: https://github.com/everpeace/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.
PodPriorityEnabled indicates whether pod priority feature is enabled.
# Structs
BackoffEntry is single threaded.
PodBackoff is used to restart a pod with back-off delay.
SortableList is a list that implements sort.Interface.
# Type aliases
LessFunc is a function that receives two items and returns true if the first item should be placed before the second one when the list is sorted.