Documentation ¶
Index ¶
- Variables
- func Get(db *bolt.DB, name string, record Record) error
- func GetBucketName(r Record) []byte
- func List[R Record](db *bolt.DB, record R) ([]R, error)
- func ListNames(db *bolt.DB, bucketName []byte) ([]string, error)
- func Put(b *bolt.Bucket, record Record) error
- func Remove(db *bolt.DB, bucketName []byte, names ...string) error
- func SetContext(t testing.TB, path string, bucketName []byte) *bolt.DB
- type Record
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 Get ¶ added in v0.6.0
Get retrieves a record from the database, decrypts it and loads it into record.
func GetBucketName ¶ added in v0.7.0
GetBucketName returns the bucket name depending on the type of the record passed.
Types ¶
Click to show internal directories.
Click to hide internal directories.