Documentation ¶
Index ¶
- func ContainerExec(clientset *kubernetes.Clientset, config *rest.Config, ...) (string, error)
- func GetClientSet()
- func GetContainerLog(clientset *kubernetes.Clientset, podName, containerName, namespace string) (string, error)
- func GetNamespaces(c *kubernetes.Clientset) (namespaces []string, err error)
- func GetNodeConditions(c *kubernetes.Clientset, nodeName string) (types.K8sNode, error)
- func GetNodes(c *kubernetes.Clientset) ([]types.K8sNode, types.K8sNodesDetail, error)
- func GetPodDetail(c *kubernetes.Clientset, podNamespace, podName string) (types.PodDetail, error)
- func GetPodYaml(c *kubernetes.Clientset, podNamespace string, podName string) (string, error)
- func GetPodsInNamespace(c *kubernetes.Clientset, namespace string) ([]types.K8sPod, error)
- func PortForward(clientset *kubernetes.Clientset, config *rest.Config, namespace string, ...) (URL, podPort string, err error)
- func RefreshClientSet()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerExec ¶
func GetClientSet ¶
func GetClientSet()
func GetContainerLog ¶
func GetContainerLog(clientset *kubernetes.Clientset, podName, containerName, namespace string) (string, error)
func GetNamespaces ¶
func GetNamespaces(c *kubernetes.Clientset) (namespaces []string, err error)
get namespaces
func GetNodeConditions ¶
func GetNodes ¶
func GetNodes(c *kubernetes.Clientset) ([]types.K8sNode, types.K8sNodesDetail, error)
get nodes
func GetPodDetail ¶
func GetPodYaml ¶
func GetPodsInNamespace ¶
get pod names with provided namespace
func PortForward ¶
func RefreshClientSet ¶
func RefreshClientSet()
refreshClientSet periodically refreshes the Kubernetes clientset
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.