Documentation
¶
Index ¶
- type Client
- func (c *Client) GetNodeMetrics(nodeName string) (cpuUsage string, memoryUsage string, err error)
- func (c *Client) GetNodes() ([]string, error)
- func (c *Client) GetPodDetails(pod Pod) (string, error)
- func (c *Client) GetPodLogs(pod Pod) (string, error)
- func (c *Client) GetPodMetrics(pod Pod) (cpuUsage string, memoryUsage string, err error)
- func (c *Client) GetPods() ([]Pod, error)
- func (c *Client) GetPodsByNode(nodeName string) ([]Pod, error)
- func (c *Client) ListNamespaces() ([]string, error)
- func (c *Client) SetNamespace(namespace string)
- type KubernetesClient
- type Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetNodeMetrics ¶
func (*Client) GetPodMetrics ¶
func (*Client) ListNamespaces ¶
func (*Client) SetNamespace ¶
type KubernetesClient ¶
type KubernetesClient interface {
GetNodes() ([]string, error)
GetNodeMetrics(nodeName string) (cpuUsage string, memoryUsage string, err error)
GetPods() ([]Pod, error)
GetPodsByNode(nodeName string) ([]Pod, error)
GetPodMetrics(pod Pod) (cpuUsage string, memoryUsage string, err error)
GetPodDetails(pod Pod) (string, error)
GetPodLogs(pod Pod) (string, error)
SetNamespace(namespace string)
ListNamespaces() ([]string, error)
}
Click to show internal directories.
Click to hide internal directories.