Skip to main content

Module cloud

Module cloud 

Source
Expand description

Cloud storage builders for S3, GCS, and Azure.

This module provides utilities to construct ObjectStore instances for various cloud providers. It supports both explicit configuration and URL-based store creation.

§Examples

use uni_common::CloudStorageConfig;
use uni_store::cloud::build_cloud_store;

let config = CloudStorageConfig::s3_from_env("my-bucket");
let store = build_cloud_store(&config)?;

Functions§

build_cloud_store
Builds an ObjectStore from a CloudStorageConfig.
build_store_from_url
Parses a URL and returns the appropriate ObjectStore and path prefix.
copy_store_prefix
Copies all objects from a source prefix to a destination prefix.
is_cloud_url
Checks if a URL points to a cloud storage location.