Created
April 26, 2017 17:45
-
-
Save eugenetaranov/2b0dddea8639559f4def47f9673c2db3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/gophercloud/gophercloud" | |
"github.com/gophercloud/gophercloud/openstack" | |
//"github.com/rackspace/gophercloud" | |
//"github.com/rackspace/gophercloud/rackspace" | |
) | |
func main() { | |
opts := gophercloud.AuthOptions{ | |
IdentityEndpoint: "https://identity.api.rackspacecloud.com/v2.0/", | |
Username: "ZZZ", | |
Password: "XXX", | |
//APIKey: "XXX", // github.com/rackspace/gophercloud | |
} | |
//provider, err := rackspace.AuthenticatedClient(opts) | |
provider, err := openstack.AuthenticatedClient(opts) | |
if err != nil { | |
fmt.Println(err) | |
} else { | |
fmt.Println(provider) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment