Module setup

Module setup 

Source
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§

SetupError
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.