Add function in data interface for mounting blobs into other repositories
This commit is contained in:
parent
03789b2210
commit
818ed32f87
3 changed files with 49 additions and 0 deletions
|
@ -246,3 +246,12 @@ class RegistryDataInterface(object):
|
|||
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.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def mount_blob_into_repository(self, blob, target_repository_ref, expiration_sec):
|
||||
"""
|
||||
Mounts the blob from another repository into the specified target repository, and adds an
|
||||
expiration before that blob is automatically GCed. This function is useful during push
|
||||
operations if an existing blob from another repositroy is being pushed. Returns False if
|
||||
the mounting fails.
|
||||
"""
|
||||
|
|
Reference in a new issue