blob: f4dd0724ce1e19e08b75526a884dc93d97645f5e [file] [log] [blame]
package flavors
import (
"fmt"
"github.com/racker/perigee"
)
var ErrNotImplemented = fmt.Errorf("Flavors functionality not implemented.")
type ListResults map[string]interface{}
func List(c *Client) (ListResults, error) {
var lr ListResults
h, err := c.getListHeaders()
if err != nil {
return nil, err
}
err = perigee.Get(c.getListUrl(), perigee.Options{
Results: &lr,
MoreHeaders: h,
})
return lr, err
}