Skip to main content

Module google_drive

Module google_drive 

Source
Expand description

Google Drive content source provider.

Polls a Google Drive folder for .md and .txt files using the Drive API v3. Supports two authentication strategies:

  • ServiceAccount (legacy): reads a service-account JSON key file, builds a JWT, and exchanges it for an access token.
  • LinkedAccount (new): uses encrypted OAuth refresh tokens stored in the connections table, refreshing via the connector module.

connection_id takes precedence when both are configured.

Structs§

GoogleDriveProvider
Google Drive content source provider.

Enums§

DriveAuthStrategy
How the provider obtains access tokens for Drive API calls.