node

package
v0.0.0-...-71c9d12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabel

func AddLabel(c *gin.Context)

@Title 添加标签 node label @Description add a label for a node @router /:name/clusters/:cluster/label [post]

func AddLabels

func AddLabels(c *gin.Context)

@Title node添加多个标签 @Description Add labels in bulk for node @router /:name/clusters/:cluster/labels [post]

func Delete

func Delete(c *gin.Context)

Delete 删除节点

func DeleteLabel

func DeleteLabel(c *gin.Context)

DeleteLabel 删除标签

func DeleteLabels

func DeleteLabels(c *gin.Context)

@Title 删除多个标签 @Description Delete node labels in batches @router /:name/clusters/:cluster/labels [delete]

func DeleteTaint

func DeleteTaint(c *gin.Context)

@Title 删除 taint @Description delete a taint from node @router /:name/clusters/:cluster/taint [delete]

func Get

func Get(c *gin.Context)

@router /:name/clusters/:cluster [get] 获取单个节点的信息

func GetLabels

func GetLabels(c *gin.Context)

@Title 获取标签 node labels @Description get labels of a node @router /:name/clusters/:cluster/labels [get]

func List

func List(c *gin.Context)

List 获取节点列表

func NodeStatistics

func NodeStatistics(c *gin.Context)

获取节点统计信息

func SetTaint

func SetTaint(c *gin.Context)

@Title 设置 taint @Description set taint for a node @router /:name/clusters/:cluster/taint [post]

func Update

func Update(c *gin.Context)

Update 更新节点信息 @router /:name/clusters/:cluster [put]

Types

type Label

type Label struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

用于表示标签的结构

type LabelSet

type LabelSet struct {
	Labels []Label `json:"Labels"`
}

Jump to

Keyboard shortcuts

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