Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CertKey ¶
type CertKey struct {
SerialNumber []byte `dynamodbav:"SN"`
}
CertKey is the DynamoDB primary key, which is the serial number.
func NewCertKey ¶
func (CertKey) SerialString ¶
SerialString returns a consistent string representation of a SerialNumber It is intended for use as a map key, and is equivalent to boulder's SerialToString
type CertMetadata ¶
CertMetadata is the entire set of attributes stored in Dynamo. That is the CertKey plus the revocation time today.
type Database ¶
type Database struct { Table string Dynamo ddb }
func (*Database) AddCert ¶
func (db *Database) AddCert(ctx context.Context, certificate *x509.Certificate, revocationTime time.Time) error
AddCert inserts the metadata for monitoring
func (*Database) DeleteSerials ¶
DeleteSerials takes a list of serials that we've seen in the CRL and thus no longer need to keep an eye out for.
func (*Database) GetAllCerts ¶
GetAllCerts returns all the certificates in the DynamoDB. This set is intended to be much smaller than the set of certificates in a CRL, so it's more efficient to just load the entire set instead of conditional querying. The map key is the serial's CertKey.SerialString. TODO: This could be more efficient if it was a query over issuer or shard TODO: However, the dataset is small enough to not matter much.