Struct hips::Database [−][src]
pub struct Database { /* fields omitted */ }
Expand description
A handle to the underlying secrets database.
Any calls to this object’s methods (load, store..) will result in a similar call on the
injected Backend
implementation, no caching is being done. Every call will also invoke
encryption/decryption logic, which should be considered slow.
Implementations
Instantiate a new Database
with injected Backend
/Encrypter
.
Instantiate a new Database
from a file.
This function will try to guess which database type is needed, and create the appropriate
backend based on that. This is used in the binary, which supports only the Backend
s and
Encrypter
s shipped with hips.
Process the database through a template.
This call will read the provided template
and replace all references to secrets with the
secrets stored in the database. We use the tinytemplate engine, see their syntax
page for more context.