k8s

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyManifest

func ApplyManifest(clientset *kubernetes.Clientset, dynamicClient dynamic.Interface, clusterName string, data []byte) error

func CreateK8sClientFromContext

func CreateK8sClientFromContext(contextName string, kubeconfigPath string) (*kubernetes.Clientset, dynamic.Interface, error)

func DeleteResource

func DeleteResource(clientset *kubernetes.Clientset, clusterName, namespace, resourceType, resourceName string)

func DescribePod

func DescribePod(clientset *kubernetes.Clientset, clusterName, namespace, podName string) error

func GetConfigMap

func GetConfigMap(clientset *kubernetes.Clientset, clusterName string, namespaces []string, name string)

func GetPodLogs

func GetPodLogs(clientset *kubernetes.Clientset, clusterName, namespace, podName, container string, follow bool)

func GetSecret

func GetSecret(clientset *kubernetes.Clientset, clusterName string, namespaces []string, secretName string)

func ListConfigMaps

func ListConfigMaps(clientset *kubernetes.Clientset, clusterName string, namespaces []string)

func ListDeployments

func ListDeployments(clientset *kubernetes.Clientset, clusterName string, namespaces []string)

func ListIngress

func ListIngress(clientset *kubernetes.Clientset, clusterName string, namespaces []string)

func ListNamespaces

func ListNamespaces(clientset *kubernetes.Clientset, clusterName string)

func ListNodes

func ListNodes(clientset *kubernetes.Clientset, clusterName string)

func ListPods

func ListPods(clientset *kubernetes.Clientset, clusterName string, namespaces []string, statusFilter string)

func ListSecrets

func ListSecrets(clientset *kubernetes.Clientset, clusterName string, namespaces []string)

func ListServices

func ListServices(clientset *kubernetes.Clientset, clusterName string, namespaces []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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