hosts

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheLock = util.Lock{}

Functions

func CacheNodeStatus

func CacheNodeStatus(data []hosts.CloudClusterHosts, c kubernetes.Clientset)

func CronCache

func CronCache()

2018-02-12 21;37 任务计划设置缓存

func GetClusterHosts

func GetClusterHosts(cluster string) []hosts.CloudClusterHosts

获取某个集群里面集群的数量,删除集群时做验证

func GetMaster

func GetMaster(cluster string) (string, string)

获取集群里master的地址

Types

type HostsController

type HostsController struct {
	beego.Controller
}

func (*HostsController) Add

func (this *HostsController) Add()

@router /base/hosts/add [get]

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) LabelAdd

func (this *HostsController) LabelAdd()

添加主机标签 2018-01-18 21:15

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) Save

func (this *HostsController) Save()

json @router /api/hosts [post]

func (*HostsController) Schedulable

func (this *HostsController) Schedulable()

2018-02-12 19:04 node节点调度操作 @router /api/cluster/hosts/:id:int [post]

Jump to

Keyboard shortcuts

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