certificate

package
v0.0.0-...-1e55c69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) GetC

func (a *CertificateRepo) GetC(ctx context.Context, key string) ([]byte, error)

func (*CertificateRepo) GetS

func (*CertificateRepo) PutC

func (a *CertificateRepo) PutC(ctx context.Context, key string, value string) error

func (*CertificateRepo) PutS

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL