Add support for tag expiration based on a quay.expires-after
label
This commit is contained in:
parent
4663bf4194
commit
c5d8b5f86b
5 changed files with 88 additions and 4 deletions
|
@ -256,3 +256,11 @@ class DockerRegistryV2DataInterface(object):
|
|||
Once everything is moved over, this could be in util.registry and not even touch the database.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def set_manifest_expires_after(self, namespace_name, repo_name, digest, expires_after_sec):
|
||||
"""
|
||||
Sets that the manifest with given digest expires after the number of seconds from *now*.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
|
Reference in a new issue