ui

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCertificate

func CheckCertificate(cert *x509.Certificate, clockSkewDays int, logger hclog.Logger) bool

CheckCertificate check certificate expiration with skewed days

func MakeUILogger

func MakeUILogger(debug bool, noText bool, noColor bool) hclog.Logger

Types

type CertMonitorUI

type CertMonitorUI struct {
	Logger hclog.Logger
}

func NewCertMonitorUI

func NewCertMonitorUI(l hclog.Logger, debug bool, noText bool) *CertMonitorUI

NewCertMonitorUI create a new UI

func (*CertMonitorUI) PrintJWKCert

func (u *CertMonitorUI) PrintJWKCert(jwk *certmonitor.CertMonitorJWK, index int, skew int)

JWK format

func (*CertMonitorUI) PrintJWKCerts

func (u *CertMonitorUI) PrintJWKCerts(jwks []*certmonitor.CertMonitorJWK, alg string, kty string, kid string, index int, skew int)

PrintJWKCerts prints the List of JWKs and apply the alg, kid, index filter if needed

func (*CertMonitorUI) PrintX509Cert

func (u *CertMonitorUI) PrintX509Cert(cert *x509.Certificate, index int, skew int)

PrintX509Cert print the X509 cert

func (*CertMonitorUI) PrintX509CertList

func (u *CertMonitorUI) PrintX509CertList(certs []*x509.Certificate, skew int)

PrintX509Cert print the list of X509 certs

Jump to

Keyboard shortcuts

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