Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeMetricsByPod ¶
type NodeMetricsByPod struct { Clientset *kubernetes.Clientset MetricsClientset *metricsv.Clientset Name string SortBy string View string }
NodeMetricsByPod ...
func NewNodeMetricsByPod ¶
func NewNodeMetricsByPod(clientset *kubernetes.Clientset, metricsClientset *metricsv.Clientset, name, sortBy string, view string) *NodeMetricsByPod
NewNodeMetricsByPod ...
func (*NodeMetricsByPod) GetPodMetrics ¶
func (n *NodeMetricsByPod) GetPodMetrics() ([]PodMetric, error)
GetPodMetrics ...
type PodMetric ¶
type PodMetric struct { CPU int64 LimitsCPU int64 LimitsMemory int64 Memory int64 Name string Namespace string RequestedCPU int64 RequestedMemory int64 SortBy string }
PodMetric ...
type SortMetrics ¶
type SortMetrics []PodMetric
SortMetrics ...
func (SortMetrics) Len ¶
func (ms SortMetrics) Len() int
func (SortMetrics) Less ¶
func (ms SortMetrics) Less(i, j int) bool
func (SortMetrics) Swap ¶
func (ms SortMetrics) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.