Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefListEventsByPod

func DefListEventsByPod(clientset kubernetes.Interface, pod *corev1.Pod) *corev1.EventList

DefListEventsByPod default implementatoin of ListEventsByPod

func ExtractLabels

func ExtractLabels(labels map[string]string) (string, string, string, string)

ExtractLabels extracts the service information from the labels

func InClusterConfig

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

InClusterConfig in cluster config

func NewClientset

func NewClientset(kubecfg string) (kubernetes.Interface, error)

NewClientset -

func NewClientsetOrDie

func NewClientsetOrDie(kubecfg string) kubernetes.Interface

NewClientsetOrDie new clientset or die used for who just wants a kubernetes clientset

func NewRainbondFilteredSharedInformerFactory

func NewRainbondFilteredSharedInformerFactory(clientset kubernetes.Interface) informers.SharedInformerFactory

NewRainbondFilteredSharedInformerFactory -

func NewRestClient

func NewRestClient(restConfig *rest.Config) (*rest.RESTClient, error)

NewRestClient new rest client

func NewRestConfig

func NewRestConfig(kubecfg string) (restConfig *rest.Config, err error)

NewRestConfig new rest config

Types

type ListEventsByPod

type ListEventsByPod func(kubernetes.Interface, *corev1.Pod) *corev1.EventList

ListEventsByPod -

Source Files