| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Server.Pipeline.Packument.Representation
Description
Body assembly, validators and output charges for admitted metadata contributions.
Synopsis
- data Contribution = Contribution {}
- fingerprintPiece :: Contribution -> (Provenance, ContentDigest, [(Text, [EntryKey])])
- codedETag :: ContentCoding -> ETag -> ETag
- packumentETag :: Text -> [Text] -> PackageName -> [(Provenance, ContentDigest, [(Text, [EntryKey])])] -> ETag
- outputBasisBytes :: MergePlan -> [Contribution] -> Int
- assembleServedBody :: AdapterMetadata -> Text -> [Contribution] -> MergePlan -> CachedDoc
Documentation
data Contribution Source #
A parsed contribution with opaque source bytes and a digest for the derived validator.
Constructors
| Contribution | |
Fields
| |
fingerprintPiece :: Contribution -> (Provenance, ContentDigest, [(Text, [EntryKey])]) Source #
Scope surviving versions and exact artifact coordinates to their source digest and provenance.
codedETag :: ContentCoding -> ETag -> ETag Source #
Keep the identity validator, or derive a weak gzip validator because codec changes can alter compressed bytes.
packumentETag :: Text -> [Text] -> PackageName -> [(Provenance, ContentDigest, [(Text, [EntryKey])])] -> ETag Source #
A validator derived from framed inputs so unchanged requests skip assembly. Bump the salt when assembly behaviour changes.
outputBasisBytes :: MergePlan -> [Contribution] -> Int Source #
Charge the larger source estimate, adding proportional bytes for versions missing from each anchor.
assembleServedBody :: AdapterMetadata -> Text -> [Contribution] -> MergePlan -> CachedDoc Source #
The served document of a merge whose plan names the sources by their position.