blob: 79783c41ca03febd4131447c9372a9dd22fbbc6a [file] [log] [blame]
package images
import (
"fmt"
"github.com/racker/perigee"
)
var ErrNotImplemented = fmt.Errorf("Images functionality not implemented.")
type ListResults map[string]interface{}
type ImageResults 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
}