Ash Wilson | 1f11051 | 2014-10-02 15:43:47 -0400 | [diff] [blame] | 1 | package tokens |
| 2 | |
Jon Perritt | 27249f4 | 2016-02-18 10:35:59 -0600 | [diff] [blame] | 3 | import "github.com/gophercloud/gophercloud" |
Ash Wilson | 1f11051 | 2014-10-02 15:43:47 -0400 | [diff] [blame] | 4 | |
Ash Wilson | d2d49c4 | 2014-10-07 14:16:36 -0400 | [diff] [blame] | 5 | // CreateURL generates the URL used to create new Tokens. |
| 6 | func CreateURL(client *gophercloud.ServiceClient) string { |
Ash Wilson | 1f11051 | 2014-10-02 15:43:47 -0400 | [diff] [blame] | 7 | return client.ServiceURL("tokens") |
| 8 | } |
hzlouchao | f6e2926 | 2015-10-27 12:51:08 +0800 | [diff] [blame] | 9 | |
hzlouchao | b764089 | 2015-11-04 21:37:20 +0800 | [diff] [blame] | 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 | } |