vault

package
v0.3.49 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAuthMethod added in v0.3.45

func BuildAuthMethod(config *config.Method, logger hclog.Logger) (auth.AuthMethod, error)

BuildAuthMethod creates a new authentication method from config.

func BuildSinks added in v0.3.45

func BuildSinks(sc []*config.Sink, logger hclog.Logger, client *api.Client) ([]*sink.SinkConfig, error)

BuildSinks creates a set of sinks from the sink configurations.

func NewClient added in v0.3.45

func NewClient(
	methodConfig *config.Method,
	vaultConfig *config.Vault,
) (*api.Client, error)

NewClient creates a new Vault client. Note that Vault environment variables take precedence over the vaultConfig.

Types

type Credentials

type Credentials struct {
	Username string
	Password string
}

Credentials represent Docker credentials.

func GetCredentials

func GetCredentials(path string, client *api.Client) (Credentials, error)

GetCredentials uses the Vault client to read the secret at path.

Jump to

Keyboard shortcuts

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