Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergePodResources ¶
func MergePodResources(resources ...map[string]*PodResource) (map[string]*PodResource, error)
Types ¶
type Aggregation ¶
type Aggregation int
const ( Container Aggregation = iota Pod Namespace Node Total )
func AggregationFromString ¶
func AggregationFromString(s string) (Aggregation, error)
type Args ¶
type Args struct { ResourceFinder genericclioptions.ResourceFinder Aggregation Aggregation AllNamespaces bool Verbose bool ShowNodes bool ColoredOutput bool OnlyWarnings bool }
type ContainerResource ¶
type PodResource ¶
type PodResource struct { Name string Namespace string Node string Containers map[string]*ContainerResource }
func (*PodResource) Cpu ¶
func (p *PodResource) Cpu() *Resource
func (*PodResource) Memory ¶
func (p *PodResource) Memory() *Resource
Click to show internal directories.
Click to hide internal directories.