| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Cve.Types
Description
The advisory-artifact identity the sync writes and every reader carries, and why a fetch of it failed. Ecluse.Core.Cve opens the artifact and Ecluse.Runtime.Cve.Sync installs it. The rule vocabulary, the serve pipeline, the sweep and the sync span only carry these, so they live apart from the module that opens SQLite.
Synopsis
- newtype DbEtag = DbEtag Text
- data OsvDbFetchFault
- renderOsvDbFetchFault :: OsvDbFetchFault -> Text
Documentation
An artifact version marker: S3's ETag, compared for equality only. Equal ETags carry equal bytes, so an unchanged one means nothing to do.
data OsvDbFetchFault Source #
Why an artifact fetch did not yield usable bytes: a value on the sync's fetch channel, never an exception.
Constructors
| OsvDbTooLarge Int | The object exceeds the configured byte cap (carried, in bytes). |
| OsvDbNoEtag | The response carried no ETag, so there is nothing truthful to record. |
| OsvDbTransport TransportFault | The transport could not deliver the object (carried, classified). |
Instances
| Show OsvDbFetchFault Source # | |
Defined in Ecluse.Core.Cve.Types Methods showsPrec :: Int -> OsvDbFetchFault -> ShowS # show :: OsvDbFetchFault -> String # showList :: [OsvDbFetchFault] -> ShowS # | |
| Eq OsvDbFetchFault Source # | |
Defined in Ecluse.Core.Cve.Types Methods (==) :: OsvDbFetchFault -> OsvDbFetchFault -> Bool # (/=) :: OsvDbFetchFault -> OsvDbFetchFault -> Bool # | |
renderOsvDbFetchFault :: OsvDbFetchFault -> Text Source #
A fetch fault as a report line or a span status reads it. It never names the object URL or the request.