keystone

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	// IdentityEndpoint is an API endpoint to authorization. It is OS_AUTH_URL variable from rc.sh.
	IdentityEndpoint string
	// AccountID is Selectel account ID of the user. It is OS_PROJECT_DOMAIN_NAME variable from rc.sh.
	AccountID string
	// ProjectID is Selectel project ID of the user. It is OS_PROJECT_ID variable from rc.sh.
	ProjectID string
	// Username is service user's name. It is OS_USERNAME variable from rc.sh.
	Username string
	// Password is service user's password. It is OS_PASSWORD variable from rc.sh.
	Password string
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(logger *zap.Logger, credentials Credentials) *Provider

func (Provider) GetToken

func (p Provider) GetToken() (string, error)

GetToken returns keystone token that may be used to authorize requests to Selectel API in the project scope. It generates new token for each call.

Jump to

Keyboard shortcuts

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