Documentation ¶
Index ¶
- func Authenticate(endpoint, user, password, tenant, domain_name, domain_id string) (*gophercloud.ProviderClient, error)
- func ChooseVersion(recognized []types.ApiVersion) (string, error)
- func NewImageService(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- type Common
- type Commoner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate(endpoint, user, password, tenant, domain_name, domain_id string) (*gophercloud.ProviderClient, error)
Authenticate is used to authenticate user for given tenant. Request is send to provided Keystone endpoint Returns authenticated provider client, which is used as a base for service clients.
func ChooseVersion ¶
func ChooseVersion(recognized []types.ApiVersion) (string, error)
ChooseVersion returns chosen Cinder API version based on defined priority
func NewImageService ¶
func NewImageService(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
NewImageService creates a ServiceClient that may be used with the v2 object storage package.
Types ¶
type Common ¶
type Common struct{}
Common is a receiver for Commoner interface
func (Common) GetApiVersions ¶
func (c Common) GetApiVersions(provider *gophercloud.ProviderClient) ([]types.ApiVersion, error)
GetApiVersions is used to retrieve list of available Cinder API versions List of api version is then used to dispatch calls to proper API version based on defined priority
type Commoner ¶
type Commoner interface { GetTenants(endpoint, user, password string) ([]types.Tenant, error) GetApiVersions(provider *gophercloud.ProviderClient) ([]types.ApiVersion, error) }
Commoner provides abstraction for shared functions mainly for mocking
Click to show internal directories.
Click to hide internal directories.