certdb

package
v0.0.0-...-d123447 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, connStr string) error

Types

type AdditionalServiceInformation

type AdditionalServiceInformation struct {
	URI string `xml:"URI"`
}

type CertDb

type CertDb interface {
	SaveCert(ctx context.Context, cert *cert.ParsedCert) error
	CleanupInactive(ctx context.Context, now time.Time) (int64, error)
	Disconnect(ctx context.Context) error
}

type DigitalId

type DigitalId struct {
	X509Certificate string `xml:"X509Certificate"`
}

type Extension

type Extension struct {
	AdditionalServiceInformation AdditionalServiceInformation `xml:"AdditionalServiceInformation"`
}

type MongoCertDb

type MongoCertDb struct {
	Client   *mongo.Client
	Database *mongo.Database
}

func (*MongoCertDb) CleanupInactive

func (db *MongoCertDb) CleanupInactive(ctx context.Context, now time.Time) (int64, error)

func (*MongoCertDb) Disconnect

func (db *MongoCertDb) Disconnect(ctx context.Context) error

func (*MongoCertDb) SaveCert

func (db *MongoCertDb) SaveCert(ctx context.Context, crt *cert.ParsedCert) error

type RawCert

type RawCert struct {
	Pem  string
	Type models.CertUsage
}

type ServiceDigitalIdentity

type ServiceDigitalIdentity struct {
	DigitalIds []DigitalId `xml:"DigitalId"`
}

type ServiceInformation

type ServiceInformation struct {
	ServiceStatus                string                       `xml:"ServiceStatus"`
	ServiceTypeIdentifier        string                       `xml:"ServiceTypeIdentifier"`
	ServiceInformationExtensions ServiceInformationExtensions `xml:"ServiceInformationExtensions"`
	ServiceDigitalIdentity       ServiceDigitalIdentity       `xml:"ServiceDigitalIdentity"`
}

type ServiceInformationExtensions

type ServiceInformationExtensions struct {
	Extensions []Extension `xml:"Extension"`
}

type SqliteCertDb

type SqliteCertDb struct {
	DB *sql.DB
}

func (*SqliteCertDb) CleanupInactive

func (db *SqliteCertDb) CleanupInactive(ctx context.Context, now time.Time) (int64, error)

func (*SqliteCertDb) Disconnect

func (db *SqliteCertDb) Disconnect(ctx context.Context) error

func (*SqliteCertDb) SaveCert

func (db *SqliteCertDb) SaveCert(ctx context.Context, crt *cert.ParsedCert) error

type TSPService

type TSPService struct {
	ServiceInformation ServiceInformation `xml:"ServiceInformation"`
}

type TrustServiceProvider

type TrustServiceProvider struct {
	TSPServices []TSPService `xml:"TSPServices>TSPService"`
}

type TrustServiceStatusList

type TrustServiceStatusList struct {
	TrustServiceProviders []TrustServiceProvider `xml:"TrustServiceProviderList>TrustServiceProvider"`
}

Jump to

Keyboard shortcuts

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