Trait reproto_repository::Objects [] [src]

pub trait Objects {
    fn put_object(
        &mut self,
        checksum: &Checksum,
        source: &mut Read,
        force: bool
    ) -> Result<()>;
fn get_object(&mut self, checksum: &Checksum) -> Result<Option<Box<Object>>>; fn update(&self) -> Result<Vec<Update>> { ... } }

Required Methods

Put the given object into the database. This will cause the object denoted by the given checksum to be uploaded to the objects store.

Get a path to the object with the given checksum. This might cause the object to be downloaded if it's not already present in the local filesystem.

Provided Methods

Update local caches related to the object store.

Implementors