Add ability to commit blob uploads into blobs

This commit is contained in:
Joseph Schorr 2018-09-14 14:08:23 -04:00
parent f68fbb8028
commit 5d2fe535b4
3 changed files with 46 additions and 1 deletions

View file

@ -225,3 +225,8 @@ class RegistryDataInterface(object):
@abstractmethod
def delete_blob_upload(self, blob_upload):
""" Deletes a blob upload record. """
@abstractmethod
def commit_blob_upload(self, blob_upload, blob_digest_str, blob_expiration_seconds):
""" Commits the blob upload into a blob and sets an expiration before that blob will be GCed.
"""