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

Creates a repository.

Removes a repository, removed repository can be unremoved.

Purges a repository that was removed before.

Unremoves a repository.

Retrieves the list of the repositories.

Retrieves the list of the removed repositories, which can be unremoved.

Implementors