Versions in this module Expand all Collapse all v1 v1.16.3 Nov 9, 2022 Changes in this version + func GetContainerPorts(pods ...*v1.Pod) []*v1.ContainerPort + func GetEarliestPodStartTime(victims *api.Victims) *metav1.Time + func GetPodFullName(pod *v1.Pod) string + func GetPodPriority(pod *v1.Pod) int32 + func GetPodStartTime(pod *v1.Pod) *metav1.Time + func MoreImportantPod(pod1, pod2 interface{}) bool + type Clock interface + Now func() time.Time + type ErrorChannel struct + func NewErrorChannel() *ErrorChannel + func (e *ErrorChannel) ReceiveError() error + func (e *ErrorChannel) SendError(err error) + func (e *ErrorChannel) SendErrorWithCancel(err error, cancel context.CancelFunc) + type Heap struct + func NewHeap(keyFn KeyFunc, lessFn LessFunc) *Heap + func NewHeapWithRecorder(keyFn KeyFunc, lessFn LessFunc, metricRecorder metrics.MetricRecorder) *Heap + func (h *Heap) Add(obj interface{}) error + func (h *Heap) AddIfNotPresent(obj interface{}) error + func (h *Heap) Delete(obj interface{}) error + func (h *Heap) Get(obj interface{}) (interface{}, bool, error) + func (h *Heap) GetByKey(key string) (interface{}, bool, error) + func (h *Heap) Len() int + func (h *Heap) List() []interface{} + func (h *Heap) Peek() interface{} + func (h *Heap) Pop() (interface{}, error) + func (h *Heap) Update(obj interface{}) error + type KeyFunc func(obj interface{}) (string, error) + type LessFunc func(item1, item2 interface{}) bool + type RealClock struct + func (RealClock) Now() time.Time + type SortableList struct + CompFunc LessFunc + Items []interface{} + func (l *SortableList) Len() int + func (l *SortableList) Less(i, j int) bool + func (l *SortableList) Sort() + func (l *SortableList) Swap(i, j int)