Documentation ¶
Index ¶
- type Client
- func (c *Client) GetPodDetails(podName string) (string, error)
- func (c *Client) GetPodLogs(podName string) (string, error)
- func (c *Client) GetPodMetrics(podName string) (cpuUsage string, memoryUsage string, err error)
- func (c *Client) GetPods() ([]string, error)
- func (c *Client) ListNamespaces() ([]string, error)
- func (c *Client) SetNamespace(namespace string)
- type KubernetesClient
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) GetPodDetails ¶
GetPodDetails retrieves the details of a specific pod by name
func (*Client) GetPodLogs ¶
GetPodLogs retrieves the logs for a specific pod
func (*Client) GetPodMetrics ¶
func (*Client) GetPods ¶
GetPods retrieves the list of pods from the cluster in the specified namespace
func (*Client) ListNamespaces ¶
ListNamespaces retrieves all namespaces available in the cluster
func (*Client) SetNamespace ¶
SetNamespace allows changing the namespace for the client
type KubernetesClient ¶
Click to show internal directories.
Click to hide internal directories.