Documentation ¶
Index ¶
- func ExecCmd(client kubernetes.Interface, config rest.Config, podName string, ...) (string, error)
- func GetClientInterface(c kubernetes.Clientset) kubernetes.Interface
- func GetClientSet() (*kubernetes.Clientset, *rest.Config)
- func GetCurrentContext() string
- func GetNamespaces(c kubernetes.Clientset) (namespaceList []string)
- func GetPodAnnotations(c kubernetes.Clientset, selectedPod string, podNamespace string) string
- func GetPodDataWithNamespace(c kubernetes.Clientset, namespace string) (podData []string)
- func GetPodDetail(c kubernetes.Clientset, selectedPod string, podNamespace string) (string, string, string, []string)
- func GetPodEvents(c kubernetes.Clientset, selectedPod string, podNamespace string) (podEvents []string)
- func GetPodLabels(c kubernetes.Clientset, selectedPod string, podNamespace string) string
- func GetPodLogs(c kubernetes.Clientset, podNamespace string, selectedPod string, ...) (podLog string)
- func GetPodNamespace(c kubernetes.Clientset, podName string) (podNamespace string)
- func GetPodVolumes(c kubernetes.Clientset, selectedPod string, podNamespace string) (podVolumes string, err error)
- func GetPodYaml(c kubernetes.Clientset, podNamespace string, podName string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientInterface ¶ added in v0.0.5
func GetClientInterface(c kubernetes.Clientset) kubernetes.Interface
func GetClientSet ¶
func GetClientSet() (*kubernetes.Clientset, *rest.Config)
func GetCurrentContext ¶
func GetCurrentContext() string
TODO parse cluster context name to drop unnecessary text
func GetNamespaces ¶ added in v0.0.5
func GetNamespaces(c kubernetes.Clientset) (namespaceList []string)
get namespaces
func GetPodAnnotations ¶ added in v0.0.5
func GetPodAnnotations(c kubernetes.Clientset, selectedPod string, podNamespace string) string
func GetPodDataWithNamespace ¶ added in v0.0.5
func GetPodDataWithNamespace(c kubernetes.Clientset, namespace string) (podData []string)
get pod names with provided namespace
func GetPodDetail ¶
func GetPodEvents ¶
func GetPodEvents(c kubernetes.Clientset, selectedPod string, podNamespace string) (podEvents []string)
func GetPodLabels ¶ added in v0.0.5
func GetPodLabels(c kubernetes.Clientset, selectedPod string, podNamespace string) string
func GetPodLogs ¶
func GetPodNamespace ¶
func GetPodNamespace(c kubernetes.Clientset, podName string) (podNamespace string)
func GetPodVolumes ¶ added in v0.0.5
func GetPodYaml ¶ added in v0.0.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.