Samuel A. Falvo II | 1d3fa66 | 2013-06-25 15:29:32 -0700 | [diff] [blame] | 1 | package main |
| 2 | |
| 3 | import ( |
Samuel A. Falvo II | 1d3fa66 | 2013-06-25 15:29:32 -0700 | [diff] [blame] | 4 | "github.com/rackspace/gophercloud" |
| 5 | ) |
| 6 | |
| 7 | func main() { |
Samuel A. Falvo II | 704a750 | 2013-07-10 15:23:43 -0700 | [diff] [blame] | 8 | provider, username, password := getCredentials() |
Samuel A. Falvo II | 1d3fa66 | 2013-06-25 15:29:32 -0700 | [diff] [blame] | 9 | |
| 10 | _, err := gophercloud.Authenticate( |
| 11 | provider, |
| 12 | gophercloud.AuthOptions{ |
| 13 | Username: username, |
| 14 | Password: password, |
| 15 | }, |
| 16 | ) |
| 17 | if err != nil { |
| 18 | panic(err) |
| 19 | } |
| 20 | } |