Versions in this module Expand all Collapse all v0 v0.1.3 Apr 1, 2023 Changes in this version + var AllType = "All" + var NodeType = "Node" + var SummarizedType = "Summarized" + func ResetTableShapeFrom(typ string, rect image.Rectangle) (string, []string, []int) + func TableTypeCircle() *ring.Ring + type NodeResource struct + func NewNodeResource(n corev1.Node, nm metrics.NodeMetrics) *NodeResource + func (r *NodeResource) GetCpuUsagePercentage() (float64, string) + func (r *NodeResource) GetMemoryUsagePercentage() (float64, string) + func (r *NodeResource) GetNodeName() string + type Resource struct + func NewResource(p corev1.Pod, c corev1.Container, cm metrics.ContainerMetrics) *Resource + func (r *Resource) GetContainerName() string + func (r *Resource) GetCpuLimits() (float64, string, bool) + func (r *Resource) GetCpuUsage() (float64, string) + func (r *Resource) GetMemoryLimits() (float64, string, bool) + func (r *Resource) GetMemoryUsage() (float64, string) + func (r *Resource) GetNodeName() string + type ResourceTableViewer interface + GetTableShape func(rect image.Rectangle) (string, []string, []int, [][]string) + SortRows func() + func AsAllTableViewer(resources []*Resource, sortType SortType) ResourceTableViewer + func AsNodeTableViewer(resources []*NodeResource, sortType SortType) ResourceTableViewer + func AsSummarizedTableViewer(resources []*SummarizedResource, sortType SortType) ResourceTableViewer + type SortType int + const ByName + type SummarizedResource struct + func NewSummarizedResource(p corev1.Pod, sumUsage corev1.ResourceList) *SummarizedResource + func (s *SummarizedResource) GetCpuUsage() (float64, string) + func (s *SummarizedResource) GetMemoryUsage() (float64, string) + func (s *SummarizedResource) GetNodeName() string + func (s *SummarizedResource) GetPodName() string v0.1.0 May 14, 2019