blob: 837287b8a30afae08365544c085c22f3bc31bfce [file] [log] [blame]
Jon Perritt8c4327f2014-09-21 23:35:47 -05001package snapshots
2
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02003import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
Jon Perritt8c4327f2014-09-21 23:35:47 -05004
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}