impl

package
v0.0.0-...-36d823c Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0, Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package impl is the implementation of the Firmware Transparency monitor. The monitor follows the growth of the Firmware Transparency log server, inspects new firmware metadata as it appears, and prints out a short summary.

TODO(al): Extend monitor to verify claims.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(ctx context.Context, opts MonitorOpts) error

Main runs the monitor until the context is canceled.

Types

type MatchFunc

type MatchFunc func(index uint64, fw api.FirmwareMetadata)

MatchFunc is the signature of a function which can be called by the monitor to signal when it's found a keyword match in a logged entry.

type MonitorOpts

type MonitorOpts struct {
	LogURL         string
	LogSigVerifier note.Verifier
	PollInterval   time.Duration
	Keyword        string
	Matched        MatchFunc
	Annotate       bool
	StateFile      string
}

MonitorOpts encapsulates options for running the monitor.

Jump to

Keyboard shortcuts

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