swh.vault.api.server module#
- class swh.vault.api.server.VaultServerApp(*args, backend_class=None, backend_factory=None, **kwargs)[source]#
Bases:
RPCServerApp
- swh.vault.api.server.check_config(cfg: Dict[str, Any]) Dict[str, Any] [source]#
Ensure the configuration is ok to run a postgresql vault server, and propagate defaults.
- Raises:
EnvironmentError if the configuration is not for postgresql instance –
ValueError if one of the following keys is missing – vault, cache, storage,
scheduler –
- Returns:
New configuration dict to instantiate a postgresql vault server instance.
- swh.vault.api.server.make_app_from_configfile(config_path: str | None = None, **kwargs) VaultServerApp [source]#
Load and check configuration if ok, then instantiate (once) a vault server application.