From 13f66278538e8ff2d89a4de75eb30672df8c51ac Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:30:10 +0100 Subject: [PATCH] stubs --- .gitignore | 1 + Cargo.lock | 7 +++++++ Cargo.toml | 6 ++++++ src/lib.rs | 18 ++++++++++++++++++ src/main.rs | 3 +++ 5 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 src/lib.rs create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..e44c031 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "athlete" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..0f3e912 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "athlete" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..62d86de --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,18 @@ +use std::path::Path; + +pub struct Runtime {} + +pub struct ContainerId(pub String); + +impl Runtime { + /// + pub fn state(&self, _id: ContainerId) {} + /// + pub fn create(&self, _id: ContainerId, _bundle_path: &Path) {} + /// + pub fn start(&self, _id: ContainerId) {} + /// + pub fn kill(&self, _id: ContainerId, _signal: u8) {} + /// + pub fn delete(&self, _id: ContainerId) {} +} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}