Documentation ¶
Index ¶
- Variables
- type Certificate
- type CertificateRepo
- func (a *CertificateRepo) GetC(ctx context.Context, key string) ([]byte, error)
- func (a *CertificateRepo) GetS(ctx context.Context, id string) (*schema.Certificate, error)
- func (a *CertificateRepo) PutC(ctx context.Context, key string, value string) error
- func (a *CertificateRepo) PutS(ctx context.Context, item schema.Certificate) (*schema.IDResult, error)
- type Certificates
- type SchemaCertificate
Constants ¶
This section is empty.
Variables ¶
View Source
var CertificateSet = wire.NewSet(wire.Struct(new(CertificateRepo), "*"))
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { SerialNumber string `json:"serial_number"` AuthorityKeyIdentifier string `json:"authority_key_identifier"` CertPem string `json:"cert_pem"` NotBefore time.Time `json:"not_before"` NotAfter time.Time `json:"not_after"` MetaData map[string]interface{} `json:"meta_data"` }
func (Certificate) ToSchemaCertificate ¶
func (a Certificate) ToSchemaCertificate() *schema.Certificate
type CertificateRepo ¶
type CertificateRepo struct { DB storage.ExecCloser Crdt *kv.CRDTKeyValueDB }
func (*CertificateRepo) GetS ¶
func (a *CertificateRepo) GetS(ctx context.Context, id string) (*schema.Certificate, error)
func (*CertificateRepo) PutS ¶
func (a *CertificateRepo) PutS(ctx context.Context, item schema.Certificate) (*schema.IDResult, error)
type Certificates ¶
type Certificates []*Certificate
func (Certificates) ToSchemaCertificates ¶
func (a Certificates) ToSchemaCertificates() []*schema.Certificate
type SchemaCertificate ¶
type SchemaCertificate schema.Certificate
func (SchemaCertificate) ToCertificate ¶
func (a SchemaCertificate) ToCertificate() *Certificate
Click to show internal directories.
Click to hide internal directories.