sliceutils

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 54

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByImageSize

type ByImageSize []kubecontainer.Image

ByImageSize makes an array of images sortable by their size in descending order.

func (ByImageSize) Len

func (a ByImageSize) Len() int

func (ByImageSize) Less

func (a ByImageSize) Less(i, j int) bool

func (ByImageSize) Swap

func (a ByImageSize) Swap(i, j int)

type PodsByCreationTime

type PodsByCreationTime []*v1.Pod

PodsByCreationTime makes an array of pods sortable by their creation timestamps in ascending order.

func (PodsByCreationTime) Len

func (s PodsByCreationTime) Len() int

func (PodsByCreationTime) Less

func (s PodsByCreationTime) Less(i, j int) bool

func (PodsByCreationTime) Swap

func (s PodsByCreationTime) Swap(i, j int)

Jump to

Keyboard shortcuts

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