github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/elb/v3/rules/urls.go (about) 1 package rules 2 3 import ( 4 golangsdk "github.com/opentelekomcloud/gophertelekomcloud" 5 ) 6 7 const ( 8 policyBasePath = "l7policies" 9 ruleBasePath = "rules" 10 ) 11 12 func baseURL(client *golangsdk.ServiceClient, policyID string) string { 13 return client.ServiceURL(policyBasePath, policyID, ruleBasePath) 14 } 15 16 func resourceURL(client *golangsdk.ServiceClient, policyID, id string) string { 17 return client.ServiceURL(policyBasePath, policyID, ruleBasePath, id) 18 }