vault

package
v0.0.0-...-bff9524 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vault

type Vault struct {
	Client *vault.Client
	// contains filtered or unexported fields
}

func NewVaultAppRoleClient

func NewVaultAppRoleClient(ctx context.Context, parameters VaultParameters) (*Vault, error)

NewVaultAppRoleClient logs in to Vault using the AppRole authentication method, returning an authenticated client and the auth token itself, which can be periodically renewed.

type VaultParameters

type VaultParameters struct {
	// connection parameters
	Address          string
	ApproleRoleID    string
	ApproleSecretID  string
	SecretsMountPath string
	PKIMountPath     string
	PKIRoleID        string
}

Jump to

Keyboard shortcuts

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