This commit is contained in:
nora 2024-03-15 17:30:10 +01:00
parent 2bb030d81d
commit 13f6627853
5 changed files with 35 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

7
Cargo.lock generated Normal file
View file

@ -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"

6
Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "athlete"
version = "0.1.0"
edition = "2021"
[dependencies]

18
src/lib.rs Normal file
View file

@ -0,0 +1,18 @@
use std::path::Path;
pub struct Runtime {}
pub struct ContainerId(pub String);
impl Runtime {
/// <https://github.com/opencontainers/runtime-spec/blob/main/runtime.md#query-state>
pub fn state(&self, _id: ContainerId) {}
/// <https://github.com/opencontainers/runtime-spec/blob/main/runtime.md#create>
pub fn create(&self, _id: ContainerId, _bundle_path: &Path) {}
/// <https://github.com/opencontainers/runtime-spec/blob/main/runtime.md#start>
pub fn start(&self, _id: ContainerId) {}
/// <https://github.com/opencontainers/runtime-spec/blob/main/runtime.md#kill>
pub fn kill(&self, _id: ContainerId, _signal: u8) {}
/// <https://github.com/opencontainers/runtime-spec/blob/main/runtime.md#delete>
pub fn delete(&self, _id: ContainerId) {}
}

3
src/main.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}