noauth

package
v1.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.NewBlockStorageNoAuth(provider, noauth.EndpointOpts{
	CinderEndpoint: os.Getenv("CINDER_ENDPOINT"),
})

An example of a CinderEndpoint would be: http://example.com:8776/v2,

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlockStorageNoAuth

func NewBlockStorageNoAuth(client *gophercloud.ProviderClient, eo EndpointOpts) (*gophercloud.ServiceClient, error)

NewBlockStorageNoAuth creates a ServiceClient that may be used to access a "noauth" block storage service (V2 or V3 Cinder API).

func NewClient

func NewClient(options token.TokenOptions) (*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.

Directories

Path Synopsis
noauth unit tests
noauth unit tests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL