Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package noauth creates a "noauth" *gophercloud.ServiceClient for use in Cinder environments configured with the noauth authentication middleware.
Example of Creating a noauth Service Client
provider, err := noauth.NewClient(gophercloud.AuthOptions{
	Username:   os.Getenv("OS_USERNAME"),
	TenantName: os.Getenv("OS_TENANT_NAME"),
})
client, err := noauth.NewBlockStorageNoAuthV2(provider, noauth.EndpointOpts{
	CinderEndpoint: os.Getenv("CINDER_ENDPOINT"),
})
An example of a CinderEndpoint would be: http://example.com:8776/v2,
Index ¶
- func NewBlockStorageNoAuthV2(client *gophercloud.ProviderClient, eo EndpointOpts) (*gophercloud.ServiceClient, error)
 - func NewBlockStorageNoAuthV3(client *gophercloud.ProviderClient, eo EndpointOpts) (*gophercloud.ServiceClient, error)
 - func NewClient(options gophercloud.AuthOptions) (*gophercloud.ProviderClient, error)
 - type EndpointOpts
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlockStorageNoAuthV2 ¶ added in v0.25.0
func NewBlockStorageNoAuthV2(client *gophercloud.ProviderClient, eo EndpointOpts) (*gophercloud.ServiceClient, error)
NewBlockStorageNoAuthV2 creates a ServiceClient that may be used to access "noauth" v2 block storage service.
func NewBlockStorageNoAuthV3 ¶ added in v0.25.0
func NewBlockStorageNoAuthV3(client *gophercloud.ProviderClient, eo EndpointOpts) (*gophercloud.ServiceClient, error)
NewBlockStorageNoAuthV3 creates a ServiceClient that may be used to access "noauth" v3 block storage service.
func NewClient ¶
func NewClient(options gophercloud.AuthOptions) (*gophercloud.ProviderClient, error)
NewClient prepares an unauthenticated ProviderClient instance.
Types ¶
type EndpointOpts ¶
type EndpointOpts struct {
	// CinderEndpoint [required] is currently only used with "noauth" Cinder.
	// A cinder endpoint with "auth_strategy=noauth" is necessary, for example:
	// http://example.com:8776/v2.
	CinderEndpoint string
}
    EndpointOpts specifies a "noauth" Cinder Endpoint.
 Click to show internal directories. 
   Click to hide internal directories.