Struct rdedup_lib::Repo
[−]
[src]
pub struct Repo { /* fields omitted */ }
Rdedup repository
Methods
impl Repo
[src]
fn unlock_decrypt(
&self,
pass: &'a Fn() -> Result<String>
) -> Result<DecryptHandle>
[src]
&self,
pass: &'a Fn() -> Result<String>
) -> Result<DecryptHandle>
fn unlock_encrypt(
&self,
pass: &'a Fn() -> Result<String>
) -> Result<EncryptHandle>
[src]
&self,
pass: &'a Fn() -> Result<String>
) -> Result<EncryptHandle>
fn path(&self) -> &Path
[src]
fn init<L>(
repo_path: &Path,
passphrase: &'a Fn() -> Result<String>,
settings: Repo,
log: L
) -> Result<Repo> where
L: Into<Option<Logger>>,
[src]
repo_path: &Path,
passphrase: &'a Fn() -> Result<String>,
settings: Repo,
log: L
) -> Result<Repo> where
L: Into<Option<Logger>>,
Create new rdedup repository
fn open<L>(repo_path: &Path, log: L) -> Result<Repo> where
L: Into<Option<Logger>>,
[src]
L: Into<Option<Logger>>,
fn change_passphrase(
&mut self,
old_p: &'a Fn() -> Result<String>,
new_p: &'a Fn() -> Result<String>
) -> Result<()>
[src]
&mut self,
old_p: &'a Fn() -> Result<String>,
new_p: &'a Fn() -> Result<String>
) -> Result<()>
Change the passphrase
fn list_names(&self) -> Result<Vec<String>>
[src]
fn rm(&self, name: &str) -> Result<()>
[src]
Remove a stored name from repo
fn gc(&self, min_age_secs: u64) -> Result<()>
[src]
fn read<W: Write>(
&self,
name_str: &str,
writer: &mut W,
dec: &DecryptHandle
) -> Result<()>
[src]
&self,
name_str: &str,
writer: &mut W,
dec: &DecryptHandle
) -> Result<()>
fn du(&self, name_str: &str, dec: &DecryptHandle) -> Result<DuResults>
[src]
fn verify(&self, name_str: &str, dec: &DecryptHandle) -> Result<VerifyResults>
[src]
fn write<R>(
&self,
name_str: &str,
reader: R,
enc: &EncryptHandle
) -> Result<WriteStats> where
R: Read + Send,
[src]
&self,
name_str: &str,
reader: R,
enc: &EncryptHandle
) -> Result<WriteStats> where
R: Read + Send,