Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteKey(btree *kayveedb.BTree, key string) error
- func Execute()
- func InitializeKeys() error
- func InsertKey(btree *kayveedb.BTree, key, value string) error
- func LoadBtree() (*kayveedb.BTree, error)
- func LoadConfig()
- func ReadKey(btree *kayveedb.BTree, key string) (string, error)
- func SnapshotBtree(btree *kayveedb.BTree) error
- func UpdateKey(btree *kayveedb.BTree, key, value string) error
- func ValidateEncryptionParams() error
Constants ¶
View Source
const Version string = "v1.0.5"
Variables ¶
View Source
var ( Snapshot = "path/to/snapshot" LogPath = "path/to/log" HmacKey = []byte("32-byte-hmac-key") EncryptionKey = []byte("32-byte-long-encryption-key") Nonce = []byte("24-byte-nonce") KeySize = 32 // XChaCha20 key size NonceSize = 24 // XChaCha20 nonce size CacheSize = 100 // Set a default cache size for B-tree nodes )
Functions ¶
func InitializeKeys ¶ added in v1.0.5
func InitializeKeys() error
InitializeKeys initializes the keys from environment variables or errors out.
func LoadConfig ¶ added in v1.0.5
func LoadConfig()
LoadConfig loads the config file and environment variables.
func SnapshotBtree ¶ added in v1.0.5
SnapshotBtree takes a snapshot of the current B-tree state.
func ValidateEncryptionParams ¶ added in v1.0.5
func ValidateEncryptionParams() error
ValidateEncryptionParams validates the encryption key and nonce.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.