Ash Wilson | 70dfe0c | 2014-08-28 13:57:09 -0400 | [diff] [blame] | 1 | package gophercloud |
| 2 | |
Ash Wilson | e058e34 | 2014-08-29 10:31:41 -0400 | [diff] [blame] | 3 | import "time" |
| 4 | |
Ash Wilson | 64ba49f | 2014-10-31 15:31:46 -0400 | [diff] [blame] | 5 | // AuthResults [deprecated] is a leftover type from the v0.x days. It was |
| 6 | // intended to describe common functionality among identity service results, but |
| 7 | // is not actually used anywhere. |
Ash Wilson | 70dfe0c | 2014-08-28 13:57:09 -0400 | [diff] [blame] | 8 | type AuthResults interface { |
Jamie Hannaford | b280dea | 2014-10-24 15:14:06 +0200 | [diff] [blame] | 9 | // TokenID returns the token's ID value from the authentication response. |
Ash Wilson | b6943e0 | 2014-08-28 14:21:41 -0400 | [diff] [blame] | 10 | TokenID() (string, error) |
Ash Wilson | e058e34 | 2014-08-29 10:31:41 -0400 | [diff] [blame] | 11 | |
| 12 | // ExpiresAt retrieves the token's expiration time. |
| 13 | ExpiresAt() (time.Time, error) |
Ash Wilson | 70dfe0c | 2014-08-28 13:57:09 -0400 | [diff] [blame] | 14 | } |