Trait zombienet_provider::Provider

source ·
pub trait Provider {
    // Required methods
    fn name(&self) -> &str;
    fn capabilities(&self) -> &ProviderCapabilities;
    fn namespaces<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = HashMap<String, DynNamespace>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_namespace<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<DynNamespace, ProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_namespace_with_base_dir<'life0, 'life1, 'async_trait>(
        &'life0 self,
        base_dir: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = Result<DynNamespace, ProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn name(&self) -> &str

source

fn capabilities(&self) -> &ProviderCapabilities

source

fn namespaces<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = HashMap<String, DynNamespace>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

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

source

fn create_namespace_with_base_dir<'life0, 'life1, 'async_trait>( &'life0 self, base_dir: &'life1 Path, ) -> Pin<Box<dyn Future<Output = Result<DynNamespace, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

source§

impl<FS> Provider for DockerProvider<FS>
where FS: FileSystem + Send + Sync + Clone + 'static,

source§

impl<FS> Provider for KubernetesProvider<FS>
where FS: FileSystem + Send + Sync + Clone + 'static,

source§

impl<FS> Provider for NativeProvider<FS>
where FS: FileSystem + Send + Sync + Clone + 'static,