(self, imagerepo)
Get list of images in a repo from Docker Hub
Get list of images in a repo from Docker Hub
Get list of images in a repo from Docker Hub
def get_v1_repo(self, imagerepo):
        """Get list of images in a repo from Docker Hub"""
        url = self.index_url + "/v1/repositories/" + imagerepo + "/images"
        Msg().out("Info: repo url", url, l=Msg.DBG)
        (hdr, buf) = self._get_url(url, header=["X-Docker-Token: true"])
        try:
            self.v1_auth_header = "Authorization: Token " + \
                hdr.data["x-docker-token"]
            return hdr.data, json.loads(buf.getvalue())
        except (IOError, OSError, AttributeError,
                ValueError, TypeError, KeyError):
            self.v1_auth_header = ""
            return hdr.data, []
def get_v1_repo ( self , imagerepo ) : url = self . index_url + "/v1/repositories/" + imagerepo + "/images" Msg ( ) . out ( "Info: repo url" , url , l = Msg . DBG ) ( hdr , buf ) = self . _get_url ( url , header = [ "X-Docker-Token: true" ] ) try : self . v1_auth_header = "Authorization: Token " + hdr . data [ "x-docker-token" ] return hdr . data , json . loads ( buf . getvalue ( ) ) except ( IOError , OSError , AttributeError , ValueError , TypeError , KeyError ) : self . v1_auth_header = "" return hdr . data , [ ]