Skip to main content

Crate gpp_core

Crate gpp_core 

Source
Expand description

gpp-core — content-addressed, encrypted-capable object store.

This is layer 1 (Storage) of gpp. Phase 0 implements the unencrypted, zstd-compressed object store with Blob and Tree objects, atomic idempotent writes, and hash-verified reads.

See docs/ARCHITECTURE.md and docs/DATA_MODEL.md.

Modules§

wire_flags
Frame flag bits.

Structs§

Blob
Raw file content. Equivalent to Git’s blob.
ObjectStore
Handle to a repository’s object store.
Tree
A directory listing. Each entry points to a Blob or another Tree.
TreeEntry
One entry in a Tree.

Enums§

EntryKind
Kind of filesystem entry a TreeEntry points at.
Error
Errors produced by the gpp-core storage layer.
ObjectType
On-the-wire object type code (stored in the frame header).

Constants§

HASH_LEN
Length of a BLAKE3 digest in bytes.
HASH_STR_LEN
Length of the base32 textual form of a [Hash].
SHORT_LEN
Number of leading characters used for the short display form.
WIRE_VERSION

Traits§

Object
A storable, content-addressed object.

Functions§

flatten_tree
Recursively flatten a stored Tree into path -> blob hash (files and symlinks; directories are descended into).

Type Aliases§

Hash
Public alias — most call sites just want Hash.
Result
Convenience alias used throughout gpp-core.