node

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 AddTaint added in v0.0.27

func AddTaint(c *gin.Context)

AddTaint 添加污点

func AllLabelList added in v0.0.27

func AllLabelList(c *gin.Context)

AllLabelList 获取所有节点上的标签

func AllTaintList added in v0.0.27

func AllTaintList(c *gin.Context)

AllTaintList 获取所有节点上的污点

func BatchCordon added in v0.0.22

func BatchCordon(c *gin.Context)

func BatchDrain added in v0.0.22

func BatchDrain(c *gin.Context)

func BatchUnCordon added in v0.0.22

func BatchUnCordon(c *gin.Context)

func Cordon

func Cordon(c *gin.Context)

func CreateKubectlShell added in v0.0.44

func CreateKubectlShell(c *gin.Context)

func CreateNodeShell added in v0.0.44

func CreateNodeShell(c *gin.Context)

func DeleteTaint added in v0.0.27

func DeleteTaint(c *gin.Context)

DeleteTaint 删除污点

func Drain

func Drain(c *gin.Context)

func ListTaint added in v0.0.27

func ListTaint(c *gin.Context)

ListTaint 获取某个节点上的污点

func NameOptionList added in v0.0.23

func NameOptionList(c *gin.Context)

func UnCordon

func UnCordon(c *gin.Context)

func UniqueLabels added in v0.0.49

func UniqueLabels(c *gin.Context)

func UpdateTaint added in v0.0.27

func UpdateTaint(c *gin.Context)

UpdateTaint 修改污点

func Usage added in v0.0.18

func Usage(c *gin.Context)

Types

type TaintInfo added in v0.0.27

type TaintInfo struct {
	Key    string `json:"key"`
	Value  string `json:"value"`
	Effect string `json:"effect"`
}

Jump to

Keyboard shortcuts

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