Documentation ¶
Index ¶
- func CreatePatch(o, n, datastruct interface{}) ([]byte, error)
- func DefListEventsByPod(clientset kubernetes.Interface, pod *corev1.Pod) *corev1.EventList
- func ExtractLabels(labels map[string]string) (string, string, string, string)
- func GetClientSet() kubernetes.Interface
- func GetKubeVersion() *utilversion.Version
- func InClusterConfig() (*rest.Config, error)
- func IngressPathType(pathType networkingv1.PathType) *networkingv1.PathType
- func IsHighVersion() bool
- func MustNewKubeConfig(kubeconfigPath string) *rest.Config
- func NewClientset(kubecfg string) (kubernetes.Interface, error)
- func NewClientsetOrDie(kubecfg string) kubernetes.Interface
- func NewRestClient(restConfig *rest.Config) (*rest.RESTClient, error)
- func NewRestConfig(kubecfg string) (restConfig *rest.Config, err error)
- func ObjKey(obj metav1.Object) string
- type ListEventsByPod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefListEventsByPod ¶
DefListEventsByPod default implementatoin of ListEventsByPod
func ExtractLabels ¶
ExtractLabels extracts the service information from the labels
func GetKubeVersion ¶
func GetKubeVersion() *utilversion.Version
GetKubeVersion returns the version of k8s
func InClusterConfig ¶
InClusterConfig in cluster config
func IngressPathType ¶
func IngressPathType(pathType networkingv1.PathType) *networkingv1.PathType
IngressPathType -
func MustNewKubeConfig ¶
MustNewKubeConfig -
func NewClientsetOrDie ¶
func NewClientsetOrDie(kubecfg string) kubernetes.Interface
NewClientsetOrDie new clientset or die used for who just wants a kubernetes clientset
func NewRestClient ¶
func NewRestClient(restConfig *rest.Config) (*rest.RESTClient, error)
NewRestClient new rest client
func NewRestConfig ¶
NewRestConfig new rest config
Types ¶
type ListEventsByPod ¶
ListEventsByPod -
Click to show internal directories.
Click to hide internal directories.