probers

package
v0.20260713.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIAConf

type AIAConf struct {
	URL              string `yaml:"url"`
	ExpectCommonName string `yaml:"expectCommonName"`
}

AIAConf is exported to receive YAML configuration

func (AIAConf) Instrument

func (c AIAConf) Instrument() map[string]prometheus.Collector

Instrument constructs any `prometheus.Collector` objects the `AIAProbe` will need to report its own metrics. A map is returned containing the constructed objects, indexed by the name of the prometheus metric. If no objects were constructed, nil is returned.

func (AIAConf) Kind

func (c AIAConf) Kind() string

Kind returns a name that uniquely identifies the `Kind` of `Configurer`.

func (AIAConf) MakeProber

func (c AIAConf) MakeProber(collectors map[string]prometheus.Collector) (probers.Prober, error)

MakeProber constructs a `AIAProbe` object from the contents of the bound `AIAConf` object. If the `AIAConf` cannot be validated, an error appropriate for end-user consumption is returned instead.

func (AIAConf) UnmarshalSettings

func (c AIAConf) UnmarshalSettings(settings []byte) (probers.Configurer, error)

UnmarshalSettings constructs a AIAConf object from YAML as bytes.

type AIAProbe

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

AIAProbe is the exported 'Prober' object for monitors configured to monitor AIA certificate availability & characteristics.

func (AIAProbe) Kind

func (p AIAProbe) Kind() string

Kind returns a name that uniquely identifies the `Kind` of `Prober`.

func (AIAProbe) Name

func (p AIAProbe) Name() string

Name returns a string that uniquely identifies the monitor.

func (AIAProbe) Probe

func (p AIAProbe) Probe(ctx context.Context) error

Probe requests the configured AIA certificate and publishes metrics about it if found.

Jump to

Keyboard shortcuts

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