github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/elbaas/backendmember/urls.go (about) 1 package backendmember 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const ( 6 rootPath = "elbaas" 7 resourcePath = "listeners" 8 ) 9 10 func addURL(c *golangsdk.ServiceClient, listener_id string) string { 11 return c.ServiceURL(rootPath, resourcePath, listener_id, "members") 12 } 13 14 func removeURL(c *golangsdk.ServiceClient, listener_id string) string { 15 return c.ServiceURL(rootPath, resourcePath, listener_id, "members", "action") 16 } 17 18 func resourceURL(c *golangsdk.ServiceClient, listener_id string, id string) string { 19 return c.ServiceURL(rootPath, resourcePath, listener_id, "members?id="+id) 20 }