cluster

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheClusterData

func CacheClusterData()

2018-02-19 08:46 缓存集群信息到redis中,不用每次查库 任务计划自动更新数据

func CacheClusterDetailData

func CacheClusterDetailData(name string)

2018-02-19 09:13 缓存集群详情到redis里 获取集群资源使用详细情况

func CacheClusterHealthData

func CacheClusterHealthData()

2018-02-20 08:46 缓存集群信息到redis中,不用每次查库 任务计划自动更新数据 每一分钟一次

func GetClusterData

func GetClusterData(clusterName string) cluster.CloudClusterDetail

获取集群数据,首页使用

func GetClusterDetailData

func GetClusterDetailData(name string) cluster.CloudClusterDetail

2018-02-19 09:37 获取集群数据

func GetClusterInfo

func GetClusterInfo(k cluster.CloudClusterDetail, cData *[]k8s.ClusterStatus)

使用线程获取cluster数据信息

func GetClusterMap

func GetClusterMap() util.Lock

获取集群名称和别名的对应关系 2018-01-21 17:46

func GetClusterName

func GetClusterName() []cluster.CloudClusterName

获取所有集群名称信息

func GetClusterSelect

func GetClusterSelect() string

获取cluster数据 2018-01-26 13:38

func GoGetCluseterDetail

func GoGetCluseterDetail(clusterName string, details *cluster.CloudClusterDetail)

通过多线程添加和获取数据

Types

type ClusterController

type ClusterController struct {
	beego.Controller
}

func (*ClusterController) Add

func (this *ClusterController) Add()

添加集群 @router /base/cluster/add [get]

func (*ClusterController) ClusterData

func (this *ClusterController) ClusterData()

json 响应 集群数据获取 @router /api/cluster [get]

func (*ClusterController) ClusterName

func (this *ClusterController) ClusterName()

json响应 集群数据,直返回,集群名称和id的数据 @router /api/cluster/name [get]

func (*ClusterController) Delete

func (this *ClusterController) Delete()

@router /api/cluster/delete [*]

func (*ClusterController) DetailPage

func (this *ClusterController) DetailPage()

@router /base/cluster/detail/:hi(.*) [get]

func (*ClusterController) Images

func (this *ClusterController) Images()

集群管理入口页面 @router /base/cluster/image/:id:int [get]

func (*ClusterController) List

func (this *ClusterController) List()

集群管理入口页面 @router /base/cluster/index [get]

func (*ClusterController) NodesData

func (this *ClusterController) NodesData()

@router /api/cluster/nodes [get]

func (*ClusterController) Report

func (this *ClusterController) Report()

节点报表入口页面 @router /base/cluster/report/:id:int [get]

func (*ClusterController) Save

func (this *ClusterController) Save()

保存集群,初始化集群节点IP json @router /api/cluster [post]

Jump to

Keyboard shortcuts

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