Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRLConf ¶
type CRLConf struct {
URL string `yaml:"url"`
}
CRLConf is exported to receive YAML configuration
func (CRLConf) Instrument ¶
func (c CRLConf) Instrument() map[string]prometheus.Collector
Instrument constructs any `prometheus.Collector` objects the `CRLProbe` 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 (CRLConf) MakeProber ¶
MakeProber constructs a `CRLProbe` object from the contents of the bound `CRLConf` object. If the `CRLConf` cannot be validated, an error appropriate for end-user consumption is returned instead.
func (CRLConf) UnmarshalSettings ¶
func (c CRLConf) UnmarshalSettings(settings []byte) (probers.Configurer, error)
UnmarshalSettings constructs a CRLConf object from YAML as bytes.
type CRLProbe ¶
type CRLProbe struct {
// contains filtered or unexported fields
}
CRLProbe is the exported 'Prober' object for monitors configured to monitor CRL availability & characteristics.