Function in_toto::runlib::record_artifact
source · pub fn record_artifact(
path: &str,
hash_algorithms: &[HashAlgorithm],
lstrip_paths: Option<&[&str]>
) -> Result<(VirtualTargetPath, TargetDescription)>
Expand description
Reads and hashes an artifact given its path as a string literal,
returning the VirtualTargetPath
and TargetDescription
of the file as a tuple, wrapped in Result
.