summaryrefslogtreecommitdiffstats
path: root/src/runner/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/runner/mod.rs')
-rw-r--r--src/runner/mod.rs33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/runner/mod.rs b/src/runner/mod.rs
index b140a84..b88045a 100644
--- a/src/runner/mod.rs
+++ b/src/runner/mod.rs
@@ -1,34 +1,3 @@
pub mod container;
-use ipc_channel::ipc;
-use serde::{Deserialize, Serialize};
-use std::collections::{HashMap, HashSet};
-
-use crate::{types::*, util::error::*};
-
-#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq, Hash)]
-#[serde(rename_all = "snake_case")]
-pub enum Dependency {
- Fetch { name: String, sha256: StringHash },
- Task { output: ArchiveHash, path: String },
-}
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct Task {
- pub label: String,
- pub command: String,
- pub inherit: Vec<LayerHash>,
- pub depends: HashSet<Dependency>,
- pub outputs: HashMap<String, String>,
-}
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct TaskOutput {
- pub input_hash: InputHash,
- pub layer: Option<LayerHash>,
- pub outputs: HashMap<String, ArchiveHash>,
-}
-
-pub trait Runner {
- fn spawn(&self, task: &Task) -> ipc::IpcReceiver<Result<TaskOutput>>;
-}
+pub use container::Runner;