Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/filter.py
Show All 21 Lines | .. code-block: yaml | ||||
storage: | storage: | ||||
cls: filter | cls: filter | ||||
storage: | storage: | ||||
cls: remote | cls: remote | ||||
url: http://storage.internal.staging.swh.network:5002/ | url: http://storage.internal.staging.swh.network:5002/ | ||||
""" | """ | ||||
object_types = ["content", "skipped_content", "directory", "revision"] | |||||
def __init__(self, storage): | def __init__(self, storage): | ||||
self.storage: StorageInterface = get_storage(**storage) | self.storage: StorageInterface = get_storage(**storage) | ||||
def __getattr__(self, key): | def __getattr__(self, key): | ||||
if key == "storage": | if key == "storage": | ||||
raise AttributeError(key) | raise AttributeError(key) | ||||
return getattr(self.storage, key) | return getattr(self.storage, key) | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |