github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/blockstorage/noauth/doc.go (about)

     1  /*
     2  Package noauth creates a "noauth" *golangsdk.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(golangsdk.AuthOptions{
     8  		Username:   os.Getenv("OS_USERNAME"),
     9  		TenantName: os.Getenv("OS_TENANT_NAME"),
    10  	})
    11  	client, err := noauth.NewBlockStorageNoAuth(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