Documentation ¶
Overview ¶
package vault implements "vault" built-in package to access Vault API from an addon.
Index ¶
- Variables
- func New(c *vault.Client) *isopod.Module
- func NewDryRunFake() (m starlark.HasAttrs, closeFn func(), err error)
- func NewFake() (m starlark.HasAttrs, closeFn func(), err error)
- func NewFakeModule(fakeVault *fakeVault) (m starlark.HasAttrs, err error)
- func ReadVaultPath(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoToken = errors.New("tried to access Vault but token is empty. Please set --vault_token or $VAULT_TOKEN")
)
Functions ¶
func NewDryRunFake ¶ added in v1.4.0
NewDryRunFake returns a new fake vault module for dry run.
func NewFakeModule ¶ added in v1.4.0
NewFakeModule constructs and returns a new vault module that doesn't actually read values in vault.
func ReadVaultPath ¶ added in v1.1.0
ReadVaultPath takes in the Vault path and returns the value as a string. Must have VAULT_ADDR set, and vault token is grabbed from flags.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.