blob: 07e0fc7b8cb18ef1a5282880064fcdefaa1c9a56 [file] [log] [blame]
Jamie Hannaford2aaf1a62014-10-16 12:55:50 +02001package gophercloud
2
3import "time"
4
5// AuthResults encapsulates the raw results from an authentication request. As OpenStack allows
6// extensions to influence the structure returned in ways that Gophercloud cannot predict at
7// compile-time, you should use type-safe accessors to work with the data represented by this type,
8// such as ServiceCatalog() and TokenID().
9type AuthResults interface {
10
11 // Retrieve the authentication token's value from the authentication response.
12 TokenID() (string, error)
13
14 // ExpiresAt retrieves the token's expiration time.
15 ExpiresAt() (time.Time, error)
16}