Skip to main content

ObjectStoreClient

Trait ObjectStoreClient 

Source
pub trait ObjectStoreClient:
    Debug
    + Send
    + Sync {
    // Required methods
    fn put(
        &self,
        object_key: &str,
        bytes: &[u8],
        content_type: Option<&str>,
    ) -> Result<PathBuf, StorageExecutionError>;
    fn get(
        &self,
        object_key: &str,
    ) -> Result<(PathBuf, Vec<u8>), StorageExecutionError>;
    fn signed_get_url(
        &self,
        object_key: &str,
    ) -> Result<SignedObjectUrl, StorageExecutionError>;
}

Required Methods§

Source

fn put( &self, object_key: &str, bytes: &[u8], content_type: Option<&str>, ) -> Result<PathBuf, StorageExecutionError>

Source

fn get( &self, object_key: &str, ) -> Result<(PathBuf, Vec<u8>), StorageExecutionError>

Source

fn signed_get_url( &self, object_key: &str, ) -> Result<SignedObjectUrl, StorageExecutionError>

Implementors§