blob: c4d52480e937ba00909495615cbf0dd2e837b204 [file] [log] [blame]
Jamie Hannaford82523522015-02-17 16:53:29 +01001package datastores
2
3import "github.com/rackspace/gophercloud"
4
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}