Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/deposit/loader.py
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | class DepositLoader(PackageLoader[DepositPackageInfo]): | ||||
def __init__( | def __init__( | ||||
self, | self, | ||||
storage: StorageInterface, | storage: StorageInterface, | ||||
url: str, | url: str, | ||||
deposit_id: str, | deposit_id: str, | ||||
deposit_client: "ApiClient", | deposit_client: "ApiClient", | ||||
max_content_size: Optional[int] = None, | max_content_size: Optional[int] = None, | ||||
default_filename: str = "archive.zip", | default_filename: str = "archive.tar", | ||||
): | ): | ||||
"""Constructor | """Constructor | ||||
Args: | Args: | ||||
url: Origin url to associate the artifacts/metadata to | url: Origin url to associate the artifacts/metadata to | ||||
deposit_id: Deposit identity | deposit_id: Deposit identity | ||||
deposit_client: Deposit api client | deposit_client: Deposit api client | ||||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |