Documentation ¶
Index ¶
- Constants
- Variables
- func GetClientSet(config *rest.Config) *kubernetes.Clientset
- func GetContext() *rest.Config
- func GetPodsHandler(w http.ResponseWriter, r *http.Request)
- func HandleNewContext(_ http.ResponseWriter, _ *http.Request)
- func Handler(w http.ResponseWriter, r *http.Request)
- func PodListToTable(list v1.PodList) ([]string, [][]string, error)
- func PodToStrArr(pod v1.Pod) []string
- type Kubectl
Constants ¶
View Source
const (
GetPodRoute = "kubectl/get/pods"
)
Variables ¶
View Source
var ( Log = util.Log DEBUG = util.DEBUG INFO = util.INFO WARN = util.WARN ERROR = util.ERROR )
View Source
var TotalGetPodRoute = rootPath + GetPodRoute
Functions ¶
func GetClientSet ¶
func GetClientSet(config *rest.Config) *kubernetes.Clientset
func GetContext ¶
func GetPodsHandler ¶
func GetPodsHandler(w http.ResponseWriter, r *http.Request)
func HandleNewContext ¶
func HandleNewContext(_ http.ResponseWriter, _ *http.Request)
func PodToStrArr ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.