Jamie Hannaford | 548d340 | 2014-09-18 15:50:08 +0200 | [diff] [blame^] | 1 | package ports |
| 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
| 5 | const Version = "v2.0" |
| 6 | |
| 7 | func ResourceURL(c *gophercloud.ServiceClient, id string) string { |
| 8 | return c.ServiceURL(Version, "ports", id) |
| 9 | } |
| 10 | |
| 11 | func RootURL(c *gophercloud.ServiceClient) string { |
| 12 | return c.ServiceURL(Version, "ports") |
| 13 | } |
| 14 | |
| 15 | func ListURL(c *gophercloud.ServiceClient) string { |
| 16 | return RootURL(c) |
| 17 | } |
| 18 | |
| 19 | func GetURL(c *gophercloud.ServiceClient, id string) string { |
| 20 | return ResourceURL(c, id) |
| 21 | } |
| 22 | |
| 23 | func CreateURL(c *gophercloud.ServiceClient) string { |
| 24 | return RootURL(c) |
| 25 | } |
| 26 | |
| 27 | func UpdateURL(c *gophercloud.ServiceClient, id string) string { |
| 28 | return ResourceURL(c, id) |
| 29 | } |
| 30 | |
| 31 | func DeleteURL(c *gophercloud.ServiceClient, id string) string { |
| 32 | return ResourceURL(c, id) |
| 33 | } |