Joe Topjian | 99a0613 | 2015-02-22 05:06:25 +0000 | [diff] [blame] | 1 | package networks |
| 2 | |
Krzysztof Szukiełojć | 3f41d08 | 2017-05-07 14:43:06 +0200 | [diff] [blame^] | 3 | import "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
Joe Topjian | 99a0613 | 2015-02-22 05:06:25 +0000 | [diff] [blame] | 4 | |
| 5 | const resourcePath = "os-networks" |
| 6 | |
| 7 | func resourceURL(c *gophercloud.ServiceClient) string { |
| 8 | return c.ServiceURL(resourcePath) |
| 9 | } |
| 10 | |
| 11 | func listURL(c *gophercloud.ServiceClient) string { |
| 12 | return resourceURL(c) |
| 13 | } |
| 14 | |
| 15 | func getURL(c *gophercloud.ServiceClient, id string) string { |
| 16 | return c.ServiceURL(resourcePath, id) |
| 17 | } |