pub async fn download(
name: String,
version: String,
context: Context,
) -> Result<impl Reply, Rejection>
Expand description
Downloads a file from the brane-api
“registry” to the client.
§Arguments
name
: The name of the package (container) to download.version
: The version of the package (container) to download. May be ‘latest’.context
: The Context that describes some properties of the running environment, such as the location where the container images are stored.
§Returns
A reply with as body the container archive. This archive will likely not be compressed (for now).
§Errors
This function errors if resolving a ‘latest’ version failed, the requested package/version pair did not exist, the Scylla database was unreachable or we failed to read the image file.