Beispiel #1
0
func (c App) Index() revel.Result {
	regions := models.GetRegions()
	regionCount := len(regions)
	services := models.GetServices()
	serviceCount := len(services)
	instances := models.GetInstances()
	revel.ERROR.Println(instances)
	instanceCount := len(instances)
	hosts := models.GetHosts()
	hostCount := len(hosts)
	return c.Render(regions, regionCount, services, serviceCount, instances, instanceCount, hosts, hostCount)
}
Beispiel #2
0
func (c Regions) Nodes(id string) revel.Result {
	revel.ERROR.Println(id)
	hosts := models.GetHosts()
	return c.Render(id, hosts)
}
Beispiel #3
0
func (c Nodes) Index() revel.Result {

	hosts := models.GetHosts()
	return c.Render(hosts)
}