package sthgetter
import "github.com/google/monologue/sthgetter"
Package sthgetter periodically gets an STH from a Log, checks that each one meets per-STH requirements defined in RFC 6962, and stores them.
Index ¶
- func Run(ctx context.Context, lc *client.LogClient, sv *ct.SignatureVerifier, st APICallSTHWriter, l *ctlog.Log, period time.Duration)
- type APICallSTHWriter
- type OldTimestampError
Functions ¶
func Run ¶
func Run(ctx context.Context, lc *client.LogClient, sv *ct.SignatureVerifier, st APICallSTHWriter, l *ctlog.Log, period time.Duration)
Run runs an STH Getter, which periodically gets an STH from a Log, checks that each one meets per-STH requirements defined in RFC 6962, and stores them.
Types ¶
type APICallSTHWriter ¶
type APICallSTHWriter interface { storage.APICallWriter storage.STHWriter }
APICallSTHWriter represents a type that can store API Calls and store STHs.
type OldTimestampError ¶
type OldTimestampError struct { Err error }
OldTimestampError indicates that an STH was older than the MMD of the Log.
func (*OldTimestampError) Error ¶
func (e *OldTimestampError) Error() string
Source Files ¶
- Version
- v0.0.0-20230315160450-1dc62842925e (latest)
- Published
- Mar 15, 2023
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 1 day ago –
Tools for package owners.