Documentation
¶
Index ¶
- Variables
- func CacheNodeStatus(data []hosts.CloudClusterHosts, c kubernetes.Clientset)
- func CronCache()
- func GetClusterHosts(cluster string) []hosts.CloudClusterHosts
- func GetMaster(cluster string) (string, string)
- type HostsController
- func (this *HostsController) Add()
- func (this *HostsController) Delete()
- func (this *HostsController) GetHostImages()
- func (this *HostsController) GetHostReport()
- func (this *HostsController) HostsData()
- func (this *HostsController) LabelAdd()
- func (this *HostsController) LabelSave()
- func (this *HostsController) List()
- func (this *HostsController) Save()
- func (this *HostsController) Schedulable()
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheLock = util.Lock{}
Functions ¶
func CacheNodeStatus ¶
func CacheNodeStatus(data []hosts.CloudClusterHosts, c kubernetes.Clientset)
func GetClusterHosts ¶
func GetClusterHosts(cluster string) []hosts.CloudClusterHosts
获取某个集群里面集群的数量,删除集群时做验证
Types ¶
type HostsController ¶
type HostsController struct {
beego.Controller
}
func (*HostsController) Delete ¶
func (this *HostsController) Delete()
@router /api/hosts/delete [*]
func (*HostsController) GetHostImages ¶
func (this *HostsController) GetHostImages()
获取主机镜像 @router /api/cluster/hosts/images/:id:int [get]
func (*HostsController) GetHostReport ¶
func (this *HostsController) GetHostReport()
2018-09-04 10:17 获取主机报表数据 @router /api/cluster/hosts/report/:id:int [get]
func (*HostsController) HostsData ¶
func (this *HostsController) HostsData()
主机数据获取 @router /api/hosts/data [get]
func (*HostsController) LabelSave ¶
func (this *HostsController) LabelSave()
保存标签 2018-01-18 21:25 @router /api/cluster/label [post]
func (*HostsController) List ¶
func (this *HostsController) List()
主机管理入口页面 @router /base/hosts/index [get]
func (*HostsController) Schedulable ¶
func (this *HostsController) Schedulable()
2018-02-12 19:04 node节点调度操作 @router /api/cluster/hosts/:id:int [post]
Click to show internal directories.
Click to hide internal directories.