swh.storage.algos.discovery module#

class swh.storage.algos.discovery.DiscoveryStorageConnection(contents: List[Content], skipped_contents: List[SkippedContent], directories: List[Directory], swh_storage: StorageInterface)[source]#

Bases: ArchiveDiscoveryInterface

Use the storage APIs to query the archive

content_missing(contents: List[bytes]) Iterable[bytes][source]#

List content missing from the archive by sha1

skipped_content_missing(skipped_contents: List[bytes]) Iterable[bytes][source]#

List skipped content missing from the archive by sha1

directory_missing(directories: List[bytes]) Iterable[bytes][source]#

List directories missing from the archive by sha1