pub async fn new(
        store: Arc<dyn Store + Sync + Send>,
        config: &kubelet::config::Config,
        kubeconfig: kube::Config,
    ) -> anyhow::Result<Self> {
        let log_path = config.data_dir.join(LOG_DIR_NAME);
        let volume_path = config.data_dir.join(VOLUME_DIR);
        tokio::fs::create_dir_all(&log_path).await?;
        tokio::fs::create_dir_all(&volume_path).await?;
        Ok(Self {
            handles: Default::default(),
            store,
            log_path,
            volume_path,
            kubeconfig,
        })
    }
/// Create a new wasi provider from a module store and a kubelet config
Create a new wasi provider from a module store and a kubelet config
Create a new wasi provider from a module store and a kubelet config
pub async fn new(
        store: Arc<dyn Store + Sync + Send>,
        config: &kubelet::config::Config,
        kubeconfig: kube::Config,
    ) -> anyhow::Result<Self> {
        let log_path = config.data_dir.join(LOG_DIR_NAME);
        let volume_path = config.data_dir.join(VOLUME_DIR);
        tokio::fs::create_dir_all(&log_path).await?;
        tokio::fs::create_dir_all(&volume_path).await?;
        Ok(Self {
            handles: Default::default(),
            store,
            log_path,
            volume_path,
            kubeconfig,
        })
    }
pub async fn new ( store : Arc < dyn Store + Sync + Send > , config : & kubelet :: config :: Config , kubeconfig : kube :: Config , ) -> anyhow :: Result < Self > { let log_path = config . data_dir . join ( LOG_DIR_NAME ) ; let volume_path = config . data_dir . join ( VOLUME_DIR ) ; tokio :: fs :: create_dir_all ( & log_path ) . await ? ; tokio :: fs :: create_dir_all ( & volume_path ) . await ? ; Ok ( Self { handles : Default :: default ( ) , store , log_path , volume_path , kubeconfig , } ) }
Create a new wasi provider from a module store and a kubelet config
Create a new wasi provider from a module store and a kubelet config
store
Arc<dyn Store + Sync + Send>
config
&kubelet::config::Config
kubeconfig
kube::Config
store
Arc<dyn Store + Sync + Send>
config
&kubelet::config::Config
kubeconfig
kube::Config