rainbond: github.com/goodrain/rainbond/node/api/controller Index | Files

package controller

import "github.com/goodrain/rainbond/node/api/controller"

Index

Package Files

ConfController.go app_controller.go cluster_controller.go comman.go discoverController.go node_controller.go volume.go

func APPDiscover Uses

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

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

func APPList Uses

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

APPList 列出已注册应用

func APPRegister Uses

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

APPRegister 服务注册

func AddNode Uses

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

AddNode add a node

func CapRes Uses

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

CapRes CapRes

func CheckNode Uses

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

CheckNode -

func ClusterDiscover Uses

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

ClusterDiscover ClusterDiscover

func ClusterInfo Uses

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

ClusterInfo ClusterInfo

func Cordon Uses

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

Cordon 不可调度

func CreateLocalVolume Uses

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

CreateLocalVolume crete local volume dir

func DeleteLabel Uses

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

DeleteLabel delete node label

func DeleteNodeCondition Uses

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

DeleteNodeCondition delete node condition

func DeleteRainbondNode Uses

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

DeleteRainbondNode 节点删除

func DownNode Uses

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

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

func Exist Uses

func Exist(i interface{})

Exist 退出

func GetAllNodeHealth Uses

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

GetAllNodeHealth get all node health

func GetDatacenterConfig Uses

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

GetDatacenterConfig 获取数据中心配置

func GetLabel Uses

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

GetLabel get node label

func GetNode Uses

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

GetNode 获取一个节点详情

func GetNodeBasic Uses

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

GetNodeBasic GetNodeBasic

func GetNodeDetails Uses

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

GetNodeDetails GetNodeDetails

func GetNodeResource Uses

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

GetNodeResource -

func GetNodes Uses

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

GetNodes 获取全部节点

func GetRuleNodes Uses

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

GetRuleNodes 获取分角色节点

func GetServicesHealthy Uses

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

GetServicesHealthy get service healthy

func Init Uses

func Init(c *option.Conf, ms *masterserver.MasterServer, kube kubecache.KubeClient)

Init 初始化

func InitStatus Uses

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

InitStatus init status

func InstallNode Uses

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

InstallNode install a node

func Instances Uses

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

Instances get node service instances

func ListNodeCondition Uses

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

ListNodeCondition list node condition

func ListenerDiscover Uses

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

ListenerDiscover ListenerDiscover

func Ping Uses

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

Ping Ping

func PluginResourcesConfig Uses

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

PluginResourcesConfig discover plugin config

func PutDatacenterConfig Uses

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

PutDatacenterConfig 更新数据中心配置

func PutLabel Uses

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

PutLabel 更新节点标签

func Resource Uses

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

Resource -

func Resources Uses

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

Resources specified node scheduler resources info

func RoutesDiscover Uses

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

RoutesDiscover RoutesDiscover no impl

func ServiceDiscover Uses

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

ServiceDiscover service discover service

func UnCordon Uses

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

UnCordon 可调度

func UpNode Uses

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

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

func UpdateNodeStatus Uses

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

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

Package controller imports 27 packages (graph) and is imported by 3 packages. Updated 2019-11-17. Refresh now. Tools for package owners.