blob: 2aa472300d1f146a75b0a9d90d43e1f4c9c3aa42 [file] [log] [blame]
package images
import (
"fmt"
"github.com/racker/perigee"
)
var ErrNotImplemented = fmt.Errorf("Images 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
}