MCPcopy
hub / github.com/kubernetes/kubectl / ByLogging

TypeAlias ByLogging

pkg/util/podutils/podutils.go:91–91  ·  view source on GitHub ↗

ByLogging allows custom sorting of pods so the best one can be picked for getting its logs.

Source from the content-addressed store, hash-verified

89
90// ByLogging allows custom sorting of pods so the best one can be picked for getting its logs.
91type ByLogging []*corev1.Pod
92
93func (s ByLogging) Len() int { return len(s) }
94func (s ByLogging) Swap(i, j int) { s[i], s[j] = s[j], s[i] }

Callers 3

TestGetPodListFunction · 0.92
TestGetFirstPodFunction · 0.92
logsForObjectWithClientFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected