print

package
v0.0.0-...-1dc6284 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package print provides a concrete implementation of the storage interfaces needed by the CT monitor, which simply prints everything that is passed to it to be 'stored'.

This package is only intended to be a handy tool used during development, and will likely be deleted in the not-so-distant future. Don't rely on it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct{}

Storage implements the storage interfaces needed by the CT monitor.

func (*Storage) WriteAPICall

func (s *Storage) WriteAPICall(ctx context.Context, l *ctlog.Log, apiCall *apicall.APICall) error

WriteAPICall simply prints the API Call passed to it.

func (*Storage) WriteRoots

func (s *Storage) WriteRoots(ctx context.Context, l *ctlog.Log, certs []*x509.Certificate, receivedAt time.Time) error

WriteRoots simply prints the number of certificates passed to it.

func (*Storage) WriteSTH

func (s *Storage) WriteSTH(ctx context.Context, l *ctlog.Log, sth *ct.SignedTreeHead, receivedAt time.Time, errs []error) error

WriteSTH simply prints the STH and errors passed to it.

Jump to

Keyboard shortcuts

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