github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/lts/v2/loggroups/urls.go (about) 1 package loggroups 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const rootPath = "log-groups" 6 7 // createURL will build the url of creation 8 func createURL(client *golangsdk.ServiceClient) string { 9 return client.ServiceURL(rootPath) 10 } 11 12 // deleteURL will build the url of deletion 13 func deleteURL(client *golangsdk.ServiceClient, id string) string { 14 return client.ServiceURL(rootPath, id) 15 } 16 17 // getURL will build the get url of get function 18 func getURL(client *golangsdk.ServiceClient, id string) string { 19 return client.ServiceURL(rootPath, id) 20 }