Jon Perritt | efe6d1f | 2015-02-09 12:04:06 -0700 | [diff] [blame] | 1 | package buildinfo |
2 | |||||
3 | import ( | ||||
4 | "github.com/racker/perigee" | ||||
5 | "github.com/rackspace/gophercloud" | ||||
6 | ) | ||||
7 | |||||
8 | // Get retreives data for the given stack template. | ||||
9 | func Get(c *gophercloud.ServiceClient) GetResult { | ||||
10 | var res GetResult | ||||
11 | _, res.Err = perigee.Request("GET", getURL(c), perigee.Options{ | ||||
12 | MoreHeaders: c.AuthenticatedHeaders(), | ||||
13 | Results: &res.Body, | ||||
14 | OkCodes: []int{200}, | ||||
15 | }) | ||||
16 | return res | ||||
17 | } |