Expand description
Git object storage for Guts.
This crate provides content-addressed storage for git objects (blobs, trees, commits) and reference management.
§Features
memory- In-memory storage backend (default)rocksdb-backend- RocksDB persistent storage backendfull- All features enabled
§Storage Backends
The crate supports multiple storage backends:
ObjectStore- In-memory storage (fast but volatile)- [
RocksDbStorage] - Persistent storage using RocksDB (requiresrocksdb-backendfeature) CachedStorage- LRU cache wrapper for any storage backendHybridStorage- Hot/cold tiering with automatic migration
Structs§
- Cache
Config - Configuration for the cache layer.
- Cache
Metrics - Cache metrics for monitoring.
- Cache
Stats - Cache statistics.
- Cached
Storage - Cached storage wrapper.
- Compression
Stats - Compression statistics for monitoring.
- GitObject
- A git object (blob, tree, commit, or tag).
- Hybrid
Config - Configuration for hybrid storage.
- Hybrid
Stats Snapshot - Snapshot of hybrid storage statistics.
- Hybrid
Storage - Hybrid storage combining hot in-memory and cold persistent storage.
- Object
Id - A 20-byte SHA-1 object identifier.
- Object
Pool - A pool of reusable objects.
- Object
Store - Content-addressed object store.
- RefStore
- Thread-safe reference store.
- Repo
Store - Global repository store.
- Repository
- A git repository with objects and references.
- Storage
Stats - Storage statistics.
Enums§
- Compression
Level - Compression level configuration.
- Object
Type - Git object types.
- Reference
- A git reference (branch, tag, or symbolic ref).
- Storage
Error - Errors that can occur during storage operations.
Statics§
- IO_
BUFFER_ POOL - Global buffer pool for network I/O.
- PACK_
BUFFER_ POOL - Global buffer pool for pack file generation.
Traits§
- Object
Store Backend - Trait for object storage backends.
- Storage
Backend - High-level storage backend trait with lifecycle management.
Type Aliases§
- Pooled
Buffer - A pooled buffer specifically for byte vectors.
- Result
- Result type for storage operations.