db

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sql.DB
	// contains filtered or unexported fields
}

func NewDB

func NewDB(driverName string, dataSourceName string, logger log.Logger) (*DB, error)

func (*DB) Delete

func (db *DB) Delete(dn string, serial string) error

func (*DB) GetCRTs

func (db *DB) GetCRTs() (crypto.CRTs, error)

func (*DB) InsertCRT

func (db *DB) InsertCRT(crt crypto.CRT) error

func (*DB) RevokeCRT

func (db *DB) RevokeCRT(dn string, serial string) error

func (*DB) SelectCRT

func (db *DB) SelectCRT(dn string, serial string) (crypto.CRT, error)

type DBSCEPStore

type DBSCEPStore interface {
	InsertCRT(crypto.CRT) error
	SelectCRT(dn string, serial string) (crypto.CRT, error)
	GetCRTs() (crypto.CRTs, error)
	RevokeCRT(dn string, serial string) error
	Delete(dn string, serial string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL