Versions in this module Expand all Collapse all v0 v0.1.0 Feb 13, 2023 Changes in this version + const MetricsCaCpuMem + const MetricsCaRevoke + const MetricsCaSign + const MetricsLabelIp + const MetricsOcspResponses + const MetricsOverall + const MetricsUpperCaInfo + const MetricsUpperCaTypeInfo + func GetHostFromUrl(addr string) string + func GetLocalIpLabel() string + type CaMetadata struct + O string + OU string + SpiffeId *spiffe.IDGIdentity + func GetCaMetadataFromX509Cert(cert *x509.Certificate) CaMetadata + type Certificate struct + AKI string + Issuer certinfo.Name + NotAfter time.Time + NotBefore time.Time + RawPEM string + SANs []string + SKI string + SerialNumber string + SignatureAlgorithm string + Subject certinfo.Name + func ParseCertificate(cert *x509.Certificate) *Certificate + type FullCert struct + CertInfo *Certificate + CertStr string + RawCert *x509.Certificate + func GetFullCertByModelCert(row *model.Certificates) (*FullCert, error) + func GetFullCertByX509Cert(cert *x509.Certificate) *FullCert + type SampleCert struct + AKI string + CN string + Expiry time.Time + IssuedAt time.Time + NotBefore time.Time + O string + OU string + RevokedAt time.Time + Role string + SN string + Status string + UniqueId string