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