Skip to main content

ConfigStore

Trait ConfigStore 

Source
pub trait ConfigStore: Send + Sync {
    // Required methods
    fn list_repos<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<RegisteredWorkspace>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn upsert_repo<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repo: &'life1 RegisteredWorkspace,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_repo<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Durable, mutable store for the managed-repo registry.

Required Methods§

Source

fn list_repos<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<RegisteredWorkspace>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

All registered repos, ordered by name.

Source

fn upsert_repo<'life0, 'life1, 'async_trait>( &'life0 self, repo: &'life1 RegisteredWorkspace, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Insert or update a repo (keyed by name).

Source

fn delete_repo<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Remove a repo by name. Returns whether a row was deleted.

Implementors§