Versions in this module Expand all Collapse all v1 v1.1.2 Mar 3, 2020 Changes in this version + const CannotFetchURL + const FixFailed + const LogPostFailed + const None + const ParseFailure + const VerifyFailed + type FixAndLog struct + func NewFixAndLog(ctx context.Context, fixerWorkerCount int, loggerWorkerCount int, ...) *FixAndLog + func (fl *FixAndLog) QueueAllCertsInChain(chain []*x509.Certificate) + func (fl *FixAndLog) QueueChain(chain []*x509.Certificate) + func (fl *FixAndLog) Wait() + type FixError struct + Bad []byte + Cert *x509.Certificate + Chain []*x509.Certificate + Error error + Type errorType + URL string + func Fix(cert *x509.Certificate, chain []*x509.Certificate, roots *x509.CertPool, ...) ([][]*x509.Certificate, []*FixError) + func UnmarshalJSON(b []byte) (*FixError, error) + func (e FixError) Equal(f *FixError) bool + func (e FixError) MarshalJSON() ([]byte, error) + func (e FixError) String() string + func (e FixError) TypeString() string + type Fixer struct + func NewFixer(workerCount int, chains chan<- []*x509.Certificate, errors chan<- *FixError, ...) *Fixer + func (f *Fixer) QueueChain(cert *x509.Certificate, chain []*x509.Certificate, roots *x509.CertPool) + func (f *Fixer) Wait() + type Limiter interface + Wait func() + type Logger struct + func NewLogger(ctx context.Context, workerCount int, errors chan<- *FixError, ...) *Logger + func (l *Logger) IsPosted(cert *x509.Certificate) bool + func (l *Logger) QueueChain(chain []*x509.Certificate) + func (l *Logger) RootCerts() *x509.CertPool + func (l *Logger) Wait()