(self, imagerepo, tags_only=False)
Get list of tags in a repo from Docker Hub
Get list of tags in a repo from Docker Hub
Get list of tags in a repo from Docker Hub
def get_v2_image_tags(self, imagerepo, tags_only=False):
        """Get list of tags in a repo from Docker Hub"""
        url = self.registry_url + "/v2/" + imagerepo + "/tags/list"
        Msg().out("Info: tags url", url, l=Msg.DBG)
        (dummy, buf) = self._get_url(url)
        tags = []
        try:
            if tags_only:
                for tag in json.loads(buf.getvalue())["tags"]:
                    tags.append(tag)
                return tags

            return json.loads(buf.getvalue())
        except (IOError, OSError, AttributeError, ValueError, TypeError):
            return []
def get_v2_image_tags ( self , imagerepo , tags_only = False ) : url = self . registry_url + "/v2/" + imagerepo + "/tags/list" Msg ( ) . out ( "Info: tags url" , url , l = Msg . DBG ) ( dummy , buf ) = self . _get_url ( url ) tags = [ ] try : if tags_only : for tag in json . loads ( buf . getvalue ( ) ) [ "tags" ] : tags . append ( tag ) return tags return json . loads ( buf . getvalue ( ) ) except ( IOError , OSError , AttributeError , ValueError , TypeError ) : return [ ]