Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(initPrometheusRegistry), )
Functions ¶
func NewCertificateExpirationCollector ¶
func NewCertificateExpirationCollector(opts ...Option) prometheus.Collector
Types ¶
type CertificateGetter ¶
type CertificateGetter func(ks keystore.KeyStore) []*x509.Certificate
func WithFirstEntry ¶
func WithFirstEntry() CertificateGetter
func WithKeyID ¶
func WithKeyID(keyID string) CertificateGetter
type Option ¶
type Option func(*certificateExpirationCollector)
func WithServiceCertificates ¶
func WithServiceCertificates(serviceName string, certs []*x509.Certificate) Option
func WithServiceKeyStore ¶
func WithServiceKeyStore(serviceName string, ks keystore.KeyStore, certGetter CertificateGetter) Option
Click to show internal directories.
Click to hide internal directories.