feisky | da54614 | 2015-09-17 12:28:23 +0800 | [diff] [blame] | 1 | package volumes |
| 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
| 5 | func createURL(c *gophercloud.ServiceClient) string { |
| 6 | return c.ServiceURL("volumes") |
| 7 | } |
| 8 | |
| 9 | func listURL(c *gophercloud.ServiceClient) string { |
feisky | cf0c7fe | 2015-11-05 22:06:17 +0800 | [diff] [blame^] | 10 | return c.ServiceURL("volumes", "detail") |
feisky | da54614 | 2015-09-17 12:28:23 +0800 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | func deleteURL(c *gophercloud.ServiceClient, id string) string { |
| 14 | return c.ServiceURL("volumes", id) |
| 15 | } |
| 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 | } |