sumdb

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeDashboard

func ServeDashboard(w http.ResponseWriter, req *http.Request)

func ServeFailuresAtom

func ServeFailuresAtom(w http.ResponseWriter, req *http.Request)

ServeFailuresAtom publishes inconsistencies seen in checksum databases as an Atom feed.

Types

type Dashboard

type Dashboard struct {
	Domain           string
	SumDBs           []SumDB
	InconsistentSTHs []InconsistentSTH
	DuplicateRecords []DuplicateRecord
}

func LoadDashboard

func LoadDashboard(ctx context.Context) (*Dashboard, error)

type DuplicateRecord

type DuplicateRecord struct {
	SumDB            string
	Position         uint64
	PreviousPosition uint64
	Module           string
	Version          string
	ObservedAt       time.Time
}

type InconsistentSTH

type InconsistentSTH struct {
	SumDB              string
	TreeSize           uint64
	RootHash           []byte
	CalculatedRootHash []byte
	Signature          []byte
	ObservedAt         time.Time
}

func (*InconsistentSTH) CalculatedRootHashString

func (sth *InconsistentSTH) CalculatedRootHashString() string

func (*InconsistentSTH) DownloadURL

func (sth *InconsistentSTH) DownloadURL() template.URL

func (*InconsistentSTH) RootHashString

func (sth *InconsistentSTH) RootHashString() string

func (*InconsistentSTH) STH

func (sth *InconsistentSTH) STH() *sumdb.STH

type SumDB

type SumDB struct {
	Address        string
	LargestSTHSize uint64
	LargestSTHTime time.Time
	DownloadSize   uint64
	VerifiedSize   uint64
}

func (*SumDB) DownloadBacklog

func (db *SumDB) DownloadBacklog() uint64

func (*SumDB) VerifyBacklog

func (db *SumDB) VerifyBacklog() uint64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL