cradle_shared/consts.rs
1/// Run command
2/// Sent by the cli
3/// Tells the agent to start the checks
4pub const CMD_RUN: u8 = 0x01;
5/// Stop command
6/// Sent by the cli
7/// Tells the agent to stop executing
8pub const CMD_STOP: u8 = 0x02;
9/// Status command
10/// Sent by the cli
11/// Requests the agent's current status
12pub const CMD_STATUS: u8 = 0x03;
13
14/// Result response
15/// Sent by the agent
16/// Tells the cli that the following message contains a check result
17pub const RESP_RESULT: u8 = 0x10;
18/// Done response
19/// Sent by the agent
20/// Tells the cli that the agent has finished its execution
21pub const RESP_DONE: u8 = 0x11;
22/// Error response
23/// Sent by the agent
24/// Tells the cli that an error has occurred during agent execution
25pub const RESP_ERROR: u8 = 0x12;
26/// Log response
27/// Sent by the agent
28/// Tells the cli that the following message contains an agent log entry
29pub const RESP_LOG: u8 = 0x13;
30/// Constant that contains this crate's package version
31pub const SHARED_VERSION: &str = env!("CARGO_PKG_VERSION");