github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/lbaas_v2/loadbalancers/urls.go (about) 1 package loadbalancers 2 3 import "github.com/gophercloud/gophercloud" 4 5 const ( 6 rootPath = "lbaas" 7 resourcePath = "loadbalancers" 8 statusPath = "statuses" 9 statisticsPath = "stats" 10 ) 11 12 func rootURL(c *gophercloud.ServiceClient) string { 13 return c.ServiceURL(rootPath, resourcePath) 14 } 15 16 func resourceURL(c *gophercloud.ServiceClient, id string) string { 17 return c.ServiceURL(rootPath, resourcePath, id) 18 } 19 20 func statusRootURL(c *gophercloud.ServiceClient, id string) string { 21 return c.ServiceURL(rootPath, resourcePath, id, statusPath) 22 } 23 24 func statisticsRootURL(c *gophercloud.ServiceClient, id string) string { 25 return c.ServiceURL(rootPath, resourcePath, id, statisticsPath) 26 }