pub enum ArtifactState {
Discovered,
Acquired,
Analyzed,
Scanned,
Promoted,
Quarantined,
Deployed,
}Expand description
The lifecycle state of a single dependency artifact as it moves through the pipeline.
The allowed transitions encode docs/PIPELINE.md §7 and are enforced by
ArtifactState::transition. Every edge is, additionally, mID-gated at the API layer.
Variants§
Discovered
Found in a source’s resolved dependency graph.
Acquired
Downloaded and integrity-verified into the dirty store.
Analyzed
Language analytics + critical-point-of-failure scoring complete.
Scanned
Scanners have run and produced a verdict.
Promoted
Clean verdict; promoted into the prod store with a signed receipt.
Quarantined
Scan found issues; held out of prod pending review / re-scan.
Deployed
Materialized back into source and cleared by the deploy gate.
Implementations§
Source§impl ArtifactState
impl ArtifactState
pub const fn name(self) -> &'static str
Sourcepub const fn can_transition_to(self, next: ArtifactState) -> bool
pub const fn can_transition_to(self, next: ArtifactState) -> bool
Whether self -> next is a permitted edge in the pipeline state machine.
Sourcepub fn transition(self, next: ArtifactState) -> Result<ArtifactState>
pub fn transition(self, next: ArtifactState) -> Result<ArtifactState>
Advance to next, or return Error::IllegalTransition if the edge is not allowed.
Trait Implementations§
Source§impl Clone for ArtifactState
impl Clone for ArtifactState
Source§fn clone(&self) -> ArtifactState
fn clone(&self) -> ArtifactState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more