{"modulePath":"github.com/sample/gophercloud","version":"v0.0.0-20160826205153-07328757774b","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package openstack\n\n## Functions\n\n```go\nfunc AuthOptionsFromEnv() (gophercloud.AuthOptions, error)\n```\nAuthOptionsFromEnv fills out an identity.AuthOptions structure with the settings found on the various OpenStack OS\\_\\* environment variables.  The following variables provide sources of truth: OS\\_AUTH\\_URL, OS\\_USERNAME, OS\\_PASSWORD, OS\\_TENANT\\_ID, and OS\\_TENANT\\_NAME.  Of these, OS\\_USERNAME, OS\\_PASSWORD, and OS\\_AUTH\\_URL must have settings, or an error will result.  OS\\_TENANT\\_ID and OS\\_TENANT\\_NAME are optional.\n\n```go\nfunc Authenticate(client *gophercloud.ProviderClient, options gophercloud.AuthOptions) error\n```\nAuthenticate or re-authenticate against the most recent identity service supported at the provided endpoint.\n\n```go\nfunc AuthenticateV2(client *gophercloud.ProviderClient, options gophercloud.AuthOptions, eo gophercloud.EndpointOpts) error\n```\nAuthenticateV2 explicitly authenticates against the identity v2 endpoint.\n\n```go\nfunc AuthenticateV3(client *gophercloud.ProviderClient, options tokens3.AuthOptionsBuilder, eo gophercloud.EndpointOpts) error\n```\nAuthenticateV3 explicitly authenticates against the identity v3 service.\n\n```go\nfunc AuthenticatedClient(options gophercloud.AuthOptions) (*gophercloud.ProviderClient, error)\n```\nAuthenticatedClient logs in to an OpenStack cloud found at the identity endpoint specified by options, acquires a token, and returns a Client instance that's ready to operate. It first queries the root identity endpoint to determine which versions of the identity service are supported, then chooses the most recent identity service available to proceed.\n\n```go\nfunc NewBlockStorageV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewBlockStorageV1 creates a ServiceClient that may be used to access the v1 block storage service.\n\n```go\nfunc NewBlockStorageV2(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewBlockStorageV2 creates a ServiceClient that may be used to access the v2 block storage service.\n\n```go\nfunc NewCDNV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewCDNV1 creates a ServiceClient that may be used to access the OpenStack v1 CDN service.\n\n```go\nfunc NewClient(endpoint string) (*gophercloud.ProviderClient, error)\n```\nNewClient prepares an unauthenticated ProviderClient instance. Most users will probably prefer using the AuthenticatedClient function instead. This is useful if you wish to explicitly control the version of the identity service that's used for authentication explicitly, for example.\n\n```go\nfunc NewComputeV2(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewComputeV2 creates a ServiceClient that may be used with the v2 compute package.\n\n```go\nfunc NewDBV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewDBV1 creates a ServiceClient that may be used to access the v1 DB service.\n\n```go\nfunc NewIdentityV2(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewIdentityV2 creates a ServiceClient that may be used to interact with the v2 identity service.\n\n```go\nfunc NewIdentityV3(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewIdentityV3 creates a ServiceClient that may be used to access the v3 identity service.\n\n```go\nfunc NewNetworkV2(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewNetworkV2 creates a ServiceClient that may be used with the v2 network package.\n\n```go\nfunc NewObjectStorageV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewObjectStorageV1 creates a ServiceClient that may be used with the v1 object storage package.\n\n```go\nfunc NewOrchestrationV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)\n```\nNewOrchestrationV1 creates a ServiceClient that may be used to access the v1 orchestration service.\n\n```go\nfunc V2EndpointURL(catalog *tokens2.ServiceCatalog, opts gophercloud.EndpointOpts) (string, error)\n```\nV2EndpointURL discovers the endpoint URL for a specific service from a ServiceCatalog acquired during the v2 identity service. The specified EndpointOpts are used to identify a unique, unambiguous endpoint to return. It's an error both when multiple endpoints match the provided criteria and when none do. The minimum that can be specified is a Type, but you will also often need to specify a Name and/or a Region depending on what's available on your OpenStack deployment.\n\n```go\nfunc V3EndpointURL(catalog *tokens3.ServiceCatalog, opts gophercloud.EndpointOpts) (string, error)\n```\nV3EndpointURL discovers the endpoint URL for a specific service from a Catalog acquired during the v3 identity service. The specified EndpointOpts are used to identify a unique, unambiguous endpoint to return. It's an error both when multiple endpoints match the provided criteria and when none do. The minimum that can be specified is a Type, but you will also often need to specify a Name and/or a Region depending on what's available on your OpenStack deployment.\n\n## Types\n\n```go\ntype ErrEndpointNotFound struct{ gophercloud.BaseError }\n```\nErrEndpointNotFound is the error when no suitable endpoint can be found in the user's catalog\n\n```go\nfunc (e ErrEndpointNotFound) Error() string\n```\n\n```go\ntype ErrInvalidAvailabilityProvided struct{ gophercloud.ErrInvalidInput }\n```\nErrInvalidAvailabilityProvided is the error when an invalid endpoint availability is provided\n\n```go\nfunc (e ErrInvalidAvailabilityProvided) Error() string\n```\n\n```go\ntype ErrMultipleMatchingEndpointsV2 struct {\n\tgophercloud.BaseError\n\tEndpoints []tokens2.Endpoint\n}\n```\nErrMultipleMatchingEndpointsV2 is the error when more than one endpoint for the given options is found in the v2 catalog\n\n```go\nfunc (e ErrMultipleMatchingEndpointsV2) Error() string\n```\n\n```go\ntype ErrMultipleMatchingEndpointsV3 struct {\n\tgophercloud.BaseError\n\tEndpoints []tokens3.Endpoint\n}\n```\nErrMultipleMatchingEndpointsV3 is the error when more than one endpoint for the given options is found in the v3 catalog\n\n```go\nfunc (e ErrMultipleMatchingEndpointsV3) Error() string\n```\n\n```go\ntype ErrNoAuthURL struct{ gophercloud.ErrInvalidInput }\n```\nErrNoAuthURL is the error when the OS\\_AUTH\\_URL environment variable is not found\n\n```go\nfunc (e ErrNoAuthURL) Error() string\n```\n\n```go\ntype ErrNoPassword struct{ gophercloud.ErrInvalidInput }\n```\nErrNoPassword is the error when the OS\\_PASSWORD environment variable is not found\n\n```go\nfunc (e ErrNoPassword) Error() string\n```\n\n```go\ntype ErrNoUsername struct{ gophercloud.ErrInvalidInput }\n```\nErrNoUsername is the error when the OS\\_USERNAME environment variable is not found\n\n```go\nfunc (e ErrNoUsername) Error() string\n```\n\n","path":"github.com/sample/gophercloud/openstack","name":"openstack","synopsis":"","isRedistributable":true}
