Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortRows ¶
func SortRows(res []AggregateResourceRow)
Types ¶
type AggregateResourceRow ¶
type AggregateResourceRow struct { Name string Namespace string Node string Container string Cpu []model.Resource Memory []model.Resource }
func AggregateRows ¶
func AggregateRows(rows []ResourceRow, aggregation model.Aggregation) []AggregateResourceRow
func (*AggregateResourceRow) Add ¶
func (a *AggregateResourceRow) Add(cpu model.Resource, mem model.Resource)
func (*AggregateResourceRow) TotalCpu ¶
func (a *AggregateResourceRow) TotalCpu() model.Resource
func (*AggregateResourceRow) TotalMemory ¶
func (a *AggregateResourceRow) TotalMemory() model.Resource
type ColoredTableWriter ¶
func (ColoredTableWriter) WriteRows ¶
func (c ColoredTableWriter) WriteRows(allRows []ResourceRow)
type ResourceRow ¶
type ResourceRow struct { Name string Namespace string Node string Container string Cpu model.Resource Memory model.Resource }
func PodToRows ¶
func PodToRows(pod *model.PodResource) []ResourceRow
Click to show internal directories.
Click to hide internal directories.