Add support for tag expiration based on a quay.expires-after label

This commit is contained in:
Joseph Schorr 2017-06-19 19:03:10 -04:00
parent 4663bf4194
commit c5d8b5f86b
5 changed files with 88 additions and 4 deletions

View file

@ -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