cadrumo.adapters.persistence.profile.evidence_bundles module¶
Encrypted persistence bindings for application evidence-bundle ports.
Core types:
SecureObjectRepository.
- class EvidenceBundleRepository(*, objects)[source]¶
Bases:
SecureBoundRepository[EvidenceBundle],EvidenceBundleRepositoryPortBind encrypted secure-object storage to the evidence-bundle port.
- Parameters:
objects (SecureObjectRepository)
- payload_type¶
alias of
EvidenceBundle
- extract_identifier(payload)[source]¶
Return the stable storage key for an evidence bundle.
- Return type:
- Parameters:
payload (EvidenceBundle)
- load(identifier)[source]¶
Load one encrypted bundle and translate storage failures.
- Return type:
- Parameters:
identifier (str)
- save(payload)[source]¶
Save one encrypted bundle and translate storage failures.
- Return type:
- Parameters:
payload (EvidenceBundle)
- class EvidenceBundleWorkUnitRepository(*, bucket_id, objects)[source]¶
Bases:
EvidenceBundleWorkUnitPortAdapt the encrypted work-unit catalogue to the evidence port.
- Parameters:
bucket_id (str)
objects (SecureObjectRepository)