Documentation
¶
Index ¶
- func CacheClusterData()
- func CacheClusterDetailData(name string)
- func CacheClusterHealthData()
- func GetClusterData(clusterName string) cluster.CloudClusterDetail
- func GetClusterDetailData(name string) cluster.CloudClusterDetail
- func GetClusterInfo(k cluster.CloudClusterDetail, cData *[]k8s.ClusterStatus)
- func GetClusterMap() util.Lock
- func GetClusterName() []cluster.CloudClusterName
- func GetClusterSelect() string
- func GoGetCluseterDetail(clusterName string, details *cluster.CloudClusterDetail)
- type ClusterController
- func (this *ClusterController) Add()
- func (this *ClusterController) ClusterData()
- func (this *ClusterController) ClusterName()
- func (this *ClusterController) Delete()
- func (this *ClusterController) DetailPage()
- func (this *ClusterController) Images()
- func (this *ClusterController) List()
- func (this *ClusterController) NodesData()
- func (this *ClusterController) Report()
- func (this *ClusterController) Save()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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]
Click to show internal directories.
Click to hide internal directories.