package
0.28.2
Repository: https://github.com/smallstep/certificates.git
Documentation: pkg.go.dev

# Functions

FromContext returns the current authority database from the given context.
MustFromContext returns the current database from the given context.
New returns a new database client that implements the AuthDB interface.
NewContext adds the given authority database to the context.

# Variables

ErrAlreadyExists can be returned if the DB attempts to set a key that has been previously set.
ErrNotImplemented is an error returned when an operation is Not Implemented.

# Structs

CertificateData is the JSON representation of the data stored in x509_certs_data table.
CertificateRevocationListInfo contains a CRL in DER format and associated metadata to allow a decision on whether to regenerate the CRL or not easier.
Config represents the JSON attributes used for configuring a step-ca DB.
DB is a wrapper over the nosql.DB interface.
MockAuthDB mocks the AuthDB interface.
MockNoSQLDB //.
ProvisionerData is the JSON representation of the provisioner stored in the x509_certs_data table.
RevokedCertificateInfo contains information regarding the certificate revocation action.
SimpleDB is a barebones implementation of the DB interface.

# Interfaces

AuthDB is an interface over an Authority DB client that implements a nosql.DB interface.
CertificateRevocationListDB is an interface to indicate whether the DB supports CRL generation.
CertificateStorer is an extension of AuthDB that allows to store certificates.