feat: prepare for alternative stores
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user