Jon Perritt | a67af87 | 2014-09-17 00:50:32 -0500 | [diff] [blame] | 1 | package volumes |
| 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
Jon Perritt | 6d5561b | 2014-10-01 21:42:15 -0500 | [diff] [blame] | 5 | func createURL(c *gophercloud.ServiceClient) string { |
Jon Perritt | a67af87 | 2014-09-17 00:50:32 -0500 | [diff] [blame] | 6 | return c.ServiceURL("volumes") |
| 7 | } |
| 8 | |
Jon Perritt | 6d5561b | 2014-10-01 21:42:15 -0500 | [diff] [blame] | 9 | func listURL(c *gophercloud.ServiceClient) string { |
| 10 | return createURL(c) |
| 11 | } |
| 12 | |
| 13 | func deleteURL(c *gophercloud.ServiceClient, id string) string { |
Jon Perritt | a67af87 | 2014-09-17 00:50:32 -0500 | [diff] [blame] | 14 | return c.ServiceURL("volumes", id) |
| 15 | } |
Jon Perritt | 6d5561b | 2014-10-01 21:42:15 -0500 | [diff] [blame] | 16 | |
| 17 | func getURL(c *gophercloud.ServiceClient, id string) string { |
| 18 | return deleteURL(c, id) |
| 19 | } |
| 20 | |
| 21 | func updateURL(c *gophercloud.ServiceClient, id string) string { |
| 22 | return deleteURL(c, id) |
| 23 | } |