HomeSoftware Heritage

Normalize the configuration of VaultBackend and cooker

Description

Normalize the configuration of VaultBackend and cooker

  • Ensure every service for which an (remote or local) access is needed uses the same config structure (dict with 'cls' and 'args' keys).
  • Extract instanciation (thus confguration) of remote/external services (storage, cache, scheduler) from the VaultBackend constructor; these are now passed as init arguments; their instanciation/configuration is thus now handled by swh.vault.api.server and swh.vault.cooker.get_cooker (with some support in swh.vault.get_vault).

Details