Ejemplo n.º 1
0
// 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)
	}
}