Documentation ¶
Index ¶
- func DefaultConfig() (*rest.Config, error)
- type ContainerInfo
- type KubeClient
- func (client *KubeClient) CreatePodInformer(labelSelector string) cache.SharedIndexInformer
- func (client *KubeClient) ExtractPodInfos(pod corev1.Pod) PodInfo
- func (client *KubeClient) ListNamespaces(labelSelector string) ([]corev1.Namespace, error)
- func (client *KubeClient) LoadPodInfos(namespaces []corev1.Namespace, podLabelSelector string) []PodInfo
- func (client *KubeClient) LoadSecrets(namespace string, secrets []corev1.LocalObjectReference) []*oci.KubeCreds
- type PodInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
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
Click to show internal directories.
Click to hide internal directories.