blob: 06d1b3daec98472c83696d1a4e4e32dfa129518b [file] [log] [blame]
Jamie Hannaford82523522015-02-17 16:53:29 +01001package datastores
2
Jon Perritt27249f42016-02-18 10:35:59 -06003import "github.com/gophercloud/gophercloud"
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}