Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCacheKeyNotFound = errors.New("cache key not found")

	AuthenticatedClientFunc func(ctx context.Context, options gophercloud.AuthOptions) (*gophercloud.ProviderClient, error) = openstack.AuthenticatedClient
)

Functions

func CacheFile

func CacheFile() string

func Do

func Do(ctx context.Context, authOptions gophercloud.AuthOptions, noRegionPrefix bool) (*v1.ExecCredential, error)

func FileExists

func FileExists(path string) bool

FileExists returns true if the given path exists in the file system

Types

type CacheStorageType

type CacheStorageType string
const (
	// StorageDisk stores cached ExecCredential on file.
	FileStorage CacheStorageType = "file"
	// KeyringStorage stores cached ExecCredential in the OS keyring.
	KeyringStorage CacheStorageType = "keyring"
)

type ExecCredentialReadWriter

type ExecCredentialReadWriter interface {
	Read(key string) (*v1.ExecCredential, error)
	Write(key string, ec *v1.ExecCredential) error
}

func NewExecCredentialReadWriter

func NewExecCredentialReadWriter(cst CacheStorageType) (ExecCredentialReadWriter, error)

type ExpiredCachedExecCredentialError

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

func (*ExpiredCachedExecCredentialError) Error

type FileStorageExecCredentialCache

type FileStorageExecCredentialCache struct {
}

func (*FileStorageExecCredentialCache) Read

func (*FileStorageExecCredentialCache) Write

type KeyringStorageExecCredentialCache

type KeyringStorageExecCredentialCache struct {
}

Jump to

Keyboard shortcuts

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