Discover Packages
github.com/GGP1/kure
db
package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Nov 2, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
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, bucketName []byte) *bolt.DB
func XorName(name []byte) []byte
type Record
Get retrieves a record from the database, decrypts it and loads it into record.
GetBucketName returns the bucket name depending on the type of the record passed.
List returns a list of decrypted records from the database.
ListNames returns a list with all the records names.
Put encrypts and saves a record into the database.
Remove removes records from the database.
SetContext creates a bucket and its context to test the database operations.
XorName does the bitwise xor operation between a name and the authentication key.
Record is an interface that all kure objects implement.
Source Files
¶
Directories
¶
Package bucket contains the database buckets where records are stored.
Package bucket contains the database buckets where records are stored.
Click to show internal directories.
Click to hide internal directories.