keystonecredentials

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const ProviderName = `KeystoneProvider`

ProviderName is the name of the credentials provider.

Variables

This section is empty.

Functions

func NewCredentialsClient

func NewCredentialsClient(accessKeyID string, options ...func(*KeystoneProvider)) *credentials.Credentials

NewCredentialsClient returns a Credentials wrapper for retrieving credentials

func NewProviderClient

func NewProviderClient(accessKeyID string, options ...func(*KeystoneProvider)) credentials.Provider

NewProviderClient returns a credentials Provider for retrieving credentials

Types

type Blob

type Blob struct {
	Access string `json:"access"`
	Secret string `json:"secret"`
}

type GetCredentialOutput added in v0.6.3

type GetCredentialOutput struct {
	AccessKeyID     string
	SecretAccessKey string
	TenantID        string
	UserID          string
}

type KeystoneProvider

type KeystoneProvider struct {
	// Requires a gopher cloud Client to make HTTP requests to the Keystone with.
	Identity *gophercloud.ServiceClient

	// Requires an AccessKeyID to filter the credentials request.
	AccessKeyID string
}

KeystoneProvider is a client to retrieve credentials from Keystone.

func (*KeystoneProvider) Retrieve

func (p *KeystoneProvider) Retrieve() (credentials.Value, error)

Retrieve will attempt to request the credentials from the Keystone And error will be returned if the retrieval fails.

Jump to

Keyboard shortcuts

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