github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/elb/v3/listeners/urls.go (about) 1 package listeners 2 3 import "github.com/chnsz/golangsdk" 4 5 const ( 6 rootPath = "elb" 7 resourcePath = "listeners" 8 forcePath = "force" 9 ) 10 11 func rootURL(c *golangsdk.ServiceClient) string { 12 return c.ServiceURL(rootPath, resourcePath) 13 } 14 15 func resourceURL(c *golangsdk.ServiceClient, id string) string { 16 return c.ServiceURL(rootPath, resourcePath, id) 17 } 18 19 func resourceForceDeleteURL(c *golangsdk.ServiceClient, id string) string { 20 return c.ServiceURL(rootPath, resourcePath, id, forcePath) 21 }