| "github.com/gophercloud/gophercloud" |
| // GetAuthResult temporarily contains the response from a Swauth |
| type GetAuthResult struct { |
| // AuthResult contains the authentication information from a Swauth |
| // authentication request. |
| Token string `json:"X-Auth-Token"` |
| StorageURL string `json:"X-Storage-Url"` |
| CDNURL string `json:"X-CDN-Management-Url"` |
| // Extract is a method that attempts to interpret any Swauth authentication |
| // response as a AuthResult struct. |
| func (r GetAuthResult) Extract() (*AuthResult, error) { |