Documentation ¶
Index ¶
- func ListServices(namespace string, client kubernetes.Interface) (*corev1.ServiceList, error)
- type KubeClient
- func (c *KubeClient) ApplyManifest(manifest, resource, namespace string) error
- func (c *KubeClient) DeleteConfigmaps(configmaps *[]string, namespace string) error
- func (c *KubeClient) DeleteIngresses(ingresses *[]string, namespace string) error
- func (c *KubeClient) DeletePods(pods *[]string, namespace string) error
- func (c *KubeClient) DeleteSecrets(secrets *[]string, namespace string) error
- func (c *KubeClient) DeleteServices(services *[]string, namespace string) error
- func (c *KubeClient) GetConfigMapFileMountedPodLabels(namespace, fileName string) []map[string]string
- func (c *KubeClient) GetConfigmap(name, namespace string) (*corev1.ConfigMap, error)
- func (c *KubeClient) GetConfigmapMountPathFromPod(configmap string, pod *corev1.Pod) string
- func (c *KubeClient) GetConfigmaps(namespace string) (*[]corev1.ConfigMap, error)
- func (c *KubeClient) GetIngresses(namespace string) (*[]v1.Ingress, error)
- func (c *KubeClient) GetNamespaces() (*[]corev1.Namespace, error)
- func (c *KubeClient) GetPods(namespace string) (*[]corev1.Pod, error)
- func (c *KubeClient) GetPodsByLabel(namespace, label string) []corev1.Pod
- func (c *KubeClient) GetPodsWithConfigmap(configmap, fileName, namespace string) ([]*corev1.Pod, error)
- func (c *KubeClient) GetSecret(name, namespace, key string) []byte
- func (c *KubeClient) GetSecrets(namespace string) (*[]corev1.Secret, error)
- func (c *KubeClient) GetServiceSelectors(name, namespace string) string
- func (c *KubeClient) GetServices(namespace string) (*[]corev1.Service, error)
- func (c *KubeClient) GetServicesWithLabels(l map[string]string, namespace string) (*[]corev1.Service, error)
- func (c *KubeClient) IsServiceHealthy(service, namespace string) bool
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) 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 (*KubeClient) IsServiceHealthy ¶
func (c *KubeClient) IsServiceHealthy(service, namespace string) bool
Click to show internal directories.
Click to hide internal directories.