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