dbutil

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CardBucket  = []byte("kure_card")
	EntryBucket = []byte("kure_entry")
	FileBucket  = []byte("kure_file")
	TOTPBucket  = []byte("kure_totp")
)

Database bucket

Functions

func ListNames

func ListNames(db *bolt.DB, bucketName []byte) ([]string, error)

ListNames returns a list with all the records names.

func Remove

func Remove(db *bolt.DB, bucketName []byte, name string) error

Remove removes a record from the database.

func SetContext

func SetContext(t testing.TB, path string, bucketName []byte) *bolt.DB

SetContext creates a bucket and its context to test the database operations.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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