Skip to main content

Crate alien_commands

Crate alien_commands 

Source
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§

error
runtime
server
Command Server Implementation
types

Structs§

CommandStatusResponse
Response to status queries
CreateCommandRequest
Request to create a new ARC command
CreateCommandResponse
Response to command creation
Envelope
ARC envelope sent to deployments
LeaseInfo
Lease information
LeaseRequest
Request for acquiring leases
LeaseResponse
Response to lease acquisition
ResponseHandling
Response handling configuration for deployments
StorageUpload
Storage upload information
SubmitResponseRequest
Request to submit a command response (from deployment)
UploadCompleteRequest
Request to mark upload as complete
UploadCompleteResponse
Response to upload completion

Enums§

BodySpec
Body specification supporting inline and storage modes
CommandResponse
Command response from deployment
CommandState
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