watcher

package
v0.0.0-...-9a1f819 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages CT log watchers

func (*Manager) GetStats

func (m *Manager) GetStats() map[string]models.WorkerStats

GetStats returns statistics for all watchers

func (*Manager) Start

func (m *Manager) Start(ctx context.Context) error

Start starts all CT log watchers

type ManagerInterface

type ManagerInterface interface {
	Start(ctx context.Context) error
	GetStats() map[string]models.WorkerStats
}

func NewManager

func NewManager(config *configs.Config, logger *zap.Logger, clientManager client.ManagerInterface, certBuffer buffer.CertificateBufferInterface) ManagerInterface

NewManager creates a new watcher manager

type Watcher

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

Watcher watches a single CT log for new certificates

func (*Watcher) GetStats

func (w *Watcher) GetStats() models.WorkerStats

GetStats returns watcher statistics

func (*Watcher) Start

func (w *Watcher) Start(ctx context.Context)

Start starts watching the CT log

type WatcherInterface

type WatcherInterface interface {
	// Start starts the watcher
	Start(ctx context.Context)
	// GetStats returns watcher statistics
	GetStats() models.WorkerStats
}

func NewWatcher

func NewWatcher(config *configs.Config, logger *zap.Logger, log models.CTLog, operatorName string,
	clientManager client.ManagerInterface, certBuffer buffer.CertificateBufferInterface) WatcherInterface

NewWatcher creates a new CT log watcher

Jump to

Keyboard shortcuts

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