Versions in this module Expand all Collapse all v1 v1.3.2 May 31, 2019 Changes in this version + type Accessor struct + func NewAccessor(db *sqlx.DB) *Accessor + func (d *Accessor) GetCertificate(serial, aki string) (crs []certdb.CertificateRecord, err error) + func (d *Accessor) GetOCSP(serial, aki string) (ors []certdb.OCSPRecord, err error) + func (d *Accessor) GetRevokedAndUnexpiredCertificates() (crs []certdb.CertificateRecord, err error) + func (d *Accessor) GetRevokedAndUnexpiredCertificatesByLabel(label string) (crs []certdb.CertificateRecord, err error) + func (d *Accessor) GetUnexpiredCertificates() (crs []certdb.CertificateRecord, err error) + func (d *Accessor) GetUnexpiredOCSPs() (ors []certdb.OCSPRecord, err error) + func (d *Accessor) InsertCertificate(cr certdb.CertificateRecord) error + func (d *Accessor) InsertOCSP(rr certdb.OCSPRecord) error + func (d *Accessor) RevokeCertificate(serial, aki string, reasonCode int) error + func (d *Accessor) SetDB(db *sqlx.DB) + func (d *Accessor) UpdateOCSP(serial, aki, body string, expiry time.Time) error + func (d *Accessor) UpsertOCSP(serial, aki, body string, expiry time.Time) error