risingwave_object_store::object

Function build_remote_object_store

source
pub async fn build_remote_object_store(
    url: &str,
    metrics: Arc<ObjectStoreMetrics>,
    ident: &str,
    config: Arc<ObjectStoreConfig>,
) -> ObjectStoreImpl
Expand description

Creates a new ObjectStore from the given url. Credentials are configured via environment variables.

ยงPanics

If the url is invalid. Therefore, it is only suitable to be used during startup.