vault

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecretWithDefaultConfiguration

func GetSecretWithDefaultConfiguration(path string, field string) (string, error)

GetSecretWithDefaultConfiguration using the token configured by the CLI and the environment variable VAULT_ADDR containing the base URL for the vault API

func LookupToken

func LookupToken() (string, error)

LookupToken to authenticate for API calls Checks the env var VAULT_TOKEN first and if that is not set, tries to look up ~/.vault-token, which is written by Vault CLI

Types

This section is empty.

Jump to

Keyboard shortcuts

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