blob: 4ad00598c7243f38d7c049e3ec66a062c5ca62fc [file] [log] [blame]
Jamie Hannaford82523522015-02-17 16:53:29 +01001package datastores
2
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02003import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
Jamie Hannaford82523522015-02-17 16:53:29 +01004
5func baseURL(c *gophercloud.ServiceClient) string {
6 return c.ServiceURL("datastores")
7}
8
9func resourceURL(c *gophercloud.ServiceClient, dsID string) string {
10 return c.ServiceURL("datastores", dsID)
11}
12
13func versionsURL(c *gophercloud.ServiceClient, dsID string) string {
14 return c.ServiceURL("datastores", dsID, "versions")
15}
16
17func versionURL(c *gophercloud.ServiceClient, dsID, versionID string) string {
18 return c.ServiceURL("datastores", dsID, "versions", versionID)
19}