k8s

package
v0.0.0-...-e9e609c Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerExec

func ContainerExec(clientset *kubernetes.Clientset, config *rest.Config,
	podName, containerName, namespace string, command string) (string, error)

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 GetNodeConditions(c *kubernetes.Clientset, nodeName string) (types.K8sNode, error)

func GetNodes

get nodes

func GetPodDetail

func GetPodDetail(c *kubernetes.Clientset, podNamespace, podName string) (types.PodDetail, error)

func GetPodYaml

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

func GetPodsInNamespace

func GetPodsInNamespace(c *kubernetes.Clientset, namespace string) ([]types.K8sPod, error)

get pod names with provided namespace

func PortForward

func PortForward(clientset *kubernetes.Clientset, config *rest.Config,
	namespace string, podName string, containerPort string) (URL, podPort string, err error)

func RefreshClientSet

func RefreshClientSet()

refreshClientSet periodically refreshes the Kubernetes clientset

Types

This section is empty.

Jump to

Keyboard shortcuts

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