Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotExist = errors.New("issuedb: Entry does not exist.")
Functions ¶
Types ¶
type Entry ¶
type Entry struct { SerialNumber int64 `json:"sn"` State State `json:"state"` CertificatePEM string `json:"certPem"` }
func (*Entry) ParseCertificate ¶ added in v0.2.3
func (e *Entry) ParseCertificate() (*x509.Certificate, error)
type IssueDB ¶
type IssueDB struct {
// contains filtered or unexported fields
}
func (*IssueDB) AllocateSerialNumber ¶
func (*IssueDB) Initialize ¶
type State ¶
type State int
const ( IssueInProgress State = iota ActiveCertificate MaxState = ActiveCertificate )
func (State) MarshalJSON ¶
func (*State) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.