Documentation
¶
Index ¶
- Variables
- func AddTaint(c *gin.Context)
- func AllLabelList(c *gin.Context)
- func AllTaintList(c *gin.Context)
- func BatchCordon(c *gin.Context)
- func BatchDrain(c *gin.Context)
- func BatchUnCordon(c *gin.Context)
- func Cordon(c *gin.Context)
- func CreateKubectlShell(c *gin.Context)
- func CreateNodeShell(c *gin.Context)
- func DeleteTaint(c *gin.Context)
- func Drain(c *gin.Context)
- func ListTaint(c *gin.Context)
- func NameOptionList(c *gin.Context)
- func TopList(c *gin.Context)
- func UnCordon(c *gin.Context)
- func UniqueLabels(c *gin.Context)
- func UpdateTaint(c *gin.Context)
- func Usage(c *gin.Context)
- type TaintInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var WebsocketMessageType = map[int]string{ websocket.BinaryMessage: "binary", websocket.TextMessage: "text", websocket.CloseMessage: "close", websocket.PingMessage: "ping", websocket.PongMessage: "pong", }
Functions ¶
func BatchCordon ¶ added in v0.0.22
BatchCordon 批量将指定的 Kubernetes 节点设置为不可调度(cordon)。 接收包含节点名称列表的 JSON 请求体,逐个节点执行 cordon 操作,若有节点操作失败则返回错误,否则返回操作成功。
func BatchDrain ¶ added in v0.0.22
BatchDrain 批量驱逐指定的 Kubernetes 节点。 从请求体获取节点名称列表,依次对每个节点执行驱逐操作,若有任一节点驱逐失败,则返回错误,否则返回操作成功。
func BatchUnCordon ¶ added in v0.0.22
BatchUnCordon 批量解除指定节点的隔离状态(Uncordon),使其重新可调度。 从请求体中读取节点名称列表,对每个节点执行解除隔离操作。若有任一节点操作失败,将返回错误信息,否则返回操作成功。
func CreateKubectlShell ¶ added in v0.0.44
func CreateNodeShell ¶ added in v0.0.44
func NameOptionList ¶ added in v0.0.23
func UniqueLabels ¶ added in v0.0.49
UniqueLabels 获取选定集群中所有唯一的节点标签键,并以选项列表形式返回。
Types ¶
Click to show internal directories.
Click to hide internal directories.