// GetLabels return the stored labels for a given appname func GetLabels(s storage.Storage) func(c *gin.Context) { return func(c *gin.Context) { name := c.Param("appname") lbls := s.GetLabels(name) labels := &common.Labels{lbls} c.IndentedJSON(http.StatusOK, labels) } }