Vault Module
Provides a encrypted store of variables to prevent accidental leakage Please read the documentation
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
Vault.createKey file
Parameters:
string option
-
The secret file to use to create the key
Returns: KeyInfo
|
|
Full Usage:
Vault.decryptVariable key base64Val
Parameters:
KeyInfo
-
The file with the key
base64Val : string
-
The base64 encoded value to decrypt
Returns: string
|
|
|
|
Full Usage:
Vault.encryptVariable key value
Parameters:
KeyInfo
-
The file with the key
value : string
-
The utf-8 value to encrypt
Returns: string
|
|
|
|
Full Usage:
Vault.fromEnvironmentVariable envVar
Parameters:
string
-
The environment variable to use
Returns: Vault
|
|
Full Usage:
Vault.fromEnvironmentVariableOrNone envVar
Parameters:
string
-
The environment variable to use
Returns: Vault option
|
|
|
|
|
|
Full Usage:
Vault.fromJson str
Parameters:
string
-
The JSON string of the vault to read
Returns: Vault
|
Read in a vault from a given json string, make sure to delete the source of the json after using this API
|
|
similar to tryGet but throws an exception if the variable with the given name is not available in the vault The variable name to retrieve The vault to check
|
Full Usage:
Vault.tryGet name v
Parameters:
string
-
The variable name to retrieve
v : Vault
-
The vault to check
Returns: string option
|
|