mirror of
https://github.com/Noratrieb/athlete.git
synced 2026-01-14 18:05:01 +01:00
stubs
This commit is contained in:
parent
2bb030d81d
commit
13f6627853
5 changed files with 35 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/target
|
||||||
7
Cargo.lock
generated
Normal file
7
Cargo.lock
generated
Normal 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
6
Cargo.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[package]
|
||||||
|
name = "athlete"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
18
src/lib.rs
Normal file
18
src/lib.rs
Normal 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
3
src/main.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue