kube

package
v0.0.0-...-79b970a Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListServices

func ListServices(namespace string, client kubernetes.Interface) (*corev1.ServiceList, error)

Types

type KubeClient

type KubeClient struct {
	Dynamic   *dynamic.DynamicClient
	ClientSet *kubernetes.Clientset
}

func NewKubeClient

func NewKubeClient() *KubeClient

func (*KubeClient) ApplyManifest

func (c *KubeClient) ApplyManifest(manifest, resource, namespace string) error

func (*KubeClient) DeleteConfigmaps

func (c *KubeClient) DeleteConfigmaps(configmaps *[]string, namespace string) error

func (*KubeClient) DeleteIngresses

func (c *KubeClient) DeleteIngresses(ingresses *[]string, namespace string) error

func (*KubeClient) DeletePods

func (c *KubeClient) DeletePods(pods *[]string, namespace string) error

func (*KubeClient) DeleteSecrets

func (c *KubeClient) DeleteSecrets(secrets *[]string, namespace string) error

func (*KubeClient) DeleteServices

func (c *KubeClient) DeleteServices(services *[]string, namespace string) error

func (*KubeClient) GetConfigMapFileMountedPodLabels

func (c *KubeClient) GetConfigMapFileMountedPodLabels(namespace, fileName string) []map[string]string

func (*KubeClient) GetConfigmap

func (c *KubeClient) GetConfigmap(name, namespace string) (*corev1.ConfigMap, error)

func (*KubeClient) GetConfigmapMountPathFromPod

func (c *KubeClient) GetConfigmapMountPathFromPod(configmap string, pod *corev1.Pod) string

func (*KubeClient) GetConfigmaps

func (c *KubeClient) GetConfigmaps(namespace string) (*[]corev1.ConfigMap, error)

func (*KubeClient) GetIngresses

func (c *KubeClient) GetIngresses(namespace string) (*[]v1.Ingress, error)

func (*KubeClient) GetNamespaces

func (c *KubeClient) GetNamespaces() (*[]corev1.Namespace, error)

func (*KubeClient) GetPods

func (c *KubeClient) GetPods(namespace string) (*[]corev1.Pod, error)

func (*KubeClient) GetPodsByLabel

func (c *KubeClient) GetPodsByLabel(namespace, label string) []corev1.Pod

func (*KubeClient) GetPodsWithConfigmap

func (c *KubeClient) GetPodsWithConfigmap(configmap, fileName, namespace string) ([]*corev1.Pod, error)

func (*KubeClient) GetSecret

func (c *KubeClient) GetSecret(name, namespace, key string) []byte

func (*KubeClient) GetSecrets

func (c *KubeClient) GetSecrets(namespace string) (*[]corev1.Secret, error)

func (*KubeClient) GetServiceSelectors

func (c *KubeClient) GetServiceSelectors(name, namespace string) string

func (*KubeClient) GetServices

func (c *KubeClient) GetServices(namespace string) (*[]corev1.Service, error)

func (*KubeClient) GetServicesWithLabels

func (c *KubeClient) GetServicesWithLabels(l map[string]string, namespace string) (*[]corev1.Service, error)

func (*KubeClient) IsServiceHealthy

func (c *KubeClient) IsServiceHealthy(service, namespace string) bool

Jump to

Keyboard shortcuts

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