Skip to main content

StorageClient

Trait StorageClient 

Source
pub trait StorageClient: Send + Sync {
    // Required methods
    fn list(&self, prefix_or_path: &str) -> FloeResult<Vec<ObjectRef>>;
    fn download_to_temp(
        &self,
        uri: &str,
        temp_dir: &Path,
    ) -> FloeResult<PathBuf>;
    fn upload_from_path(&self, local_path: &Path, uri: &str) -> FloeResult<()>;
    fn resolve_uri(&self, path: &str) -> FloeResult<String>;
    fn copy_object(&self, src_uri: &str, dst_uri: &str) -> FloeResult<()>;
    fn delete_object(&self, uri: &str) -> FloeResult<()>;
    fn exists(&self, uri: &str) -> FloeResult<bool>;
}

Required Methods§

Source

fn list(&self, prefix_or_path: &str) -> FloeResult<Vec<ObjectRef>>

Source

fn download_to_temp(&self, uri: &str, temp_dir: &Path) -> FloeResult<PathBuf>

Source

fn upload_from_path(&self, local_path: &Path, uri: &str) -> FloeResult<()>

Source

fn resolve_uri(&self, path: &str) -> FloeResult<String>

Source

fn copy_object(&self, src_uri: &str, dst_uri: &str) -> FloeResult<()>

Source

fn delete_object(&self, uri: &str) -> FloeResult<()>

Source

fn exists(&self, uri: &str) -> FloeResult<bool>

Implementors§