ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

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

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.