models

package
v0.0.0-...-e28fca9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PodsMap sync.Map

Functions

func K8sClientset

func K8sClientset(kubeConfPath string) (*kubernetes.Clientset, error)

K8sClientset return the client of k8s

func K8sServerVersionQuery

func K8sServerVersionQuery() (*version.Info, error)

K8sServerVersionQuery query the kubernetes api retrive the k8s info

func PodsDelete

func PodsDelete(ctx context.Context, podNamespace, podName string) error

PodsDelete func

func PodsList

func PodsList(ctx context.Context) (*v1.PodList, error)

PodsList return the Pods from k8s

func PodsMapAdd

func PodsMapAdd(eventObject runtime.Object) *v1.Pod

func PodsMapCopy

func PodsMapCopy() map[types.UID]*v1.Pod

func PodsMapDel

func PodsMapDel(eventObject runtime.Object) *v1.Pod

func PodsWatch

func PodsWatch(ctx context.Context) (watch.Interface, error)

PodsWatch return the watch pods events interface from k8s

Types

This section is empty.

Jump to

Keyboard shortcuts

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