Trait centraldogma::RepoService [−][src]
pub trait RepoService { #[must_use] fn create_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Repository, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn remove_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn purge_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn unremove_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Repository, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn list_repos<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Repository>, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn list_removed_repos<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
Expand description
Repository-related APIs
Required methods
#[must_use]fn create_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Repository, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn create_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Repository, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Creates a repository.
Removes a repository, removed repository can be unremoved.
Purges a repository that was removed before.
#[must_use]fn unremove_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Repository, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn unremove_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Repository, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Unremoves a repository.
#[must_use]fn list_repos<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Repository>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn list_repos<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Repository>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Retrieves the list of the repositories.
Implementors
fn create_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Repository, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]fn remove_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]fn purge_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]fn unremove_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Repository, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]fn list_repos<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Repository>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]