package format
import "k8s.io/kubernetes/pkg/kubelet/util/format"
Index ¶
- func Pod(pod *api.Pod) string
- func PodWithDeletionTimestamp(pod *api.Pod) string
- func Pods(pods []*api.Pod) string
- func PodsWithDeletiontimestamps(pods []*api.Pod) string
- func ResourceList(resources api.ResourceList) string
Functions ¶
func Pod ¶
Pod returns a string reprenetating a pod in a human readable format, with pod UID as part of the string.
func PodWithDeletionTimestamp ¶
PodWithDeletionTimestamp is the same as Pod. In addition, it prints the deletion timestamp of the pod if it's not nil.
func Pods ¶
Pods returns a string representating a list of pods in a human readable format.
func PodsWithDeletiontimestamps ¶
PodsWithDeletiontimestamps is the same as Pods. In addition, it prints the deletion timestamps of the pods if they are not nil.
func ResourceList ¶
func ResourceList(resources api.ResourceList) string
ResourceList returns a string representation of a resource list in a human readable format.
Source Files ¶
pod.go resources.go
- Version
- v1.5.0-alpha.2
- Published
- Oct 27, 2016
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 5 seconds ago –
Tools for package owners.