db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 8 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 {
	// contains filtered or unexported fields
}

func New

func New(log logr.Logger, dir string) (db *DB, err error)

func NewPlain

func NewPlain(log logr.Logger, dir string) (db *DB, err error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) CreateKey

func (db *DB) CreateKey(name, existing string, size int, enc core.Encoding, t core.Type) (k core.Key, err error)

func (*DB) DeleteKey

func (db *DB) DeleteKey(id string) error

func (*DB) Dump

func (db *DB) Dump(w io.Writer) error

func (*DB) GetKey

func (db *DB) GetKey(id string) (k core.Key, err error)

func (*DB) GetKeyWithSecret

func (db *DB) GetKeyWithSecret(id string) (k core.Key, err error)

func (*DB) GetKeys

func (db *DB) GetKeys() (keys core.Keys, err error)

func (*DB) Restore

func (db *DB) Restore(r io.Reader) error

func (*DB) RunMigrations

func (db *DB) RunMigrations() (err error)

Jump to

Keyboard shortcuts

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