package
Version:
v0.0.487
Opens a new window with list of versions in this module.
Published: Mar 11, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package secret implements an agent to read and reload the secrets.
LoadSecrets loads multiple paths of secrets and add them in a map.
LoadSingleSecret reads and returns the value of a single file.
Agent watches a path and automatically loads the secrets stored.
GetSecret returns the value of a secret stored in a map.
GetTokenGenerator returns a function that gets the value of a given secret.
Start creates goroutines to monitor the files that contain the secret value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.