Documentation
¶
Overview ¶
Package shadowbox provides a single-file file storage library for Go.
ShadowBox stores arbitrary files inside one portable database file with fast in-memory indexing and an optional RAM cache.
Two database types are available:
- shb — standard ShadowBox (import "github.com/hdmain/shadowbox/shb")
- sshb — encrypted Secure ShadowBox (import "github.com/hdmain/shadowbox/sshb")
The box package exposes the shared storage engine used by both variants.
Index ¶
Constants ¶
View Source
const ( // TypeSHB is the standard ShadowBox format. TypeSHB = format.TypeSHB // TypeSSHB is the encrypted Secure ShadowBox format. TypeSSHB = format.TypeSSHB )
View Source
const Version = "0.1.0"
Version is the current library version.
Variables ¶
View Source
var ( ErrNotFound = box.ErrNotFound ErrClosed = box.ErrClosed ErrReadOnly = box.ErrReadOnly ErrIntegrity = box.ErrIntegrity ErrBlockTooLarge = box.ErrBlockTooLarge ErrPasswordRequired = box.ErrPasswordRequired ErrPasswordNotExpected = box.ErrPasswordNotExpected ErrInvalidPassword = box.ErrInvalidPassword )
Re-exported sentinel errors shared across all packages.
View Source
var ErrInvalidKey = sbscrypto.ErrInvalidKey
ErrInvalidKey is returned when decryption fails due to a wrong key.
Functions ¶
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
shadowbox
command
|
|
|
internal
|
|
|
Package shb implements ShadowBox (SHB) — a high-performance single-file database for storing arbitrary files with an in-memory index and RAM cache.
|
Package shb implements ShadowBox (SHB) — a high-performance single-file database for storing arbitrary files with an in-memory index and RAM cache. |
|
Package sshb implements Secure ShadowBox (SSHB) — an encrypted single-file database with Argon2id key derivation and AES-256-GCM encryption.
|
Package sshb implements Secure ShadowBox (SSHB) — an encrypted single-file database with Argon2id key derivation and AES-256-GCM encryption. |
Click to show internal directories.
Click to hide internal directories.