Fix support for pulling manifest lists via Docker V1 protocol where applicable

This commit is contained in:
Joseph Schorr 2018-11-14 14:05:06 +02:00
parent 37b20010aa
commit 276d0d571d
6 changed files with 48 additions and 9 deletions

View file

@ -12,6 +12,12 @@ class RegistryDataInterface(object):
""" Returns whether the implementation of the data interface supports schema 2 format
manifests. """
@abstractmethod
def get_legacy_tags_map(self, repository_ref, storage):
""" Returns a map from tag name to its legacy image ID, for all tags with legacy images in
the repository. Note that this can be a *very* heavy operation.
"""
@abstractmethod
def find_matching_tag(self, repository_ref, tag_names):
""" Finds an alive tag in the repository matching one of the given tag names and returns it