Jamie Hannaford | 9fdda58 | 2015-02-10 12:15:43 +0100 | [diff] [blame] | 1 | package instances |
| 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
| 5 | func baseURL(c *gophercloud.ServiceClient) string { |
| 6 | return c.ServiceURL("instances") |
| 7 | } |
Jamie Hannaford | 821015f | 2015-02-10 12:58:36 +0100 | [diff] [blame] | 8 | |
| 9 | func resourceURL(c *gophercloud.ServiceClient, id string) string { |
| 10 | return c.ServiceURL("instances", id) |
| 11 | } |
Jamie Hannaford | 94164fa | 2015-02-10 13:58:45 +0100 | [diff] [blame] | 12 | |
| 13 | func userRootURL(c *gophercloud.ServiceClient, id string) string { |
| 14 | return c.ServiceURL("instances", id, "root") |
| 15 | } |
Jamie Hannaford | 219ca59 | 2015-02-10 15:59:05 +0100 | [diff] [blame] | 16 | |
| 17 | func actionURL(c *gophercloud.ServiceClient, id string) string { |
| 18 | return c.ServiceURL("instances", id, "action") |
| 19 | } |