Skip to main content

Module local

Module local 

Source
Expand description

Local-filesystem storage-provider construction.

The constructor validates the configured directory and can create it when requested before wrapping it as a provider. Disabled local configurations return no provider. Local-filesystem storage-provider construction.

A configured directory is wrapped by the common provider interface. Empty base paths disable the provider, while optional directory creation happens before the backend is initialized.

Re-exportsยง

use std::fs; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use object_store::local::LocalFileSystem; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::config::StorageProvider; ๐Ÿ”’
use tuwunel_core::config::StorageProviderLocal; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug_info; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::trace; ๐Ÿ”’
use super::Provider; ๐Ÿ”’

Functionsยง

new ๐Ÿ”’
Builds an enabled local-filesystem provider.