Expand description
A tool that functionaries can use to create link metadata about a step.
Functions
- Executes commands on a software supply chain step, then generates and returns its corresponding
LinkMetadata
as aMetablock
component, wrapped inResult
. If a symbolic link cycle is detected in the material or product paths, paths causing the cycle are skipped. - Reads and hashes an artifact given its path as a string literal, returning the
VirtualTargetPath
andTargetDescription
of the file as a tuple, wrapped inResult
. - Traverses through the passed array of paths, hashes the content of files encountered, and returns the path and hashed content in
BTreeMap
format, wrapped inResult
. If a step in record_artifact fails, the error is returned. - Given command arguments, executes commands on a software supply chain step and returns the
stdout
,stderr
, andreturn-value
asbyproducts
inResult<ByProducts>
format. If a commands in run_command fails to execute,Error
is returned.