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) }
func (c Regions) Instances(id string) revel.Result { revel.ERROR.Println(id) instances := models.GetInstances() return c.Render(id, instances) }
func (c Instances) Index() revel.Result { instances := models.GetInstances() return c.Render(instances) }