Documentation ¶
Index ¶
- Variables
- func K8sClientset(kubeConfPath string) (*kubernetes.Clientset, error)
- func K8sServerVersionQuery() (*version.Info, error)
- func PodsDelete(ctx context.Context, podNamespace, podName string) error
- func PodsList(ctx context.Context) (*v1.PodList, error)
- func PodsMapAdd(eventObject runtime.Object) *v1.Pod
- func PodsMapCopy() map[types.UID]*v1.Pod
- func PodsMapDel(eventObject runtime.Object) *v1.Pod
- func PodsWatch(ctx context.Context) (watch.Interface, error)
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 ¶
K8sServerVersionQuery query the kubernetes api retrive the k8s info
func PodsDelete ¶
PodsDelete func
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.