Skip to main content

Module store

Module store 

Source
Expand description

The console’s SQLite file (RFC-108 D6).

Structs§

EventFilter
Which events to list. Empty fields match everything.
EventRow
One change recorded between two consecutive reports of a project.
IngestOutcome
What ingesting a report did.
KeyGrant
What a live key allows.
KeyInfo
ProjectRow
ReportSummary
One stored report, without its body.
Store

Constants§

DATABASE_FILE
File name of the database inside the data directory.
KEY_PREFIX
Prefix of every publish key, so a leaked one is recognisable.

Functions§

default_data_dir
The data directory when --data is not given: $XDG_DATA_HOME/tuff/console, or ~/.local/share/tuff/console.
report_digest
SHA-256 over the report’s canonical JSON without generatedAt and the project’s commit, branch, and dirty (D6). Those describe when and where the report was taken; two reports that differ only there say the same thing about the project, so a CI job publishing on every push does not add a row per commit.