Expand description
§alien-commands
Commands protocol implementation for Alien.
This crate provides a transport-agnostic protocol for sending commands to customer-side agents without requiring inbound connections.
§Features
- Core types: Always available protocol types and serialization
- server: Command server implementation for agent managers
- runtime: Command envelope processing for alien-runtime
- openapi: OpenAPI schema generation support
Re-exports§
pub use error::Error;pub use error::ErrorData;pub use error::Result;pub use server::create_axum_router;pub use server::CommandRegistry;pub use server::CommandServer;pub use server::InMemoryCommandRegistry;pub use runtime::decode_params;pub use runtime::parse_envelope;pub use runtime::submit_response;pub use types::*;
Modules§
Structs§
- Command
Status Response - Response to status queries
- Create
Command Request - Request to create a new ARC command
- Create
Command Response - Response to command creation
- Envelope
- ARC envelope sent to deployments
- Lease
Info - Lease information
- Lease
Request - Request for acquiring leases
- Lease
Response - Response to lease acquisition
- Response
Handling - Response handling configuration for deployments
- Storage
Upload - Storage upload information
- Submit
Response Request - Request to submit a command response (from deployment)
- Upload
Complete Request - Request to mark upload as complete
- Upload
Complete Response - Response to upload completion
Enums§
- Body
Spec - Body specification supporting inline and storage modes
- Command
Response - Command response from deployment
- Command
State - Command states in the ARC protocol lifecycle
Constants§
- INLINE_
MAX_ BYTES - Default inline size limit in bytes (150 KB) This is the most conservative platform limit (Azure Service Bus Standard at 256KB) with headroom for base64 encoding (~4/3 inflation) and envelope metadata.
- PROTOCOL_
VERSION - Protocol version identifier