| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Cargo.SourceState
Description
Native facts of one index row, shared by projection and by retained mirror sources.
Synopsis
Documentation
data CargoRecordFacts Source #
A schema-checked row's facts before any download binding. Text fields keep the published spelling.
Constructors
| CargoRecordFacts | |
Fields
| |
Instances
| Show CargoRecordFacts Source # | |
Defined in Ecluse.Core.Registry.Cargo.SourceState Methods showsPrec :: Int -> CargoRecordFacts -> ShowS # show :: CargoRecordFacts -> String # showList :: [CargoRecordFacts] -> ShowS # | |
| Eq CargoRecordFacts Source # | |
Defined in Ecluse.Core.Registry.Cargo.SourceState Methods (==) :: CargoRecordFacts -> CargoRecordFacts -> Bool # (/=) :: CargoRecordFacts -> CargoRecordFacts -> Bool # | |
cargoRecordFacts :: Value -> Either Text CargoRecordFacts Source #
Check the supported schema first, so the required fields below are present strings.
validateCargoSource :: PackageDetails -> CargoDocument -> Either Text () Source #
One retained row must reproduce its admitted archive identity and policy facts, or restoration refuses it.
restrictCargoDocument :: Set EntryKey -> CargoDocument -> CargoDocument Source #
Keep the admitted rows in native order without renumbering their physical coordinates.
cargoSourceCompanions :: CompanionRequirement Source #
A retained crate needs a companion only where its artifact declares one, and index rows declare none.