github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/layer3/portforwarding/urls.go (about) 1 package portforwarding 2 3 import "github.com/gophercloud/gophercloud" 4 5 const resourcePath = "floatingips" 6 const portForwardingPath = "port_forwardings" 7 8 func portForwardingUrl(c *gophercloud.ServiceClient, id string) string { 9 return c.ServiceURL(resourcePath, id, portForwardingPath) 10 } 11 12 func singlePortForwardingUrl(c *gophercloud.ServiceClient, id string, portForwardingID string) string { 13 return c.ServiceURL(resourcePath, id, portForwardingPath, portForwardingID) 14 }