feat: prepare for alternative stores

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2026-01-17 00:19:18 +01:00
parent f19cea610b
commit 41b6479137
10 changed files with 316 additions and 179 deletions

View File

@@ -3,6 +3,7 @@ use std::{collections::HashMap, future::Future, sync::Arc, time::Duration};
use nocontrol::{
Operator, OperatorState, Specification,
manifests::{Action, Manifest, ManifestMetadata, ManifestState, ManifestStatusState},
stores::BackingStore,
};
use noprocess::{HandleID, Process, ProcessHandler, ProcessManager, ProcessResult, ProcessState};
use serde::{Deserialize, Serialize};
@@ -25,7 +26,7 @@ async fn main() -> anyhow::Result<()> {
let process_manager = ProcessManager::new();
let operator = OperatorState::new(ProcessOperator::new(process_manager));
let control_plane = nocontrol::ControlPlane::new(operator);
let control_plane = nocontrol::ControlPlane::new(operator, BackingStore::in_process());
// Add initial process manifest - desired state is Running
control_plane