Skip to main content

resolve_artifact_bytes

Function resolve_artifact_bytes 

Source
pub fn resolve_artifact_bytes<S: BuildHasher>(
    artifacts: &HashMap<ArtifactId, ArtifactValue, S>,
    artifact_id: &ArtifactId,
    property: Option<&str>,
) -> Result<Vec<u8>, ExecutionError>
Expand description

Resolve an artifact reference to byte content.

§Arguments

  • artifacts - The artifact store from ActionContext
  • artifact_id - The artifact ID
  • property - Optional subproperty (e.g., “private” or “public”)

§Returns

The resolved bytes, or an error if resolution fails.

§Supported references

  • artifact_id → full artifact content
  • artifact_id + “private” → private key from keypair
  • artifact_id + “public” → public key from keypair