Add support for direct download in Swift storage engine

Fixes #483
This commit is contained in:
Joseph Schorr 2015-09-14 17:49:35 -04:00
parent 57329b6c78
commit 6f2271d0ae
6 changed files with 93 additions and 18 deletions

View file

@ -58,8 +58,9 @@ class BaseStorage(StoragePaths):
""" Called to perform any storage system setup. """
pass
def validate(self):
""" Called to perform any custom storage system validation. """
def validate(self, client):
""" Called to perform any custom storage system validation. The client is an HTTP
client to use for any external calls. """
pass
def get_direct_download_url(self, path, expires_in=60, requires_cors=False):