k8sutils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWrapper

type ClientWrapper struct {
	// contains filtered or unexported fields
}

func CreateKubernetesClient

func CreateKubernetesClient() ClientWrapper

func (*ClientWrapper) ForEachConfigMap

func (c *ClientWrapper) ForEachConfigMap(namespace string, options metav1.ListOptions, handler func(resource v1.ConfigMap) error) error

func (*ClientWrapper) ForEachCronJob

func (c *ClientWrapper) ForEachCronJob(namespace string, options metav1.ListOptions, handler func(resource batchv1beta1.CronJob) error) error

func (*ClientWrapper) ForEachDaemonSet

func (c *ClientWrapper) ForEachDaemonSet(namespace string, options metav1.ListOptions, handler func(resource appsv1.DaemonSet) error) error

func (*ClientWrapper) ForEachDeployment

func (c *ClientWrapper) ForEachDeployment(namespace string, options metav1.ListOptions, handler func(resource appsv1.Deployment) error) error

func (*ClientWrapper) ForEachIngress

func (c *ClientWrapper) ForEachIngress(namespace string, options metav1.ListOptions, handler func(resource networkingv1.Ingress) error) error

func (*ClientWrapper) ForEachJob

func (c *ClientWrapper) ForEachJob(namespace string, options metav1.ListOptions, handler func(resource batchv1.Job) error) error

func (*ClientWrapper) ForEachSecret

func (c *ClientWrapper) ForEachSecret(namespace string, options metav1.ListOptions, handler func(resource v1.Secret) error) error

func (*ClientWrapper) ForEachService

func (c *ClientWrapper) ForEachService(namespace string, options metav1.ListOptions, handler func(resource v1.Service) error) error

func (*ClientWrapper) ForEachStatefulSet

func (c *ClientWrapper) ForEachStatefulSet(namespace string, options metav1.ListOptions, handler func(resource appsv1.StatefulSet) error) error

func (*ClientWrapper) Query

func (c *ClientWrapper) Query(selector KubernetesSelector, handler func(resource []byte) error) error

type KubernetesSelector

type KubernetesSelector struct {
	Kind      string
	Namespace string
	Labels    map[string]string
}

func (*KubernetesSelector) LabelSelector

func (selector *KubernetesSelector) LabelSelector() string

Jump to

Keyboard shortcuts

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