Get resumable downloads working in a way that the Docker CLI will actually understand. Also rename the method to conform the the name used in the Docker source code.
This commit is contained in:
parent
0d89fd7f26
commit
0ac6312c8a
4 changed files with 40 additions and 10 deletions
|
@ -57,7 +57,7 @@ class BaseStorage(StoragePaths):
|
|||
def get_direct_download_url(self, path, expires_in=60):
|
||||
return None
|
||||
|
||||
def get_supports_resumable_downloads(self):
|
||||
def get_supports_resumeable_downloads(self, path):
|
||||
return False
|
||||
|
||||
def get_content(self, path):
|
||||
|
|
|
@ -39,3 +39,4 @@ class DistributedStorage(StoragePaths):
|
|||
list_directory = _location_aware(BaseStorage.list_directory)
|
||||
exists = _location_aware(BaseStorage.exists)
|
||||
remove = _location_aware(BaseStorage.remove)
|
||||
get_supports_resumeable_downloads = _location_aware(BaseStorage.get_supports_resumeable_downloads)
|
||||
|
|
|
@ -83,7 +83,7 @@ class S3Storage(BaseStorage):
|
|||
key.set_contents_from_string(content, encrypt_key=True)
|
||||
return path
|
||||
|
||||
def get_supports_resumable_downloads(self):
|
||||
def get_supports_resumeable_downloads(self, path):
|
||||
return True
|
||||
|
||||
def get_direct_download_url(self, path, expires_in=60):
|
||||
|
|
Reference in a new issue