Versions in this module Expand all Collapse all v0 v0.0.2 Dec 9, 2021 v0.0.1 Oct 19, 2021 Changes in this version + const ConfigTopicServerCert + type Certificate struct + CertFileName string + CertFilePath string + CertName string + Description string + ExpiredDate string + IsDefault bool + KeyFileName string + KeyFilePath string + Products []*ibasic.Product + type CertificateFilter struct + CertName *string + IsDefault *bool + type CertificateManager struct + func NewCertificateManager(txn itxn.TxnStorager, storager CertificateStorager, ...) *CertificateManager + func (pm *CertificateManager) CreateCertificate(ctx context.Context, param *CertificateParam) (err error) + func (pm *CertificateManager) DeleteCertificate(ctx context.Context, certificate *Certificate) (err error) + func (pm *CertificateManager) ExportServerCert(ctx context.Context, lastVersion string) (*ServerCertConf, error) + func (pm *CertificateManager) FetchCertificates(ctx context.Context, param *CertificateFilter) (list []*Certificate, err error) + func (pm *CertificateManager) UpdateAsDefaultCertificate(ctx context.Context, cert *Certificate) (err error) + type CertificateParam struct + CertFileContent *string + CertFileName *string + CertFilePath *string + CertName *string + Description *string + ExpiredDate *string + IsDefault *bool + KeyFileContent *string + KeyFileName *string + KeyFilePath *string + type CertificateStorager interface + CreateCertificate func(context.Context, *CertificateParam) error + DeleteCertificate func(context.Context, *Certificate) error + FetchCertificates func(context.Context, *CertificateFilter) ([]*Certificate, error) + UpdateCertificate func(context.Context, *Certificate, *CertificateParam) error + type ServerCertConf struct + func (scc *ServerCertConf) UpdateVersion(version string) error