ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.CachedDocument

Description

Opaque serving documents with ecosystem-specific inject/project pairs. The pipeline carries source snapshot scope separately and delegates wire access to adapters.

Synopsis

Documentation

data CachedDoc Source #

Serving documents held by the pipeline and permitted caches. Derived Show and Eq support debugging and tests, not wire projection.

Instances

Instances details
Show CachedDoc Source # 
Instance details

Defined in Ecluse.Core.Registry.CachedDocument

Eq CachedDoc Source # 
Instance details

Defined in Ecluse.Core.Registry.CachedDocument

weighCachedDoc :: CachedDoc -> Int64 Source #

Estimate compact cache units without measuring retained heap. Packed storage estimates use the consumer's expansion factor.

estimateValueBytes :: Value -> Int64 Source #

Estimate accounting bytes without encoding. This is neither measured heap nor exact JSON length.

npmCached :: (Value -> CachedDoc, CachedDoc -> Maybe Value) Source #

Explicit cases require updates for new ecosystems. npm projects packed or rendered forms to trees, refusing missing strings or tables.

pypiSimpleCached :: (SimpleDocument -> CachedDoc, CachedDoc -> Maybe SimpleDocument) Source #

PyPI's boundary pair, spelled out arm by arm for the same reason as npmCached.

npm's packed full reads and their renders

npmPacked :: (PackedPackument -> CachedDoc, CachedDoc -> Maybe PackedPackument) Source #

npm's packed full read, and its packed form when the document is one.

npmRendered :: (RenderPlan -> CachedDoc, CachedDoc -> Maybe RenderPlan) Source #

An assembled npm listing that renders from packed releases, and its plan when the document is one.

PyPI's packed full reads and their renders

pypiPacked :: (PackedSimple -> CachedDoc, CachedDoc -> Maybe PackedSimple) Source #

PyPI's packed full-read document, available without materialising its files.

pypiRendered :: (RenderPlan -> CachedDoc, CachedDoc -> Maybe RenderPlan) Source #

An assembled PyPI listing that renders directly from packed files and source tables.

Cargo's native records, packed full reads and their renders

cargoCached :: (CargoDocument -> CachedDoc, CachedDoc -> Maybe CargoDocument) Source #

Cargo's native source records, preserving physical source coordinates on tree projection.

cargoPacked :: (PackedIndex -> CachedDoc, CachedDoc -> Maybe PackedIndex) Source #

Cargo's packed full source remains available without materialising native records.

cargoRendered :: (LinePlan -> CachedDoc, CachedDoc -> Maybe LinePlan) Source #

A native output plan keeps ordered records over their separate source tables.

RubyGems' native rows

rubyGemsCached :: (GemDocument -> CachedDoc, CachedDoc -> Maybe GemDocument) Source #

RubyGems retains native artifact rows without reconstructing installation metadata from policy facts.