Documentation ¶
Index ¶
- func GetAllResourceUsages(metrics *metricsutil.ResourceMetricsInfo) map[v1.ResourceName]int64
- func GetPodMetrics(m *metricsapi.PodMetrics) v1.ResourceList
- func GetSingleResourceUsage(resourceType v1.ResourceName, quantity resource.Quantity) int64
- type Cmd
- type KubeCLI
- func (cli *KubeCLI) ClusterInfo() (string, error)
- func (cli *KubeCLI) CurrentContext() (string, error)
- func (cli *KubeCLI) Describe(streams genericclioptions.IOStreams, args ...string) *Cmd
- func (cli *KubeCLI) Get(streams genericclioptions.IOStreams, args ...string) *Cmd
- func (cli *KubeCLI) GetPodMetrics(namespace, name string, allNamespaces bool, selector labels.Selector) ([]map[v1.ResourceName]int64, error)
- func (cli *KubeCLI) GetPodRawMetrics(namespace, name string, allNamespaces bool, selector labels.Selector) (*metricsapi.PodMetricsList, error)
- func (cli *KubeCLI) Logs(streams genericclioptions.IOStreams, args ...string) *Cmd
- func (cli *KubeCLI) Namespace() string
- func (cli *KubeCLI) SetNamespace(namespace string)
- func (cli *KubeCLI) TopNode(streams genericclioptions.IOStreams, o *top.TopNodeOptions, args ...string) *Cmd
- func (cli *KubeCLI) TopPod(streams genericclioptions.IOStreams, o *top.TopPodOptions, args ...string) *Cmd
- func (cli *KubeCLI) WithNamespace(namespace string) *KubeCLI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllResourceUsages ¶
func GetAllResourceUsages(metrics *metricsutil.ResourceMetricsInfo) map[v1.ResourceName]int64
func GetPodMetrics ¶
func GetPodMetrics(m *metricsapi.PodMetrics) v1.ResourceList
func GetSingleResourceUsage ¶
func GetSingleResourceUsage(resourceType v1.ResourceName, quantity resource.Quantity) int64
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
type KubeCLI ¶
type KubeCLI struct {
// contains filtered or unexported fields
}
var Cli *KubeCLI
func NewKubeCLI ¶
func NewKubeCLI() *KubeCLI
func (*KubeCLI) ClusterInfo ¶
func (*KubeCLI) CurrentContext ¶
func (*KubeCLI) Describe ¶
func (cli *KubeCLI) Describe(streams genericclioptions.IOStreams, args ...string) *Cmd
func (*KubeCLI) Get ¶
func (cli *KubeCLI) Get(streams genericclioptions.IOStreams, args ...string) *Cmd
func (*KubeCLI) GetPodMetrics ¶
func (*KubeCLI) GetPodRawMetrics ¶
func (cli *KubeCLI) GetPodRawMetrics(namespace, name string, allNamespaces bool, selector labels.Selector) (*metricsapi.PodMetricsList, error)
func (*KubeCLI) Logs ¶
func (cli *KubeCLI) Logs(streams genericclioptions.IOStreams, args ...string) *Cmd
func (*KubeCLI) SetNamespace ¶
func (*KubeCLI) TopNode ¶
func (cli *KubeCLI) TopNode(streams genericclioptions.IOStreams, o *top.TopNodeOptions, args ...string) *Cmd
func (*KubeCLI) TopPod ¶
func (cli *KubeCLI) TopPod(streams genericclioptions.IOStreams, o *top.TopPodOptions, args ...string) *Cmd
func (*KubeCLI) WithNamespace ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.