config

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProviderClient

func NewProviderClient(ctx context.Context, authOptions gophercloud.AuthOptions, opts ...func(*options)) (*gophercloud.ProviderClient, error)

NewProviderClient logs in to an OpenStack cloud found at the identity endpoint specified by the options, acquires a token, and returns a Provider Client instance that's ready to operate.

If the full path to a versioned identity endpoint was specified (example: http://example.com:5000/v3), that path will be used as the endpoint to query.

If a versionless endpoint was specified (example: http://example.com:5000/), the endpoint will be queried to determine which versions of the identity service are available, then chooses the most recent or most supported version.

func WithHTTPClient

func WithHTTPClient(httpClient http.Client) func(*options)

WithHTTPClient enables passing a custom http.Client to be used in the ProviderClient for authentication and for any further call, for example when using a ServiceClient derived from this ProviderClient.

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) func(*options)

WithTLSConfig replaces the Transport of the default HTTP client (or of the HTTP client passed with WithHTTPClient) with a RoundTripper containing the given TLS config.

Types

This section is empty.

Directories

Path Synopsis
package clouds provides a parser for OpenStack credentials stored in a clouds.yaml file.
package clouds provides a parser for OpenStack credentials stored in a clouds.yaml file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL