Provides implementation for the Vault Secret APIs
Extends
- Vaulted
Methods
-
<inner> delete( [mountName])
-
Delete a secret from the generic backend
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the secret
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
secret path name the generic secret backend is mounted on
Returns:
- Type
- Promise
-
<inner> read( [mountName])
-
Read / get a secret from the generic backend
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the secret
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
secret path name the generic secret backend is mounted on
Returns:
- Type
- Promise
-
<inner> write( [mountName])
-
Write a secret to the generic backend
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the secret
options.bodyObject containing the structure of the secret to store
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
secret path name the generic secret backend is mounted on
Returns:
- Type
- Promise