kubernetes/staging/src/k8s.io/kubectl/pkg/metricsutil/metrics_printer.go

var MeasuredResources

var NodeColumns

var PodColumns

var NamespaceColumn

var PodColumn

type ResourceMetricsInfo

type TopCmdPrinter

func NewTopCmdPrinter(out io.Writer) *TopCmdPrinter {}

func (printer *TopCmdPrinter) PrintNodeMetrics(metrics []metricsapi.NodeMetrics, availableResources map[string]v1.ResourceList, noHeaders bool, sortBy string) error {}

func (printer *TopCmdPrinter) PrintPodMetrics(metrics []metricsapi.PodMetrics, printContainers bool, withNamespace bool, noHeaders bool, sortBy string, sum bool) error {}

func printColumnNames(out io.Writer, names []string) {}

func printSinglePodMetrics(out io.Writer, m *metricsapi.PodMetrics, withNamespace bool) {}

func printSinglePodContainerMetrics(out io.Writer, m *metricsapi.PodMetrics, withNamespace bool) {}

func getPodMetrics(m *metricsapi.PodMetrics) v1.ResourceList {}

func printMetricsLine(out io.Writer, metrics *ResourceMetricsInfo) {}

func printMissingMetricsNodeLine(out io.Writer, nodeName string) {}

func printValue(out io.Writer, value interface{}

func printAllResourceUsages(out io.Writer, metrics *ResourceMetricsInfo) {}

func printSingleResourceUsage(out io.Writer, resourceType v1.ResourceName, quantity resource.Quantity) {}

func printPodResourcesSum(out io.Writer, total v1.ResourceList, columnWidth int) {}