certificatetransparency

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogOperators

func GetLogOperators() map[string][]string

func GetProcessedCerts

func GetProcessedCerts() int64

func GetProcessedPrecerts

func GetProcessedPrecerts() int64

Types

type CTMetrics

type CTMetrics map[string]OperatorMetric

CTMetrics is a map of operator names to a map of CT log urls to the number of certs processed by said log.

func GetCertMetrics

func GetCertMetrics() CTMetrics

type LogMetrics

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

LogMetrics is a struct that holds a map of metrics for each CT log grouped by operator. Metrics can be accessed and written concurrently through the Get, Set and Inc methods.

func (*LogMetrics) Get

func (m *LogMetrics) Get(operator, url string) int64

Get the metric for a given operator and ct url.

func (*LogMetrics) GetCTMetrics

func (m *LogMetrics) GetCTMetrics() CTMetrics

GetCTMetrics returns a copy of the internal metrics map.

func (*LogMetrics) Inc

func (m *LogMetrics) Inc(operator, url string)

Inc the metric for a given operator and ct url.

func (*LogMetrics) OperatorLogMapping

func (m *LogMetrics) OperatorLogMapping() OperatorLogs

OperatorLogMapping returns a map of operator names to a list of CT logs.

func (*LogMetrics) Set

func (m *LogMetrics) Set(operator, url string, value int64)

Set the metric for a given operator and ct url.

type OperatorLogs

type OperatorLogs map[string][]string

OperatorLogs is a map of operator names to a list of CT log urls, operated by said operator.

type OperatorMetric

type OperatorMetric map[string]int64

OperatorMetric is a map of CT log urls to the number of certs processed by said log.

type Watcher

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

Watcher describes a component that watches for new certificates in a CT log.

func NewWatcher added in v1.5.0

func NewWatcher(certChan chan certstream.Entry) *Watcher

NewWatcher creates a new Watcher.

func (*Watcher) Start

func (w *Watcher) Start()

Start starts the watcher. This method is blocking.

func (*Watcher) Stop

func (w *Watcher) Stop()

Stop stops the watcher.

Jump to

Keyboard shortcuts

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