Expand description
Cloud provider setup and management.
Contains the OAuth sign-in flows for Google Drive, Dropbox, and OneDrive, as well as managed service signup/login, disconnect, and account display logic.
Structs§
- Setup
Error - Cloud provider setup error.
Functions§
- cloud_
account_ display_ for - Get a display string for the current cloud account (bucket name, username, etc.)
- create_
sync_ storage - Create sync storage from config and credentials.
- generate_
restore_ code - Build a RestoreCode from config and keyring, then encode it.
- sign_
in_ dropbox - Dropbox OAuth sign-in: authorize, create the library folder, save tokens to the keyring. Returns the folder path for the host to persist in its config.
- sign_
in_ google_ drive - Google Drive OAuth sign-in: authorize, find/create the library folder, save tokens to the keyring. Returns the folder id for the host to persist in its own config (coven never writes the host’s config).
- sign_
in_ onedrive - OneDrive OAuth sign-in: authorize, resolve the default drive, create the app
folder, save tokens to the keyring. Returns
(drive_id, folder_id)for the host to persist in its config.