Documentation
¶
Index ¶
- Variables
- type DB
- func (db DB) Close() error
- func (db DB) Get(ctx context.Context, chain []*x509.Certificate) (_ *extensions.Revocation, err error)
- func (db DB) List(ctx context.Context) (revs []*extensions.Revocation, err error)
- func (db DB) Put(ctx context.Context, chain []*x509.Certificate, revExt pkix.Extension) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is a pkg/revocation error Error = errs.Class("revocation error") )
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
KVStore storage.KeyValueStore
}
DB stores the most recently seen revocation for each nodeID (i.e. nodeID [CA certificate's public key hash] is the key, values is the most recently seen revocation).
func NewDBFromCfg ¶
NewDBFromCfg is a convenience method to create a revocation DB directly from a config. If the revocation extension option is not set, it returns a nil db with no error.
func (DB) Get ¶
func (db DB) Get(ctx context.Context, chain []*x509.Certificate) (_ *extensions.Revocation, err error)
Get attempts to retrieve the most recent revocation for the given cert chain (the key used in the underlying database is the nodeID of the certificate chain).
func (DB) List ¶
func (db DB) List(ctx context.Context) (revs []*extensions.Revocation, err error)
List lists all revocations in the store
Click to show internal directories.
Click to hide internal directories.