Trait centraldogma::RepoService [−][src]
pub trait RepoService {
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;
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;
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;
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;
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;
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
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,
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,
Creates a repository.
Removes a repository, removed repository can be unremoved.
Purges a repository that was removed before.
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,
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,
Unremoves a repository.
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,
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,
Retrieves the list of the repositories.