create_async_store

Function create_async_store 

Source
pub async fn create_async_store(
    location: &str,
) -> Result<(AsyncReadableListableStorage, Path), StorageError>
Expand description

Create an async storage backend from a URL or path.

§Supported URL schemes

  • s3://bucket/path - AWS S3 (credentials from environment)
  • gs://bucket/path - Google Cloud Storage (credentials from environment or anonymous)
  • file:///path or plain path - Local filesystem

§Environment Variables

§S3

  • AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY - Credentials
  • AWS_DEFAULT_REGION - Region
  • AWS_ENDPOINT - Custom endpoint (for S3-compatible services)

§GCS

  • GOOGLE_SERVICE_ACCOUNT - Path to service account JSON
  • Or uses Application Default Credentials
  • Falls back to anonymous access for public buckets