Skip to main content

ArtifactStore

Trait ArtifactStore 

Source
pub trait ArtifactStore: Send + Sync {
    // Required method
    fn resolve(
        &self,
        source: &str,
        pinned_digest: &str,
    ) -> Result<ResolvedArtifact, ControlError>;
}
Expand description

Resolves a manifest source into a ResolvedArtifact, verifying that the artifact’s content digest equals pinned_digest (sha256:...). Implementations are fail-closed on any mismatch or malformed artifact.

Required Methods§

Source

fn resolve( &self, source: &str, pinned_digest: &str, ) -> Result<ResolvedArtifact, ControlError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§