swh.vault.in_memory_backend module

class swh.vault.in_memory_backend.InMemoryVaultBackend[source]

Bases: object

Stub vault backend, for use in the CLI.

fetch(bundle_type: str, swhid: swh.model.swhids.CoreSWHID) Optional[bytes][source]
cook(bundle_type: str, swhid: swh.model.swhids.CoreSWHID, email: Optional[str] = None) Dict[str, Any][source]
progress(bundle_type: str, swhid: swh.model.swhids.CoreSWHID)[source]
set_progress(bundle_type: str, swhid: swh.model.swhids.CoreSWHID, progress: str) None[source]
set_status(bundle_type: str, swhid: swh.model.swhids.CoreSWHID, status: str) None[source]
put_bundle(bundle_type: str, swhid: swh.model.swhids.CoreSWHID, bundle) bool[source]
send_notif(bundle_type: str, swhid: swh.model.swhids.CoreSWHID)[source]
batch_cook(batch: List[Tuple[str, str]]) int[source]
batch_progress(batch_id: int) Dict[str, Any][source]