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:///pathor plain path - Local filesystem
§Environment Variables
§S3
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY- CredentialsAWS_DEFAULT_REGION- RegionAWS_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