vault

package
v0.0.0-...-3639d1b Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(path string) (cfg.Config, error)

GetConfig will get Vault address, token, and CA from environment variables. It will also get project environment from environment variable that will serve as the root path to get Vault secret.

Project env environment variables should be in format of understandable Vault path, e.g cpt-dimii/dev/ hsn-remid/prd/

func NewConfig

func NewConfig(address, token, ca, projectEnv, path string) (cfg.Config, error)

NewConfig wii retrieve values from GetConfig function, then generate new config map that will serve as Vault client. Then, request to Vault will be sent with secret path generated from projectEnv and path variables as fullPath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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