Skip to main content

MetadataStore

Trait MetadataStore 

Source
pub trait MetadataStore {
    // Required methods
    fn record_verdict(
        &self,
        artifact: &ArtifactRef,
        verdict: &ScanVerdict,
    ) -> Result<()>;
    fn verdict(&self, artifact: &ArtifactRef) -> Result<Option<ScanVerdict>>;
}
Expand description

Encrypted metadata: scan verdicts, promotion receipts, and graph annotations (docs/STORAGE.md §4).

Required Methods§

Source

fn record_verdict( &self, artifact: &ArtifactRef, verdict: &ScanVerdict, ) -> Result<()>

Source

fn verdict(&self, artifact: &ArtifactRef) -> Result<Option<ScanVerdict>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§