package print

import "github.com/google/monologue/storage/print"

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

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.

Source Files

print.go

Version
v0.0.0-20230315160450-1dc62842925e (latest)
Published
Mar 15, 2023
Platform
linux/amd64
Imports
7 packages
Last checked
1 day ago

Tools for package owners.