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
fn put_object(
&mut self,
checksum: &Checksum,
source: &mut Read,
force: bool
) -> Result<()>
&mut self,
checksum: &Checksum,
source: &mut Read,
force: bool
) -> Result<()>
Put the given object into the database. This will cause the object denoted by the given checksum to be uploaded to the objects store.
fn get_object(&mut self, checksum: &Checksum) -> Result<Option<Box<Object>>>
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
Implementors
impl Objects for FileObjects
impl<T: Objects> Objects for CachedObjects<T>
impl Objects for NoObjects