Struct repo_backup::Driver
[−]
[src]
pub struct Driver { /* fields omitted */ }
A driver for orchestrating the process of fetching a list of repositories and then downloading each of them.
Methods
impl Driver
[src]
fn with_config(config: Config) -> Driver
[src]
Create a new Driver
with the provided config.
fn run(&self) -> Result<(), Error>
[src]
Download a list of all repositories from the Provider
s found in the
configuration file, then fetch any recent changes (running git clone
if necessary).
fn update_repos(&self, repos: &[Repo]) -> Result<(), UpdateFailure>
[src]
Update the provided repositories.
fn get_repos_from_providers(
&self,
providers: &[Box<Provider>]
) -> Result<Vec<Repo>, Error>
[src]
&self,
providers: &[Box<Provider>]
) -> Result<Vec<Repo>, Error>
Iterate over the Provider
s and collect all the repositories they've
found into one big list.
Trait Implementations
impl Debug for Driver
[src]
impl Clone for Driver
[src]
fn clone(&self) -> Driver
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more