Versions in this module Expand all Collapse all v1 v1.1.0 May 9, 2023 Changes in this version + const DefaultDownloadInterval + type CertificateDownloader struct + func NewCertificateDownloader(ctx context.Context, mchID string, privateKey *rsa.PrivateKey, ...) (*CertificateDownloader, error) + func NewCertificateDownloaderWithClient(ctx context.Context, client *core.Client, mchAPIv3Key string) (*CertificateDownloader, error) + func (d *CertificateDownloader) DownloadCertificates(ctx context.Context) error + func (d *CertificateDownloader) Export(_ context.Context, serialNumber string) (string, bool) + func (d *CertificateDownloader) ExportAll(_ context.Context) map[string]string + func (d *CertificateDownloader) Get(ctx context.Context, serialNumber string) (*x509.Certificate, bool) + func (d *CertificateDownloader) GetAll(ctx context.Context) map[string]*x509.Certificate + func (d *CertificateDownloader) GetNewestSerial(ctx context.Context) string + type CertificateDownloaderMgr struct + func MgrInstance() *CertificateDownloaderMgr + func NewCertificateDownloaderMgr(ctx context.Context) *CertificateDownloaderMgr + func NewCertificateDownloaderMgrWithInterval(ctx context.Context, downloadInterval time.Duration) *CertificateDownloaderMgr + func (mgr *CertificateDownloaderMgr) DownloadCertificates(ctx context.Context) + func (mgr *CertificateDownloaderMgr) ExportCertificate(ctx context.Context, mchID, serialNumber string) (string, bool) + func (mgr *CertificateDownloaderMgr) ExportCertificateMap(ctx context.Context, mchID string) map[string]string + func (mgr *CertificateDownloaderMgr) GetCertificate(ctx context.Context, mchID, serialNumber string) (*x509.Certificate, bool) + func (mgr *CertificateDownloaderMgr) GetCertificateMap(ctx context.Context, mchID string) map[string]*x509.Certificate + func (mgr *CertificateDownloaderMgr) GetCertificateVisitor(mchID string) core.CertificateVisitor + func (mgr *CertificateDownloaderMgr) GetNewestCertificateSerial(ctx context.Context, mchID string) string + func (mgr *CertificateDownloaderMgr) HasDownloader(_ context.Context, mchID string) bool + func (mgr *CertificateDownloaderMgr) RegisterDownloaderWithClient(ctx context.Context, client *core.Client, mchID string, mchAPIv3Key string) error + func (mgr *CertificateDownloaderMgr) RegisterDownloaderWithPrivateKey(ctx context.Context, privateKey *rsa.PrivateKey, certificateSerialNo string, ...) error + func (mgr *CertificateDownloaderMgr) RemoveDownloader(_ context.Context, mchID string) *CertificateDownloader + func (mgr *CertificateDownloaderMgr) Stop()