kubernetes: k8s.io/kubernetes/pkg/kubelet/util/sliceutils Index | Files

package sliceutils

import "k8s.io/kubernetes/pkg/kubelet/util/sliceutils"

Index

Package Files

sliceutils.go

func StringInSlice Uses

func StringInSlice(s string, list []string) bool

StringInSlice returns true if s is in list

type ByImageSize Uses

type ByImageSize []kubecontainer.Image

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

func (ByImageSize) Len Uses

func (a ByImageSize) Len() int

func (ByImageSize) Less Uses

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

func (ByImageSize) Swap Uses

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

type PodsByCreationTime Uses

type PodsByCreationTime []*v1.Pod

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

func (PodsByCreationTime) Len Uses

func (s PodsByCreationTime) Len() int

func (PodsByCreationTime) Less Uses

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

func (PodsByCreationTime) Swap Uses

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

Package sliceutils imports 2 packages (graph) and is imported by 3 packages. Updated 2019-08-13. Refresh now. Tools for package owners.