Init

package
v0.0.0-...-1dfee00 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterID

func ClusterID(c *gin.Context) (*kubernetes.Clientset, error)

ClusterID 公共方法, 获取指定k8s集群的KubeConfig

func GetK8sClient

func GetK8sClient(k8sConf string) (*kubernetes.Clientset, error)

GetK8sClient 获取k8s Client

func GetRestConf

func GetRestConf(k8sConf string) (restConf *rest.Config, err error)

GetRestConf 获取k8s RESTConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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