package
0.0.0-20250310174119-1887823ffb30
Repository: https://github.com/cloudflare/cfssl_trust.git
Documentation: pkg.go.dev

# Functions

AllCertificates loads all the certificates in the database.
AllReleases returns the list of all releases, sorted in reverse chronological order.
CollectRelease grabs all the certificates in a release, ordering them by the oldest.
Ensure ensures the value is present in the database.
FetchRelease looks for the specified release.
Finalize finishes a transaction, committing it if needed or rolling back on error.
FindCertificateBySKI returns all the certificates with the given SKI.
LatestRelease returns the latest release.
NewAIA populates an AIA structure from a Certificate.
NewCertificate creates a Certificate from a crypto/x509 Certificate structure.
NewCertificateRelease is a convenience function for building a CertificateRelease structure.
NewRelease verifies the bundle is valid, and creates a new Release with the current time stamp.

# Structs

AIA models the aia table.
Certificate models the certificate table.
A CertificateRelease pairs a Certificate and Release to enable adding certificates to the relevant release tables.
Release models the root_releases and intermediate_releases tables.
Revocation models the revocations table.

# Interfaces

Table provides an interface for mapping a struct to a table in the database.