github.com/gophercloud/gophercloud@v1.11.0/openstack/loadbalancer/v2/flavors/urls.go (about) 1 package flavors 2 3 import "github.com/gophercloud/gophercloud" 4 5 const ( 6 rootPath = "lbaas" 7 resourcePath = "flavors" 8 ) 9 10 func rootURL(c *gophercloud.ServiceClient) string { 11 return c.ServiceURL(rootPath, resourcePath) 12 } 13 14 func resourceURL(c *gophercloud.ServiceClient, id string) string { 15 return c.ServiceURL(rootPath, resourcePath, id) 16 }