Ash Wilson | 8ba8224 | 2014-08-28 15:38:55 -0400 | [diff] [blame] | 1 | package openstack |
| 2 | |
| 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | identity3 "github.com/rackspace/gophercloud/openstack/identity/v3" |
| 6 | ) |
| 7 | |
| 8 | // Client provides access to service clients for this OpenStack cloud. |
Ash Wilson | 6425a41 | 2014-08-29 12:30:35 -0400 | [diff] [blame^] | 9 | type Client gophercloud.ProviderClient |
Ash Wilson | 8ba8224 | 2014-08-28 15:38:55 -0400 | [diff] [blame] | 10 | |
| 11 | // NewClient authenticates to an OpenStack cloud with the provided credentials. |
| 12 | // It first queries the root identity endpoint to determine which versions of the identity service are supported, then chooses |
| 13 | // the most recent identity service available to proceed. |
| 14 | func NewClient(authOptions gophercloud.AuthOptions) (*Client, error) { |
| 15 | return nil, nil |
| 16 | } |
| 17 | |
| 18 | // IdentityV3 explicitly accesses the v3 identity service. |
| 19 | func (client *Client) IdentityV3() (*identity3.Client, error) { |
| 20 | return nil, nil |
| 21 | } |