blob: ff875c904ba547effa1ee296e83775536577f528 [file] [log] [blame]
Samuel A. Falvo II17ae5652014-02-12 20:47:43 -08001package images
2
3import (
4 "fmt"
5 "github.com/racker/perigee"
6)
7
Samuel A. Falvo II17ae5652014-02-12 20:47:43 -08008var ErrNotImplemented = fmt.Errorf("Images functionality not implemented.")
9
10type ListResults map[string]interface{}
11
12func List(c *Client) (ListResults, error) {
13 var lr ListResults
14
15 h, err := c.getListHeaders()
16 if err != nil {
17 return nil, err
18 }
19
20 err = perigee.Get(c.getListUrl(), perigee.Options{
Samuel A. Falvo IIe246ac02014-02-13 23:20:09 -080021 Results: &lr,
Samuel A. Falvo II17ae5652014-02-12 20:47:43 -080022 MoreHeaders: h,
23 })
24 return lr, err
25}