Jamie Hannaford | 2a4beaa | 2015-02-09 17:27:18 +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 | } |
| 8 | |
| 9 | func createURL(c *gophercloud.ServiceClient) string { |
| 10 | return baseURL(c) |
| 11 | } |
Jamie Hannaford | 936a547 | 2015-02-10 14:38:28 +0100 | [diff] [blame] | 12 | |
Jamie Hannaford | f77fc10 | 2015-02-10 14:56:02 +0100 | [diff] [blame] | 13 | func resourceURL(c *gophercloud.ServiceClient, id string) string { |
| 14 | return c.ServiceURL("instances", id) |
| 15 | } |
| 16 | |
| 17 | func configURL(c *gophercloud.ServiceClient, id string) string { |
Jamie Hannaford | 936a547 | 2015-02-10 14:38:28 +0100 | [diff] [blame] | 18 | return c.ServiceURL("instances", id, "configuration") |
| 19 | } |
Jamie Hannaford | 2e81732 | 2015-02-16 15:29:17 +0100 | [diff] [blame] | 20 | |
| 21 | func backupsURL(c *gophercloud.ServiceClient, id string) string { |
| 22 | return c.ServiceURL("instances", id, "backups") |
| 23 | } |