Skip to main content

try_infused_nar_path

Function try_infused_nar_path 

Source
pub async fn try_infused_nar_path<BS, DS>(
    narinfo: &NarInfo<'_>,
    blob_service: BS,
    directory_service: DS,
) -> Result<Option<Node>, Error>
where BS: BlobService + 'static, DS: DirectoryService,
Expand description

Try to parse the NAR URL in the Narinfo as castore-infused, return the validated root_node if successful. If the URL is not castore-infused, returns Ok(Some). The passed blob_service and directory_service need to include the gRPC castore services, so substitution of new castore data is possible.