Public release release-be8720d92b1c
Source commit: be8720d92b1c2795f3e5903d8c1a65d70adfd095 Public tree identity: sha256:9503bb4414b023fea6500688ef0931a7f6b4c940c509fdf96c8bf3a8950e207c
This commit is contained in:
commit
3a697fa132
221 changed files with 81070 additions and 0 deletions
39
crates/clusterflux-node/src/windows_dev.rs
Normal file
39
crates/clusterflux-node/src/windows_dev.rs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
use clusterflux_core::{
|
||||
Capability, CommandBackendKind, CommandInvocation, CommandPlan, GuestRuntimeKind,
|
||||
};
|
||||
|
||||
use crate::{BackendError, CommandBackend};
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct WindowsCommandDevBackend;
|
||||
|
||||
impl CommandBackend for WindowsCommandDevBackend {
|
||||
fn kind(&self) -> CommandBackendKind {
|
||||
CommandBackendKind::WindowsCommandDev
|
||||
}
|
||||
|
||||
fn plan(&self, _invocation: &CommandInvocation) -> Result<CommandPlan, BackendError> {
|
||||
Ok(CommandPlan {
|
||||
guest_runtime: GuestRuntimeKind::Wasmtime,
|
||||
backend: CommandBackendKind::WindowsCommandDev,
|
||||
required_capability: Capability::WindowsCommandDev,
|
||||
user_attached_development_execution: true,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct WindowsSandboxStubBackend;
|
||||
|
||||
impl CommandBackend for WindowsSandboxStubBackend {
|
||||
fn kind(&self) -> CommandBackendKind {
|
||||
CommandBackendKind::StubbedWindowsSandbox
|
||||
}
|
||||
|
||||
fn plan(&self, _invocation: &CommandInvocation) -> Result<CommandPlan, BackendError> {
|
||||
Err(BackendError::Denied(
|
||||
"Windows sandbox backend is an explicit stub for MVP; use windows-command-dev only for user-attached development execution"
|
||||
.to_owned(),
|
||||
))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue