Struct rdedup_lib::Repo
[−]
[src]
pub struct Repo { /* fields omitted */ }Rdedup repository
Methods
impl Repo[src]
fn init_v0<L>(repo_path: &Path, passphrase: &str, log: L) -> Result<Repo> where
L: Into<Option<Logger>>,
L: Into<Option<Logger>>,
Old repository config creation, should not be used anymore other than backward compatibility testing purposes
fn init<L>(
repo_path: &Path,
passphrase: &str,
chunking: ChunkingAlgorithm,
log: L
) -> Result<Repo> where
L: Into<Option<Logger>>,
repo_path: &Path,
passphrase: &str,
chunking: ChunkingAlgorithm,
log: L
) -> Result<Repo> where
L: Into<Option<Logger>>,
Create new rdedup repository
fn get_seckey(&self, passphrase: &str) -> Result<SecretKey>
fn open_v0<L>(repo_path: &Path, log: L) -> Result<Repo> where
L: Into<Option<Logger>>,
L: Into<Option<Logger>>,
fn open<L>(repo_path: &Path, log: L) -> Result<Repo> where
L: Into<Option<Logger>>,
L: Into<Option<Logger>>,
fn rm(&self, name: &str) -> Result<()>
Remove a stored name from repo
fn change_passphrase(
&self,
seckey: &SecretKey,
new_passphrase: &str
) -> Result<()>
&self,
seckey: &SecretKey,
new_passphrase: &str
) -> Result<()>
Change the passphrase
fn write<R>(&self, name: &str, reader: R) -> Result<WriteStats> where
R: Read + Send,
R: Read + Send,
fn read<W: Write>(
&self,
name: &str,
writer: &mut W,
seckey: &SecretKey
) -> Result<()>
&self,
name: &str,
writer: &mut W,
seckey: &SecretKey
) -> Result<()>
fn du(&self, name: &str, seckey: &SecretKey) -> Result<DuResults>
fn verify(&self, name: &str, seckey: &SecretKey) -> Result<VerifyResults>
fn list_names(&self) -> Result<Vec<String>>
List all names
fn gc(&self) -> Result<GcResults>
Trait Implementations
impl Clone for Repo[src]
fn clone(&self) -> Repo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more