Samuel A. Falvo II | 8280cb7 | 2014-01-06 15:06:53 -0800 | [diff] [blame^] | 1 | package main |
2 | |||||
3 | import ( | ||||
4 | "github.com/rackspace/gophercloud" | ||||
5 | "github.com/rackspace/gophercloud/osutil" | ||||
6 | ) | ||||
7 | |||||
8 | func main() { | ||||
9 | provider, authOptions, err := osutil.AuthOptions() | ||||
10 | if err != nil { | ||||
11 | panic(err) | ||||
12 | } | ||||
13 | _, err = gophercloud.Authenticate(provider, authOptions) | ||||
14 | if err != nil { | ||||
15 | panic(err) | ||||
16 | } | ||||
17 | } |