Skip to main content

Crate snapdir_stores

Crate snapdir_stores 

Source
Expand description

snapdir stores library.

Storage backends for snapdir snapshots plus the store-routing and external-store shim that implement snapdir’s store dispatch:

  • FileStore — the in-process file:// backend.
  • S3Store — the native AWS-SDK s3:// backend (ring rustls).
  • B2Store — the native AWS-SDK b2:// backend, pointed at Backblaze B2’s S3-compatible endpoint (wraps S3Store with a custom endpoint).
  • GcsStore — the native google-cloud-storage gs:// backend (ring rustls; ADC credential chain).
  • router — scheme → adapter resolution, including the hardcoded gs://gcs special case for the Google Cloud Storage adapter.
  • shim (ExternalStore) — the emit-command shim that dispatches third-party snapdir-<name>-store binaries via the documented get-manifest-command / get-fetch-files-command / get-push-command contract.

Re-exports§

pub use b2_store::B2Store;
pub use file_store::FileStore;
pub use gcs_store::GcsLocation;
pub use gcs_store::GcsStore;
pub use router::resolve_adapter;
pub use router::Adapter;
pub use router::RouteError;
pub use s3_store::S3Location;
pub use s3_store::S3Store;
pub use shim::ExternalStore;

Modules§

b2_store
B2Store: the b2:// storage backend, backed by Backblaze B2’s S3-compatible endpoint via the native AWS SDK.
file_store
FileStore: the file:// storage backend.
gcs_store
GcsStore: the gs:// storage backend, backed by the native google-cloud-storage SDK.
router
Store routing: scheme → adapter / binary-name resolution.
s3_store
S3Store: the s3:// storage backend, backed by the native AWS SDK.
shim
External-store emit-command shim.