github.com/gophercloud/gophercloud@v1.11.0/openstack/blockstorage/noauth/doc.go (about)

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