Skip to main content

validate_uri

Function validate_uri 

Source
pub fn validate_uri(uri: &str) -> Result<StorageScheme>
Expand description

Validates that a URI has a proper scheme.

Rejects bare paths (e.g., /tmp/backup, ./backup) because:

  • Schema export (CLI) and data export (server) run in different processes
  • Using bare paths would split the snapshot across machines

Supported URI schemes:

  • s3://bucket/path - Amazon S3
  • oss://bucket/path - Alibaba Cloud OSS
  • gs://bucket/path - Google Cloud Storage
  • azblob://container/path - Azure Blob Storage
  • file:///absolute/path - Local filesystem