github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/identity/v3/federation/mappings/urls.go (about)

     1  package mappings
     2  
     3  import (
     4  	golangsdk "github.com/opentelekomcloud/gophertelekomcloud"
     5  	"github.com/opentelekomcloud/gophertelekomcloud/openstack/identity/v3/federation"
     6  )
     7  
     8  const rootPath = "mappings"
     9  
    10  func listURL(client *golangsdk.ServiceClient) string {
    11  	return client.ServiceURL(federation.BaseURL, rootPath)
    12  }
    13  
    14  func mappingURL(client *golangsdk.ServiceClient, mappingID string) string {
    15  	return client.ServiceURL(federation.BaseURL, rootPath, mappingID)
    16  }