github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/identity/v3.0/credentials/urls.go (about)

     1  package credentials
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const (
     6  	rootPath        = "OS-CREDENTIAL"
     7  	credentialsPath = "credentials"
     8  )
     9  
    10  func rootURL(client *golangsdk.ServiceClient) string {
    11  	return client.ServiceURL(rootPath, credentialsPath)
    12  }
    13  
    14  func resourceURL(client *golangsdk.ServiceClient, credID string) string {
    15  	return client.ServiceURL(rootPath, credentialsPath, credID)
    16  }