config

package
v2.0.0-...-2d05721 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT 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 map[string]struct {
	vault.Configuration
}

Credentials is a mapping of credentialName to dsv-sdk-go/vault/Configuration objects

func GetCredentials

func GetCredentials(credentialsFilePath string) (*Credentials, error)

GetCredentials opens the credentialsFile and calls GetCredentialsFromFile on the resulting file

func GetCredentialsFromFile

func GetCredentialsFromFile(credentialsFile *os.File) (*Credentials, error)

GetCredentialsFromFile parses the credentialsFile and returns the resulting Credentials object

func MakeCredentials

func MakeCredentials(credentialJSON []byte) (*Credentials, error)

func (Credentials) Names

func (credentials Credentials) Names() []string

Names returns the list of credential names

Jump to

Keyboard shortcuts

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