Jamie Hannaford | 01e1492 | 2014-09-11 15:23:49 +0200 | [diff] [blame] | 1 | package networks |
| 2 | |
| 3 | import ( |
Jamie Hannaford | f14d456 | 2014-09-11 17:46:18 +0200 | [diff] [blame^] | 4 | "strings" |
| 5 | |
Jamie Hannaford | 01e1492 | 2014-09-11 15:23:49 +0200 | [diff] [blame] | 6 | "github.com/rackspace/gophercloud" |
| 7 | ) |
| 8 | |
| 9 | func APIVersionsURL(c *gophercloud.ServiceClient) string { |
| 10 | return c.ServiceURL("") |
| 11 | } |
Jamie Hannaford | f14d456 | 2014-09-11 17:46:18 +0200 | [diff] [blame^] | 12 | |
| 13 | func APIInfoURL(c *gophercloud.ServiceClient, version string) string { |
| 14 | return c.ServiceURL(strings.TrimRight(version, "/") + "/") |
| 15 | } |