Versions in this module Expand all Collapse all v0 v0.24.0 Mar 25, 2022 Changes in this version + var MeasuredResources = []v1.ResourceName + var NamespaceColumn = "NAMESPACE" + var NodeColumns = []string + var PodColumn = "POD" + var PodColumns = []string + type ContainerMetricsSorter struct + func NewContainerMetricsSorter(metrics []metricsapi.ContainerMetrics, sortBy string) *ContainerMetricsSorter + func (s *ContainerMetricsSorter) Len() int + func (s *ContainerMetricsSorter) Less(i, j int) bool + func (s *ContainerMetricsSorter) Swap(i, j int) + type NodeMetricsSorter struct + func NewNodeMetricsSorter(metrics []metricsapi.NodeMetrics, sortBy string) *NodeMetricsSorter + func (n *NodeMetricsSorter) Len() int + func (n *NodeMetricsSorter) Less(i, j int) bool + func (n *NodeMetricsSorter) Swap(i, j int) + type PodMetricsSorter struct + func NewPodMetricsSorter(metrics []metricsapi.PodMetrics, withNamespace bool, sortBy string) *PodMetricsSorter + func (p *PodMetricsSorter) Len() int + func (p *PodMetricsSorter) Less(i, j int) bool + func (p *PodMetricsSorter) Swap(i, j int) + type ResourceMetricsInfo struct + Available v1.ResourceList + Metrics v1.ResourceList + Name string + type TopCmdPrinter struct + func NewTopCmdPrinter(out io.Writer) *TopCmdPrinter + func (printer *TopCmdPrinter) PrintNodeMetrics(metrics []metricsapi.NodeMetrics, ...) error + func (printer *TopCmdPrinter) PrintPodMetrics(metrics []metricsapi.PodMetrics, printContainers bool, withNamespace bool, ...) error