| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Sweep.Candidates
Description
Select names covered by advisories or explicit identity denies. Other policy changes require a full store walk.
Synopsis
- data CandidateSet
- candidateSet :: ProjectName -> [Rule] -> Maybe CveLookup -> IO CandidateSet
- identityDenyNames :: ProjectName -> [Rule] -> [PackageName]
- inCandidates :: CandidateSet -> PackageName -> Bool
Documentation
data CandidateSet Source #
Canonical names let the artifact and store use different display spellings. The ecosystem parser preserves their shared identity.
Instances
| Show CandidateSet Source # | |
Defined in Ecluse.Core.Registry.Sweep.Candidates Methods showsPrec :: Int -> CandidateSet -> ShowS # show :: CandidateSet -> String # showList :: [CandidateSet] -> ShowS # | |
| Eq CandidateSet Source # | |
Defined in Ecluse.Core.Registry.Sweep.Candidates | |
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.