cmd

package
v0.0.0-...-54f3407 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigDir

func DefaultConfigDir(programName string) string

func DefaultStateDir

func DefaultStateDir(programName string) string

func LogEntry

func LogEntry(info *certspotter.EntryInfo)

func Main

func Main(statePath string, processCallback certspotter.ProcessCallback) int

Types

type LogState

type LogState struct {
	// contains filtered or unexported fields
}

func OpenLogState

func OpenLogState(logStatePath string) (*LogState, error)

func (*LogState) GetTree

func (logState *LogState) GetTree() (*certspotter.CollapsedMerkleTree, error)

func (*LogState) GetUnverifiedSTHs

func (logState *LogState) GetUnverifiedSTHs() ([]*ct.SignedTreeHead, error)

func (*LogState) GetVerifiedSTH

func (logState *LogState) GetVerifiedSTH() (*ct.SignedTreeHead, error)

func (*LogState) RemoveUnverifiedSTH

func (logState *LogState) RemoveUnverifiedSTH(sth *ct.SignedTreeHead) error

func (*LogState) StoreTree

func (logState *LogState) StoreTree(tree *certspotter.CollapsedMerkleTree) error

func (*LogState) StoreUnverifiedSTH

func (logState *LogState) StoreUnverifiedSTH(sth *ct.SignedTreeHead) error

func (*LogState) StoreVerifiedSTH

func (logState *LogState) StoreVerifiedSTH(sth *ct.SignedTreeHead) error

func (*LogState) UnverifiedSTHFilename

func (logState *LogState) UnverifiedSTHFilename(sth *ct.SignedTreeHead) string

func (*LogState) VerifiedSTHFilename

func (logState *LogState) VerifiedSTHFilename() string

type State

type State struct {
	// contains filtered or unexported fields
}

func OpenState

func OpenState(statePath string) (*State, error)

func (*State) GetLegacySTH

func (state *State) GetLegacySTH(logInfo *loglist.Log) (*ct.SignedTreeHead, error)

func (*State) IsFirstRun

func (state *State) IsFirstRun() bool

func (*State) Lock

func (state *State) Lock() (bool, error)

func (*State) LockFilename

func (state *State) LockFilename() string

func (*State) LockingPid

func (state *State) LockingPid() int

func (*State) OpenLogState

func (state *State) OpenLogState(logInfo *loglist.Log) (*LogState, error)

func (*State) RemoveLegacySTH

func (state *State) RemoveLegacySTH(logInfo *loglist.Log) error

func (*State) SaveCert

func (state *State) SaveCert(isPrecert bool, certs [][]byte) (bool, string, error)

func (*State) Unlock

func (state *State) Unlock() error

func (*State) WriteOnceFile

func (state *State) WriteOnceFile() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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