blob: ee0a28f2004c2cb2ec223d42cbe1a8963a507590 [file] [log] [blame]
Ash Wilson1f110512014-10-02 15:43:47 -04001package tokens
2
Jon Perritt27249f42016-02-18 10:35:59 -06003import "github.com/gophercloud/gophercloud"
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}