blob: 29629a1af8d628e7459321ec6ce42bf21a78ebea [file] [log] [blame]
Jon Perritta67af872014-09-17 00:50:32 -05001package volumes
2
3import "github.com/rackspace/gophercloud"
4
Jon Perritt6d5561b2014-10-01 21:42:15 -05005func createURL(c *gophercloud.ServiceClient) string {
Jon Perritta67af872014-09-17 00:50:32 -05006 return c.ServiceURL("volumes")
7}
8
Jon Perritt6d5561b2014-10-01 21:42:15 -05009func listURL(c *gophercloud.ServiceClient) string {
10 return createURL(c)
11}
12
13func deleteURL(c *gophercloud.ServiceClient, id string) string {
Jon Perritta67af872014-09-17 00:50:32 -050014 return c.ServiceURL("volumes", id)
15}
Jon Perritt6d5561b2014-10-01 21:42:15 -050016
17func getURL(c *gophercloud.ServiceClient, id string) string {
18 return deleteURL(c, id)
19}
20
21func updateURL(c *gophercloud.ServiceClient, id string) string {
22 return deleteURL(c, id)
23}