github.com/gophercloud/gophercloud@v1.11.0/openstack/identity/v2/tokens/urls.go (about) 1 package tokens 2 3 import "github.com/gophercloud/gophercloud" 4 5 // CreateURL generates the URL used to create new Tokens. 6 func CreateURL(client *gophercloud.ServiceClient) string { 7 return client.ServiceURL("tokens") 8 } 9 10 // GetURL generates the URL used to Validate Tokens. 11 func GetURL(client *gophercloud.ServiceClient, token string) string { 12 return client.ServiceURL("tokens", token) 13 }