(self, endpoint, layer_list)
return files
Using a layer list download data and metadata files
Using a layer list download data and metadata files
Using a layer list download data and metadata files
def get_v1_layers_all(self, endpoint, layer_list):
        """Using a layer list download data and metadata files"""
        files = []
        if layer_list:
            for layer_id in reversed(layer_list):
                Msg().out("Info: downloading layer", layer_id, l=Msg.INF)
                filesize = self.get_v1_image_json(endpoint, layer_id)
                if not filesize:
                    return []
                files.append(layer_id + ".json")
                filesize = self.get_v1_image_layer(endpoint, layer_id)
                if not filesize:
                    return []
                files.append(layer_id + ".layer")
        return files
def get_v1_layers_all ( self , endpoint , layer_list ) : files = [ ] if layer_list : for layer_id in reversed ( layer_list ) : Msg ( ) . out ( "Info: downloading layer" , layer_id , l = Msg . INF ) filesize = self . get_v1_image_json ( endpoint , layer_id ) if not filesize : return [ ] files . append ( layer_id + ".json" ) filesize = self . get_v1_image_layer ( endpoint , layer_id ) if not filesize : return [ ] files . append ( layer_id + ".layer" ) return files