| import "github.com/rackspace/gophercloud" |
| func resourceURL(c *gophercloud.ServiceClient, id string) string { |
| return c.ServiceURL(version, "ports", id) |
| func rootURL(c *gophercloud.ServiceClient) string { |
| return c.ServiceURL(version, "ports") |
| func listURL(c *gophercloud.ServiceClient) string { |
| func getURL(c *gophercloud.ServiceClient, id string) string { |
| return resourceURL(c, id) |
| func createURL(c *gophercloud.ServiceClient) string { |
| func updateURL(c *gophercloud.ServiceClient, id string) string { |
| return resourceURL(c, id) |
| func deleteURL(c *gophercloud.ServiceClient, id string) string { |
| return resourceURL(c, id) |