1234567891011121314151617181920212223242526272829303132 |
- package core
- import (
- "context"
- "crypto/x509"
- )
- type CertificateGetter interface {
-
- Get(ctx context.Context, serialNumber string) (*x509.Certificate, bool)
-
- GetAll(ctx context.Context) map[string]*x509.Certificate
-
- GetNewestSerial(ctx context.Context) string
- }
- type CertificateExporter interface {
-
- Export(ctx context.Context, serialNumber string) (string, bool)
-
- ExportAll(ctx context.Context) map[string]string
- }
- type CertificateVisitor interface {
- CertificateGetter
- CertificateExporter
- }
|