-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jorge Prendes <[email protected]>
- Loading branch information
Showing
12 changed files
with
29 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
crates/containerd-shim-wasm/src/sys/common/container/instance.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use crate::container::engine::Engine; | ||
use crate::sandbox::instance::Wait; | ||
use crate::sandbox::{Error as SandboxError, Instance as SandboxInstance, InstanceConfig}; | ||
|
||
pub struct Instance<E: Engine> { | ||
engine: std::marker::PhantomData<E>, | ||
} | ||
|
||
impl<E: Engine> SandboxInstance for Instance<E> { | ||
type Engine = E; | ||
fn new(_id: String, _cfg: Option<&InstanceConfig<Self::Engine>>) -> Self { | ||
todo!(); | ||
} | ||
fn start(&self) -> Result<u32, SandboxError> { | ||
todo!(); | ||
} | ||
fn kill(&self, _signal: u32) -> Result<(), SandboxError> { | ||
todo!(); | ||
} | ||
fn delete(&self) -> Result<(), SandboxError> { | ||
todo!(); | ||
} | ||
fn wait(&self, _waiter: &Wait) -> Result<(), SandboxError> { | ||
todo!(); | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
crates/containerd-shim-wasm/src/sys/windows/container/instance.rs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#[path = "../common/container/mod.rs"] | ||
pub mod container; | ||
pub mod metrics; | ||
pub mod networking; | ||
|
File renamed without changes.
40 changes: 0 additions & 40 deletions
40
crates/containerd-shim-wasmedge/src/instance/instance_windows.rs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
38 changes: 0 additions & 38 deletions
38
crates/containerd-shim-wasmtime/src/instance/instance_windows.rs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters