Documentation
¶
Overview ¶
Package schema has the PostgreSQL store's tables and queries, and binds the certificate types in cert/cert to them. Each type here is one of cert/cert's, so converts to and from it, such as (*Certificate)(&c).
Index ¶
Constants ¶
const ( // Maximum number of subjects to return in a list query SubjectListLimit = 100 // Maximum number of certificates to return in a list query CertListLimit = 100 )
const LockName = `SELECT pg_advisory_xact_lock(hashtext(${'schema'} || '.' || @name))`
LockName serializes creating certificates with a name, bound as name, until the transaction ends. It's run with Exec, which doesn't look up the named queries.
const (
SchemaName = "cert"
)
Variables ¶
var Objects string
var Queries string
Functions ¶
This section is empty.
Types ¶
type CertWithPrivateKey ¶
type CertWithPrivateKey cert.CertWithPrivateKey
CertWithPrivateKey inserts a certificate with its private key, and reads one
type Certificate ¶ added in v0.0.15
type Certificate cert.Certificate
Certificate reads a certificate
type PrivateCertKey ¶
PrivateCertKey selects a certificate by its name and serial, with its private key
type PrivateCertName ¶
type PrivateCertName string
PrivateCertName selects the latest certificate with a name, with its private key
type SubjectListRequest ¶
type SubjectListRequest cert.SubjectListRequest
SubjectListRequest lists subjects
type SubjectLock ¶ added in v0.0.15
type SubjectLock uint64
SubjectLock locks a subject, until the transaction ends