k8s

package
v5.2.2-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: LGPL-3.0 Imports: 15 Imported by: 0

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 -

Jump to

Keyboard shortcuts

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