swh.storage.validate module

class swh.storage.validate.ValidatingProxyStorage(storage)[source]

Bases: object

Proxy for storage classes, which checks inserted objects have a correct hash.

Sample configuration use case for filtering storage:

content_add(content: List[swh.model.model.Content]) → Dict[source]
directory_add(directories: List[swh.model.model.Directory]) → Dict[source]
revision_add(revisions: List[swh.model.model.Revision]) → Dict[source]
release_add(releases: List[swh.model.model.Release]) → Dict[source]
snapshot_add(snapshots: List[swh.model.model.Snapshot]) → Dict[source]