swh.vault package#
Subpackages#
Submodules#
- swh.vault.backend module
VaultDB
VaultBackend
VaultBackend.progress()
VaultBackend.create_task()
VaultBackend.add_notif_email()
VaultBackend.put_bundle()
VaultBackend.cook()
VaultBackend.batch_cook()
VaultBackend.batch_progress()
VaultBackend.is_available()
VaultBackend.fetch()
VaultBackend.download_url()
VaultBackend.update_access_ts()
VaultBackend.set_status()
VaultBackend.set_progress()
VaultBackend.send_notif()
VaultBackend.send_notification()
VaultBackend.cache_expire_oldest()
VaultBackend.cache_expire_until()
- swh.vault.cache module
- swh.vault.cli module
- swh.vault.cooking_tasks module
- swh.vault.exc module
- swh.vault.in_memory_backend module
InMemoryVaultBackend
InMemoryVaultBackend.fetch()
InMemoryVaultBackend.download_url()
InMemoryVaultBackend.cook()
InMemoryVaultBackend.progress()
InMemoryVaultBackend.set_progress()
InMemoryVaultBackend.set_status()
InMemoryVaultBackend.put_bundle()
InMemoryVaultBackend.send_notif()
InMemoryVaultBackend.batch_cook()
InMemoryVaultBackend.batch_progress()
- swh.vault.interface module
- swh.vault.to_disk module
Module contents#
- swh.vault.get_vault(cls: str, **kwargs) VaultInterface [source]#
Get a vault object of class vault_class with arguments vault_args.
- Parameters:
cls – vault’s class
kwargs – arguments to pass to the class’ constructor
- Returns:
an instance of VaultBackend
- Raises:
ValueError if passed an unknown storage class. –