ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Sweep.Candidates

Description

Select names covered by advisories or explicit identity denies. Other policy changes require a full store walk.

Synopsis

Documentation

data CandidateSet Source #

Canonical names let the artifact and store use different display spellings. The ecosystem parser preserves their shared identity.

candidateSet :: ProjectName -> [Rule] -> Maybe CveLookup -> IO CandidateSet Source #

Every name a pinned lookup covers, plus the identity-denied names. Later rule evaluations acquire their own lookups and can use a newer generation.

identityDenyNames :: ProjectName -> [Rule] -> [PackageName] Source #

The package names a rule set's identity denies pin. A deny spells name or name@version, and a name may itself carry an @, so the split is at the last one.

inCandidates :: CandidateSet -> PackageName -> Bool Source #

Whether a name the store listed is one this cycle decides.