(self, imagerepo, layer_id)
return False
Get one image layer data file (tarball)
Get one image layer data file (tarball)
Get one image layer data file ( tarball )
def get_v2_image_layer(self, imagerepo, layer_id):
        """Get one image layer data file (tarball)"""
        url = self.registry_url + "/v2/" + imagerepo + \
            "/blobs/" + layer_id
        Msg().out("Info: layer url", url, l=Msg.DBG)
        filename = self.localrepo.layersdir + '/' + layer_id
        if self._get_file(url, filename, 3):
            self.localrepo.add_image_layer(filename)
            return True
        return False
def get_v2_image_layer ( self , imagerepo , layer_id ) : url = self . registry_url + "/v2/" + imagerepo + "/blobs/" + layer_id Msg ( ) . out ( "Info: layer url" , url , l = Msg . DBG ) filename = self . localrepo . layersdir + '/' + layer_id if self . _get_file ( url , filename , 3 ) : self . localrepo . add_image_layer ( filename ) return True return False