pub trait NamespaceMapStorage: Send + Sync {
    // Required methods
    fn load_namespace_map<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Option<IndexMap<String, String>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn reset_namespaces<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn store_namespace<'life0, 'async_trait>(
        &'life0 self,
        namespace: String,
        registry_domain: RegistryDomain
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for namespace map storage implementations.

Namespace Map storage data must be synchronized if shared between multiple threads an

Required Methods§

source

fn load_namespace_map<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Option<IndexMap<String, String>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Loads namespace map

source

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

Reset namespace mappings

source

fn store_namespace<'life0, 'async_trait>( &'life0 self, namespace: String, registry_domain: RegistryDomain ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Store namespace mapping

Implementors§