(self, endpoint, layer_id)
return False
Get the JSON metadata for a specific layer
Get the JSON metadata for a specific layer
Get the JSON metadata for a specific layer
def get_v1_image_json(self, endpoint, layer_id):
        """Get the JSON metadata for a specific layer"""
        url = endpoint + "/v1/images/" + layer_id + "/json"
        Msg().out("Info: json url", url, l=Msg.DBG)
        filename = self.localrepo.layersdir + '/' + layer_id + ".json"
        if self._get_file(url, filename, 0):
            self.localrepo.add_image_layer(filename)
            return True
        return False
def get_v1_image_json ( self , endpoint , layer_id ) : url = endpoint + "/v1/images/" + layer_id + "/json" Msg ( ) . out ( "Info: json url" , url , l = Msg . DBG ) filename = self . localrepo . layersdir + '/' + layer_id + ".json" if self . _get_file ( url , filename , 0 ) : self . localrepo . add_image_layer ( filename ) return True return False