package sliceutils
import "k8s.io/kubernetes/pkg/kubelet/util/sliceutils"
Index ¶
- type ByImageSize
- func (a ByImageSize) Len() int
- func (a ByImageSize) Less(i, j int) bool
- func (a ByImageSize) Swap(i, j int)
- type PodsByCreationTime
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 ¶
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)
Source Files ¶
sliceutils.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 hours ago –
Tools for package owners.