Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/interface.py
Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Lines | def skipped_content_add(self, content: List[SkippedContent]) -> Dict: | ||||
Returns: | Returns: | ||||
Summary dict with the following key and associated values: | Summary dict with the following key and associated values: | ||||
skipped_content:add: New skipped contents (no data) added | skipped_content:add: New skipped contents (no data) added | ||||
""" | """ | ||||
... | ... | ||||
@remote_api_endpoint("content/skipped/missing") | @remote_api_endpoint("content/skipped/missing") | ||||
def skipped_content_missing(self, contents): | def skipped_content_missing( | ||||
"""List skipped_content missing from storage | self, contents: List[Dict[str, Any]] | ||||
) -> Iterable[Dict[str, Any]]: | |||||
"""List skipped contents missing from storage. | |||||
Args: | Args: | ||||
content: iterable of dictionaries containing the data for each | contents: iterable of dictionaries containing the data for each | ||||
checksum algorithm. | checksum algorithm. | ||||
Returns: | Returns: | ||||
iterable: missing signatures | Iterable of missing skipped contents as dict | ||||
""" | """ | ||||
... | ... | ||||
@remote_api_endpoint("directory/add") | @remote_api_endpoint("directory/add") | ||||
def directory_add(self, directories: List[Directory]) -> Dict: | def directory_add(self, directories: List[Directory]) -> Dict: | ||||
"""Add directories to the storage | """Add directories to the storage | ||||
▲ Show 20 Lines • Show All 915 Lines • Show Last 20 Lines |