Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrDB is simple error to propagate up the call stack ErrDB = errors.New("database error") )
Functions ¶
This section is empty.
Types ¶
type YKAuth ¶
YKAuth is a wrapper around a database client and a logger It handles the communication with the YKAuth database
type YKKSM ¶
YKKSM is a wrapper around a database client and a logger It handles the communication with the YKKSM database
type YKVal ¶
YKVal is a wrapper around a database client and a logger It handles the communication with the YKVal database
func (*YKVal) LoadClient ¶
LoadClient implements the ClientLoader interface. It retrieves a client by its id from the database and returns it.
func (*YKVal) YubikeyLoad ¶
YubikeyLoad implements the YubikeyLoader interface. It retrieves yubikey from the underlying database and returns it.
func (*YKVal) YubikeyProduce ¶
YubikeyProduce implements the YubikeyProducer interface. It creates a new yubikey, save it and then return it to the caller