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]
impl Driver
pub fn with_config(config: Config) -> Driver
[src]
pub fn with_config(config: Config) -> Driver
Create a new Driver
with the provided config.
pub fn run(&self) -> Result<(), Error>
[src]
pub fn run(&self) -> Result<(), Error>
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).
pub fn update_repos(&self, repos: &[Repo]) -> Result<(), UpdateFailure>
[src]
pub fn update_repos(&self, repos: &[Repo]) -> Result<(), UpdateFailure>
Update the provided repositories.
pub fn get_repos_from_providers(
&self,
providers: &[Box<Provider>]
) -> Result<Vec<Repo>, Error>
[src]
pub fn get_repos_from_providers(
&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 Debug for Driver
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Driver
[src]
impl Clone for Driver