k8s

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCmd added in v0.0.5

func ExecCmd(client kubernetes.Interface, config rest.Config, podName string, containerName string,
	podNamespace string, command string, stdin io.Reader) (string, error)

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 GetPodDetail(c kubernetes.Clientset, selectedPod string, podNamespace string) (string, string, string, []string)

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 GetPodLogs(c kubernetes.Clientset, podNamespace string, selectedPod string, containerName string) (podLog string)

func GetPodNamespace

func GetPodNamespace(c kubernetes.Clientset, podName string) (podNamespace string)

func GetPodVolumes added in v0.0.5

func GetPodVolumes(c kubernetes.Clientset, selectedPod string, podNamespace string) (podVolumes string, err error)

func GetPodYaml added in v0.0.4

func GetPodYaml(c kubernetes.Clientset, podNamespace string, podName string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL