Expand description
Cloud Storage Backends (#72)
Artifact storage abstraction supporting local, S3, Azure, and GCS backends.
§Toyota Principle: Heijunka (平準化)
Level workloads across storage tiers - artifacts are stored content-addressably to enable efficient caching and deduplication across storage backends.
§Example
use entrenar::storage::cloud::{ArtifactBackend, LocalBackend};
use std::path::PathBuf;
fn example() -> Result<(), Box<dyn std::error::Error>> {
let backend = LocalBackend::new(PathBuf::from("/tmp/artifacts"));
let hash = backend.put("model.safetensors", b"test data")?;
let data = backend.get(&hash)?;
Ok(())
}Structs§
- Artifact
Metadata - Artifact metadata
- Azure
Config - Azure Blob Storage configuration
- GCSConfig
- Google Cloud Storage configuration
- InMemory
Backend - In-memory artifact backend for testing
- Local
Backend - Local filesystem artifact backend
- Mock
S3Backend - Mock S3 backend for testing (simulates S3 behavior in memory)
- S3Config
- S3 backend configuration
Enums§
- Backend
Config - Unified artifact backend configuration
- Cloud
Error - Cloud storage errors
Traits§
- Artifact
Backend - Trait for artifact storage backends
Functions§
- compute_
hash - Compute SHA-256 hash of data
Type Aliases§
- Result
- Result type for cloud operations