blob: 4d635e8dd454c7cef225a1efb2dcd2af9198fc1f [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
Jon Perritte357e3d2014-10-03 01:53:57 -050025func updateMetadataURL(c *gophercloud.ServiceClient, id string) string {
Jon Perritt6d5561b2014-10-01 21:42:15 -050026 return metadataURL(c, id)
27}