Skip to content

Commit ee95540

Browse files
committed
separate checkers, recorders, and helpers. also add host exec stuff
1 parent adc0c32 commit ee95540

11 files changed

Lines changed: 345 additions & 50 deletions

File tree

Cargo.lock

Lines changed: 209 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
2-
name = "preflight"
2+
name = "edera-preflight"
33
version = "0.1.0"
44
edition = "2024"
5+
description = "CLI to run pre-deployment checks before running workloads."
56

67
[dependencies]
78
anyhow = "1.0.99"
@@ -12,3 +13,7 @@ log = "0.4.28"
1213
procfs = "0.18.0"
1314
sysinfo = "0.36.1"
1415
tar = "0.4.44"
16+
tokio = { version = "1", features = ["full"] }
17+
tokio-util = { version = "0.7" }
18+
tokio-stream = { version = "0.1", features = ["io-util", "net"] }
19+
nix = { version= "0.31", features = ["sched"] }

src/kernel.rs renamed to src/checkers/kernel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{
1+
use crate::helpers::{
22
CheckGroup, CheckGroupResult, CheckResult,
33
CheckResultValue::{Errored, Failed, Passed},
44
};

src/checkers/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub mod kernel;
2+
pub mod script;
3+
pub mod system;

src/script.rs renamed to src/checkers/script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{
1+
use crate::helpers::{
22
CheckGroup, CheckGroupResult, CheckResult,
33
CheckResultValue::{Errored, Failed, Passed},
44
};

0 commit comments

Comments
 (0)