kubernetes

package
v0.0.0-...-08c9609 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() (*rest.Config, error)

Types

type ContainerInfo

type ContainerInfo struct {
	Image *oci.RegistryImage
	Name  string
}

type KubeClient

type KubeClient struct {
	Client *kubernetes.Clientset
}

func NewClient

func NewClient() *KubeClient

func (*KubeClient) CreatePodInformer

func (client *KubeClient) CreatePodInformer(labelSelector string) cache.SharedIndexInformer

func (*KubeClient) ExtractPodInfos

func (client *KubeClient) ExtractPodInfos(pod corev1.Pod) PodInfo

func (*KubeClient) ListNamespaces

func (client *KubeClient) ListNamespaces(labelSelector string) ([]corev1.Namespace, error)

func (*KubeClient) LoadPodInfos

func (client *KubeClient) LoadPodInfos(namespaces []corev1.Namespace, podLabelSelector string) []PodInfo

func (*KubeClient) LoadSecrets

func (client *KubeClient) LoadSecrets(namespace string, secrets []corev1.LocalObjectReference) []*oci.KubeCreds

type PodInfo

type PodInfo struct {
	Containers      []*ContainerInfo
	PodName         string
	PodNamespace    string
	Annotations     map[string]string
	Labels          map[string]string
	PullSecretNames []corev1.LocalObjectReference
}

Jump to

Keyboard shortcuts

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