Jamie Hannaford | 8252352 | 2015-02-17 16:53:29 +0100 | [diff] [blame] | 1 | package datastores |
| 2 | |
Jon Perritt | 27249f4 | 2016-02-18 10:35:59 -0600 | [diff] [blame] | 3 | import "github.com/gophercloud/gophercloud" |
Jamie Hannaford | 8252352 | 2015-02-17 16:53:29 +0100 | [diff] [blame] | 4 | |
| 5 | func baseURL(c *gophercloud.ServiceClient) string { |
| 6 | return c.ServiceURL("datastores") |
| 7 | } |
| 8 | |
| 9 | func resourceURL(c *gophercloud.ServiceClient, dsID string) string { |
| 10 | return c.ServiceURL("datastores", dsID) |
| 11 | } |
| 12 | |
| 13 | func versionsURL(c *gophercloud.ServiceClient, dsID string) string { |
| 14 | return c.ServiceURL("datastores", dsID, "versions") |
| 15 | } |
| 16 | |
| 17 | func versionURL(c *gophercloud.ServiceClient, dsID, versionID string) string { |
| 18 | return c.ServiceURL("datastores", dsID, "versions", versionID) |
| 19 | } |