(self, imagerepo, fslayers)
return files
Get all layer data files belonging to a image tag
Get all layer data files belonging to a image tag
Get all layer data files belonging to a image tag
def get_v2_layers_all(self, imagerepo, fslayers):
        """Get all layer data files belonging to a image tag"""
        files = []
        blob = ""
        if fslayers:
            for layer in reversed(fslayers):
                if "blobSum" in layer:
                    blob = layer["blobSum"]
                elif "digest" in layer:
                    blob = layer["digest"]
                Msg().out("Info: downloading layer", blob, l=Msg.INF)
                if not self.get_v2_image_layer(imagerepo, blob):
                    return []
                files.append(blob)
        return files
def get_v2_layers_all ( self , imagerepo , fslayers ) : files = [ ] blob = "" if fslayers : for layer in reversed ( fslayers ) : if "blobSum" in layer : blob = layer [ "blobSum" ] elif "digest" in layer : blob = layer [ "digest" ] Msg ( ) . out ( "Info: downloading layer" , blob , l = Msg . INF ) if not self . get_v2_image_layer ( imagerepo , blob ) : return [ ] files . append ( blob ) return files