Skip to main content

blob_from

Function blob_from 

Source
pub fn blob_from(
    files: &BTreeMap<String, Vec<u8>>,
    metadata: &BTreeMap<String, Vec<u8>>,
    digest: &Sha256,
) -> Result<Vec<u8>, AppError>
Expand description

Serve a blob out of a byte map keyed by path.

ยงErrors

AppError::Refused when no artifact carries that digest.