blob: 9fb734d6772e62736e1d964d52fea86ffdaa0e6d [file] [log] [blame]
Ash Wilson1f110512014-10-02 15:43:47 -04001package tokens
2
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02003import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
Ash Wilson1f110512014-10-02 15:43:47 -04004
Ash Wilsond2d49c42014-10-07 14:16:36 -04005// CreateURL generates the URL used to create new Tokens.
6func CreateURL(client *gophercloud.ServiceClient) string {
Ash Wilson1f110512014-10-02 15:43:47 -04007 return client.ServiceURL("tokens")
8}
hzlouchaof6e29262015-10-27 12:51:08 +08009
hzlouchaob7640892015-11-04 21:37:20 +080010// GetURL generates the URL used to Validate Tokens.
11func GetURL(client *gophercloud.ServiceClient, token string) string {
12 return client.ServiceURL("tokens", token)
13}