sliceutils

package
v1.12.2-lite5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringInSlice

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

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