Module cloud

Module cloud 

Source
Expand description

CloudHome: low-level cloud storage abstraction.

Each backend (S3, R2, B2, etc.) implements CloudHome – 8 methods for raw bytes in/out. No encryption, no path layout knowledge, no sync semantics. Higher-level concerns live in EncryptedSyncStorage which wraps any dyn CloudHome.

Modules§

cloudkit
CloudKit-backed CloudHome implementation.
dropbox
Dropbox CloudHome implementation.
google_drive
Google Drive CloudHome implementation.
http
HTTP-backed CloudHome implementation.
oauth_session
Shared OAuth token lifecycle for the consumer-cloud backends.
onedrive
OneDrive CloudHome implementation.
s3
S3-backed CloudHome implementation.
setup
Cloud provider setup and management.
test_utils
In-process CloudHome implementation for tests. Records every write keyed by cloud_key so tests can read back exactly what landed, and serves reads from the same map — enough to simulate two devices sharing a cloud bucket.

Enums§

CloudHomeError
Errors from raw cloud storage operations.
CloudHomeJoinInfo
Information needed to join a cloud home from another device.

Traits§

CloudHome
Low-level cloud storage. Implementations handle a single library.

Functions§

create_cloud_home
Construct a CloudHome from the desktop app’s Config + KeyService. Reads provider settings from config and credentials from the OS keyring.