Documentation ¶
Index ¶
- func DefaultConfigDir(programName string) string
- func DefaultStateDir(programName string) string
- func LogEntry(info *certspotter.EntryInfo)
- func Main(statePath string, processCallback certspotter.ProcessCallback) int
- type LogState
- func (logState *LogState) GetTree() (*certspotter.CollapsedMerkleTree, error)
- func (logState *LogState) GetUnverifiedSTHs() ([]*ct.SignedTreeHead, error)
- func (logState *LogState) GetVerifiedSTH() (*ct.SignedTreeHead, error)
- func (logState *LogState) RemoveUnverifiedSTH(sth *ct.SignedTreeHead) error
- func (logState *LogState) StoreTree(tree *certspotter.CollapsedMerkleTree) error
- func (logState *LogState) StoreUnverifiedSTH(sth *ct.SignedTreeHead) error
- func (logState *LogState) StoreVerifiedSTH(sth *ct.SignedTreeHead) error
- func (logState *LogState) UnverifiedSTHFilename(sth *ct.SignedTreeHead) string
- func (logState *LogState) VerifiedSTHFilename() string
- type State
- func (state *State) GetLegacySTH(logInfo *certspotter.LogInfo) (*ct.SignedTreeHead, error)
- func (state *State) IsFirstRun() bool
- func (state *State) Lock() (bool, error)
- func (state *State) LockFilename() string
- func (state *State) LockingPid() int
- func (state *State) OpenLogState(logInfo *certspotter.LogInfo) (*LogState, error)
- func (state *State) RemoveLegacySTH(logInfo *certspotter.LogInfo) error
- func (state *State) SaveCert(isPrecert bool, certs [][]byte) (bool, string, error)
- func (state *State) Unlock() error
- func (state *State) WriteOnceFile() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigDir ¶
func DefaultStateDir ¶
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 (*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 ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) GetLegacySTH ¶
func (state *State) GetLegacySTH(logInfo *certspotter.LogInfo) (*ct.SignedTreeHead, error)
func (*State) IsFirstRun ¶
func (*State) LockFilename ¶
func (*State) LockingPid ¶
func (*State) OpenLogState ¶
func (state *State) OpenLogState(logInfo *certspotter.LogInfo) (*LogState, error)
func (*State) RemoveLegacySTH ¶
func (state *State) RemoveLegacySTH(logInfo *certspotter.LogInfo) error
func (*State) WriteOnceFile ¶
Click to show internal directories.
Click to hide internal directories.