Source code for cadrumo.application.ledger.evidence_sweep_ports
"""Application-owned capabilities and boundary values for evidence sweeps."""from__future__importannotationsfromdataclassesimportdataclassfromtypingimportProtocolfrom...core.errors.hierarchyimportCadrumoError
[docs]@dataclass(frozen=True,slots=True)classEvidenceSweepDocument:"""The document metadata the application needs from a folder listing."""file_id:strname:strmime_type:str
[docs]classEvidenceSweepFileNotReachableError(CadrumoError):"""The provider refused one file under the currently granted scope."""
[docs]classEvidenceSweepFetcher(Protocol):"""Capability that fetches and stores one listed evidence document."""def__call__(self,document:EvidenceSweepDocument)->str:"""Return the stored attachment identifier for ``document``."""...