blob: fb324bbf018b070b66e32b2d96bb2fb653c0c994 [file] [log] [blame]
Jon Perritt8c4327f2014-09-21 23:35:47 -05001package snapshots
2
3import "github.com/rackspace/gophercloud"
4
Jon Perritt6d5561b2014-10-01 21:42:15 -05005func createURL(c *gophercloud.ServiceClient) string {
Jon Perritt8c4327f2014-09-21 23:35:47 -05006 return c.ServiceURL("snapshots")
7}
8
Jon Perritt6d5561b2014-10-01 21:42:15 -05009func deleteURL(c *gophercloud.ServiceClient, id string) string {
Jon Perritt8c4327f2014-09-21 23:35:47 -050010 return c.ServiceURL("snapshots", id)
11}
Jon Perritt6d5561b2014-10-01 21:42:15 -050012
13func getURL(c *gophercloud.ServiceClient, id string) string {
14 return deleteURL(c, id)
15}
16
17func listURL(c *gophercloud.ServiceClient) string {
18 return createURL(c)
19}
20
21func metadataURL(c *gophercloud.ServiceClient, id string) string {
22 return c.ServiceURL("snapshots", id, "metadata")
23}
24
25func updateURL(c *gophercloud.ServiceClient, id string) string {
26 return metadataURL(c, id)
27}