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§
Sourcefn 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 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.
Sourcefn 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 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).