github.com/gophercloud/gophercloud@v1.11.0/openstack/identity/v3/extensions/federation/urls.go (about) 1 package federation 2 3 import "github.com/gophercloud/gophercloud" 4 5 const ( 6 rootPath = "OS-FEDERATION" 7 mappingsPath = "mappings" 8 ) 9 10 func mappingsRootURL(c *gophercloud.ServiceClient) string { 11 return c.ServiceURL(rootPath, mappingsPath) 12 } 13 14 func mappingsResourceURL(c *gophercloud.ServiceClient, mappingID string) string { 15 return c.ServiceURL(rootPath, mappingsPath, mappingID) 16 }