Documentation ¶
Index ¶
- func CacheKey(ao gophercloud.AuthOptions, region, serviceClientType string, ...) string
- func Err(have map[string]commandoptions.Cred, want map[string]string, errMsg []string) error
- func NewClient(c *cli.Context, serviceType string, logger *logrus.Logger, noCache bool, ...) (*gophercloud.ServiceClient, error)
- type Cache
- type CacheItem
- type CredentialsResult
- type LogRoundTripper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheKey ¶
func CacheKey(ao gophercloud.AuthOptions, region, serviceClientType string, urlType gophercloud.Availability) string
CacheKey returns the cache key formed from the user's authentication credentials.
Types ¶
type Cache ¶
Cache represents a place to store user authentication credentials.
type CredentialsResult ¶
type CredentialsResult struct { AuthOpts *gophercloud.AuthOptions Region string Have map[string]commandoptions.Cred Want map[string]string }
CredentialsResult holds the information acquired from looking for authentication credentials.
func Credentials ¶
Credentials determines the appropriate authentication method for the user. It returns a gophercloud.AuthOptions object and a region.
It will use command-line authentication parameters if available, then it will look for any unset parameters in the config file, and then finally in environment variables.
type LogRoundTripper ¶
LogRoundTripper satisfies the http.RoundTripper interface and is used to customize the default Gophercloud RoundTripper to allow for logging.