[][src]Trait oss_rust_sdk::object::ObjectAPI

pub trait ObjectAPI {
    fn get_object(
        &self,
        object_name: &str,
        headers: Option<HashMap<&str, &str>>,
        resources: Option<HashMap<String, Option<String>>>
    ) -> Result<Vec<u8>, Error>;
fn get_object_acl(&self, object_name: &str) -> Result<String, Error>;
fn put_object_from_file(
        &self,
        file: &str,
        object_name: &str,
        headers: Option<HashMap<&str, &str>>,
        resources: Option<HashMap<String, Option<String>>>
    ) -> Result<(), Error>;
fn put_object_from_buffer(
        &self,
        buf: &[u8],
        object_name: &str,
        headers: Option<HashMap<&str, &str>>,
        resources: Option<HashMap<String, Option<String>>>
    ) -> Result<(), Error>;
fn copy_object_from_object(
        &self,
        src: &str,
        dest: &str,
        headers: Option<HashMap<&str, &str>>,
        resources: Option<HashMap<String, Option<String>>>
    ) -> Result<(), Error>;
fn delete_object(&self, object_name: &str) -> Result<(), Error>; }

Required methods

fn get_object(
    &self,
    object_name: &str,
    headers: Option<HashMap<&str, &str>>,
    resources: Option<HashMap<String, Option<String>>>
) -> Result<Vec<u8>, Error>

fn get_object_acl(&self, object_name: &str) -> Result<String, Error>

fn put_object_from_file(
    &self,
    file: &str,
    object_name: &str,
    headers: Option<HashMap<&str, &str>>,
    resources: Option<HashMap<String, Option<String>>>
) -> Result<(), Error>

fn put_object_from_buffer(
    &self,
    buf: &[u8],
    object_name: &str,
    headers: Option<HashMap<&str, &str>>,
    resources: Option<HashMap<String, Option<String>>>
) -> Result<(), Error>

fn copy_object_from_object(
    &self,
    src: &str,
    dest: &str,
    headers: Option<HashMap<&str, &str>>,
    resources: Option<HashMap<String, Option<String>>>
) -> Result<(), Error>

fn delete_object(&self, object_name: &str) -> Result<(), Error>

Loading content...

Implementors

impl<'a> ObjectAPI for OSS<'a>[src]

Loading content...