ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

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

Documentation

newtype DbEtag Source #

An artifact version marker: S3's ETag, compared for equality only. Equal ETags carry equal bytes, so an unchanged one means nothing to do.

Constructors

DbEtag Text 

Instances

Instances details
Show DbEtag Source # 
Instance details

Defined in Ecluse.Core.Cve.Types

Eq DbEtag Source # 
Instance details

Defined in Ecluse.Core.Cve.Types

Methods

(==) :: DbEtag -> DbEtag -> Bool #

(/=) :: DbEtag -> DbEtag -> Bool #

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).

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.