doc.go 559 B

123456789101112131415161718
  1. /*
  2. Package noauth creates a "noauth" *gophercloud.ServiceClient for use in Cinder
  3. environments configured with the noauth authentication middleware.
  4. Example of Creating a noauth Service Client
  5. provider, err := noauth.NewClient(gophercloud.AuthOptions{
  6. Username: os.Getenv("OS_USERNAME"),
  7. TenantName: os.Getenv("OS_TENANT_NAME"),
  8. })
  9. client, err := noauth.NewBlockStorageNoAuth(provider, noauth.EndpointOpts{
  10. CinderEndpoint: os.Getenv("CINDER_ENDPOINT"),
  11. })
  12. An example of a CinderEndpoint would be: http://example.com:8776/v2,
  13. */
  14. package noauth