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

package format

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

Index

Package Files

pod.go resources.go

func Pod Uses

func Pod(pod *v1.Pod) string

Pod returns a string representing a pod in a consistent human readable format, with pod UID as part of the string.

func PodDesc Uses

func PodDesc(podName, podNamespace string, podUID types.UID) string

PodDesc returns a string representing a pod in a consistent human readable format, with pod UID as part of the string.

func PodWithDeletionTimestamp Uses

func PodWithDeletionTimestamp(pod *v1.Pod) string

PodWithDeletionTimestamp is the same as Pod. In addition, it prints the deletion timestamp of the pod if it's not nil.

func Pods Uses

func Pods(pods []*v1.Pod) string

Pods returns a string representation a list of pods in a human readable format.

func PodsWithDeletionTimestamps Uses

func PodsWithDeletionTimestamps(pods []*v1.Pod) string

PodsWithDeletionTimestamps is the same as Pods. In addition, it prints the deletion timestamps of the pods if they are not nil.

func ResourceList Uses

func ResourceList(resources v1.ResourceList) string

ResourceList returns a string representation of a resource list in a human readable format.

Package format imports 6 packages (graph) and is imported by 1048 packages. Updated 2018-08-26. Refresh now. Tools for package owners.