pub trait ClusterSwarm: Send + Sync {
    // Required methods
    fn spawn_new_instance<'life0, 'async_trait>(
        &'life0 self,
        instance_config: InstanceConfig
    ) -> Pin<Box<dyn Future<Output = Result<Instance>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn clean_data<'life0, 'life1, 'async_trait>(
        &'life0 self,
        node: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_node_name<'life0, 'life1, 'async_trait>(
        &'life0 self,
        pod_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_grafana_baseurl<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn put_file<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        node: &'life1 str,
        pod_name: &'life2 str,
        path: &'life3 str,
        content: &'life4 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
}

Required Methods§

source

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

Spawns a new instance.

source

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

If deleting /opt/diem/data/* is required, call clean_date before calling spawn_new_instance.

source

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

source

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

source

fn put_file<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, node: &'life1 str, pod_name: &'life2 str, path: &'life3 str, content: &'life4 [u8] ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Implementors§