controller

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: LGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APPDiscover

func APPDiscover(w http.ResponseWriter, r *http.Request)

APPDiscover 服务发现 用于实时性要求不高的场景,例如docker发现event_log地址 请求API返回可用地址

func APPList

func APPList(w http.ResponseWriter, r *http.Request)

APPList 列出已注册应用

func APPRegister

func APPRegister(w http.ResponseWriter, r *http.Request)

APPRegister 服务注册

func AddNode

func AddNode(w http.ResponseWriter, r *http.Request)

AddNode add a node

func CapRes

func CapRes(w http.ResponseWriter, r *http.Request)

CapRes CapRes

func CheckNode

func CheckNode(w http.ResponseWriter, r *http.Request)

CheckNode -

func ClusterDiscover

func ClusterDiscover(w http.ResponseWriter, r *http.Request)

ClusterDiscover ClusterDiscover

func ClusterInfo

func ClusterInfo(w http.ResponseWriter, r *http.Request)

ClusterInfo ClusterInfo

func Cordon

func Cordon(w http.ResponseWriter, r *http.Request)

Cordon 不可调度

func CreateLocalVolume

func CreateLocalVolume(w http.ResponseWriter, r *http.Request)

CreateLocalVolume crete local volume dir

func DeleteLabel

func DeleteLabel(w http.ResponseWriter, r *http.Request)

DeleteLabel delete node label

func DeleteLocalVolume

func DeleteLocalVolume(w http.ResponseWriter, r *http.Request)

DeleteLocalVolume delete local volume dir

func DeleteNodeCondition

func DeleteNodeCondition(w http.ResponseWriter, r *http.Request)

DeleteNodeCondition delete node condition

func DeleteWutongNode

func DeleteWutongNode(w http.ResponseWriter, r *http.Request)

DeleteWutongNode 节点删除

func DownNode

func DownNode(w http.ResponseWriter, r *http.Request)

DownNode 节点下线,计算节点操作

func Exist

func Exist(i interface{})

Exist 退出

func GetAllNodeHealth

func GetAllNodeHealth(w http.ResponseWriter, r *http.Request)

GetAllNodeHealth get all node health

func GetDatacenterConfig

func GetDatacenterConfig(w http.ResponseWriter, r *http.Request)

GetDatacenterConfig 获取数据中心配置

func GetLabel

func GetLabel(w http.ResponseWriter, r *http.Request)

GetLabel get node label

func GetNode

func GetNode(w http.ResponseWriter, r *http.Request)

GetNode 获取一个节点详情

func GetNodeBasic

func GetNodeBasic(w http.ResponseWriter, r *http.Request)

GetNodeBasic GetNodeBasic

func GetNodeDetails

func GetNodeDetails(w http.ResponseWriter, r *http.Request)

GetNodeDetails GetNodeDetails

func GetNodeResource

func GetNodeResource(w http.ResponseWriter, r *http.Request)

GetNodeResource -

func GetNodes

func GetNodes(w http.ResponseWriter, r *http.Request)

GetNodes 获取全部节点

func GetRuleNodes

func GetRuleNodes(w http.ResponseWriter, r *http.Request)

GetRuleNodes 获取分角色节点

func GetServicesHealthy

func GetServicesHealthy(w http.ResponseWriter, r *http.Request)

GetServicesHealthy get service healthy

func Init

Init 初始化

func InstallNode

func InstallNode(w http.ResponseWriter, r *http.Request)

InstallNode install a node

func Instances

func Instances(w http.ResponseWriter, r *http.Request)

Instances get node service instances

func ListNodeCondition

func ListNodeCondition(w http.ResponseWriter, r *http.Request)

ListNodeCondition list node condition

func ListenerDiscover

func ListenerDiscover(w http.ResponseWriter, r *http.Request)

ListenerDiscover ListenerDiscover

func Ping

func Ping(w http.ResponseWriter, r *http.Request)

Ping Ping

func PluginResourcesConfig

func PluginResourcesConfig(w http.ResponseWriter, r *http.Request)

PluginResourcesConfig discover plugin config

func PutDatacenterConfig

func PutDatacenterConfig(w http.ResponseWriter, r *http.Request)

PutDatacenterConfig 更新数据中心配置

func PutLabel

func PutLabel(w http.ResponseWriter, r *http.Request)

PutLabel 更新节点标签

func Resource

func Resource(w http.ResponseWriter, r *http.Request)

Resource -

func Resources

func Resources(w http.ResponseWriter, r *http.Request)

Resources specified node scheduler resources info

func RoutesDiscover

func RoutesDiscover(w http.ResponseWriter, r *http.Request)

RoutesDiscover RoutesDiscover no impl

func ServiceDiscover

func ServiceDiscover(w http.ResponseWriter, r *http.Request)

ServiceDiscover service discover service

func UnCordon

func UnCordon(w http.ResponseWriter, r *http.Request)

UnCordon 可调度

func UpNode

func UpNode(w http.ResponseWriter, r *http.Request)

UpNode 节点上线,计算节点操作

func UpdateNodeStatus

func UpdateNodeStatus(w http.ResponseWriter, r *http.Request)

UpdateNodeStatus update node status `{"status":"installing"}`

Types

This section is empty.

Jump to

Keyboard shortcuts

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