pub enum IpcRequest {
Audit {
deep: bool,
fix: bool,
json: bool,
},
Status,
Kill {
reason: Option<String>,
},
Subscribe,
Alerts {
limit: Option<u32>,
},
ReloadPolicy,
Ping,
}Expand description
A request sent from a client (cli / napi) to the daemon over the socket.
Internally tagged so the JSON stays self-describing and stable across the
TS↔Rust migration window (PRODUCT.md A.5). Variant tags are camelCase.
PRODUCT.md A.4: this is the control-plane verb set shared by every Ring-1/2 process. Variants map onto the daemon workflows in PRODUCT.md Part B.
Variants§
Audit
Run a (read-only) audit and return the AuditReport (PRODUCT.md B.2).
AuditOptions (core) is Default + Copy but does not derive serde, so
the wire form carries the three knobs flatly; the daemon rebuilds an
AuditOptions from them before invoking run_audit.
Fields
Status
Query daemon liveness + monitor status (PRODUCT.md B.4).
Kill
Trip the kill switch / request enforcement shutdown (PRODUCT.md A.3,
B.4). The optional human-readable reason is recorded in the audit log.
Subscribe
Subscribe to the live MonitorAlert stream from the AlertBus
(PRODUCT.md B.4). The server keeps the connection open and pushes
IpcResponse::Alert frames until the client disconnects.
Alerts
Fetch the most recent monitor alerts (bounded by limit).
ReloadPolicy
Ask the daemon to reload its policy bundle from disk
(PRODUCT.md B.4 hot-reload). The PDP lives in secureops-policy.
Ping
Liveness ping; the daemon answers with IpcResponse::Ok.
Trait Implementations§
Source§impl Clone for IpcRequest
impl Clone for IpcRequest
Source§fn clone(&self) -> IpcRequest
fn clone(&self) -> IpcRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IpcRequest
impl Debug for IpcRequest
Source§impl<'de> Deserialize<'de> for IpcRequest
impl<'de> Deserialize<'de> for IpcRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for IpcRequest
impl PartialEq for IpcRequest
Source§fn eq(&self, other: &IpcRequest) -> bool
fn eq(&self, other: &IpcRequest) -> bool
self and other values to be equal, and is used by ==.