Struct reproto_repository::FileObjects
[−]
[src]
pub struct FileObjects { /* fields omitted */ }
Methods
impl FileObjects
[src]
pub fn new<P: AsRef<Path> + ?Sized>(path: &P) -> FileObjects
[src]
pub fn checksum_path(&self, checksum: &Checksum) -> Result<PathBuf>
[src]
Calculate the path to the given checksum.
Trait Implementations
impl Objects for FileObjects
[src]
fn put_object(
&mut self,
checksum: &Checksum,
source: &mut Read,
force: bool
) -> Result<bool>
[src]
&mut self,
checksum: &Checksum,
source: &mut Read,
force: bool
) -> Result<bool>
Put the given object into the database. This will cause the object denoted by the given checksum to be uploaded to the objects store. Read more
fn get_object(&mut self, checksum: &Checksum) -> Result<Option<Source>>
[src]
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. Read more
fn update(&self) -> Result<Vec<Update>>
[src]
Update local caches related to the object store.