github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/dcs/v1/products/urls.go (about)

     1  package products
     2  
     3  import (
     4  	"strings"
     5  
     6  	"github.com/huaweicloud/golangsdk"
     7  )
     8  
     9  // endpoint/products
    10  const resourcePath = "products"
    11  
    12  // getURL will build the get url of get function
    13  func getURL(client *golangsdk.ServiceClient) string {
    14  	// remove projectid from endpoint
    15  	return strings.Replace(client.ServiceURL(resourcePath), "/"+client.ProjectID, "", -1)
    16  }