| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.PyPI.Streaming
Description
The fields a Simple-index read passes to its projection, and the fold that selects one release's files. Selected reads retain pending fields only until the first filename excludes the release.
Synopsis
- data PyPIRead
- data PyPIField
- fileScalars :: [Text]
- hashNames :: [Text]
- data SelectedFileEvent
- data SelectedFile
- = RejectedFile
- | CandidateFile Bool [(Key, Value)] (Maybe Value) Bool
- collectSelected :: FileProject -> Text -> SelectedFile -> SelectedFileEvent -> SelectedFile
- finishSelected :: SelectedFile -> Maybe Value
Documentation
Select all files or one canonical release while counting every input file.
Constructors
| FullRead | |
| SelectedRead PackageName Text |
File events carry original positions, including items that yield no retained payload.
Constructors
| EnvelopeField Text Value | |
| FilesShape Bool | |
| FileField Int (Maybe Value) | |
| VersionsShape Bool | |
| InvalidVersionField Int Value | |
| IgnoredField |
fileScalars :: [Text] Source #
The scalar members a file retains.
The digest names a file's hashes object can use. Any other name keeps its own key.
data SelectedFileEvent Source #
One member event of a file object that a selected read inspects.
Constructors
| FileScalar Key Value | |
| HashesStart | |
| HashesEnd | |
| HashField Key Value | |
| HashesValue Value |
data SelectedFile Source #
A file under selection: rejected by its name, or a candidate with its fields so far.
Constructors
| RejectedFile | |
| CandidateFile Bool [(Key, Value)] (Maybe Value) Bool |
collectSelected :: FileProject -> Text -> SelectedFile -> SelectedFileEvent -> SelectedFile Source #
Fold one member event into a file under selection. The first of each field wins.
finishSelected :: SelectedFile -> Maybe Value Source #
The retained object of a file the requested release names.