blob: 856a23382e90ba839499c54156ee857342d1dc1f [file] [log] [blame]
Ash Wilson70dfe0c2014-08-28 13:57:09 -04001package gophercloud
2
Ash Wilsone058e342014-08-29 10:31:41 -04003import "time"
4
Ash Wilson64ba49f2014-10-31 15:31:46 -04005// 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 Wilson70dfe0c2014-08-28 13:57:09 -04008type AuthResults interface {
Jamie Hannafordb280dea2014-10-24 15:14:06 +02009 // TokenID returns the token's ID value from the authentication response.
Ash Wilsonb6943e02014-08-28 14:21:41 -040010 TokenID() (string, error)
Ash Wilsone058e342014-08-29 10:31:41 -040011
12 // ExpiresAt retrieves the token's expiration time.
13 ExpiresAt() (time.Time, error)
Ash Wilson70dfe0c2014-08-28 13:57:09 -040014}