def pull(namespace, package_name, release, media_type): logger.debug('Pull of release %s of app repository %s/%s', release, namespace, package_name) reponame = repo_name(namespace, package_name) data = cnr_registry.pull(reponame, release, media_type, Package, blob_class=Blob) logs_model.log_action('pull_repo', namespace, repository_name=package_name, metadata={'release': release, 'mediatype': media_type}) json_format = request.args.get('format', None) == 'json' return _pull(data, json_format)
def pull(namespace, package_name, release, media_type): logger.debug("Pull of release %s of app repository %s/%s", release, namespace, package_name) reponame = repo_name(namespace, package_name) data = cnr_registry.pull(reponame, release, media_type, Package, blob_class=Blob) logs_model.log_action( "pull_repo", namespace, repository_name=package_name, metadata={"release": release, "mediatype": media_type}, ) json_format = request.args.get("format", None) == "json" return _pull(data, json_format)
def blobs(namespace, package_name, digest): reponame = repo_name(namespace, package_name) data = cnr_registry.pull_blob(reponame, digest, blob_class=Blob) json_format = request.args.get('format', None) == 'json' return _pull(data, json_format=json_format)