Skip to main content

Crate a3s_box_core

Crate a3s_box_core 

Source
Expand description

A3S Box Core - Foundational Types and Abstractions

This module provides the foundational types, traits, and abstractions used across the A3S Box MicroVM runtime.

Re-exports§

pub use audit::AuditAction;
pub use audit::AuditConfig;
pub use audit::AuditEvent;
pub use audit::AuditOutcome;
pub use compose::ComposeConfig;
pub use config::BoxConfig;
pub use config::ResourceConfig;
pub use config::ResourceLimits;
pub use error::BoxError;
pub use error::Result;
pub use event::BoxEvent;
pub use event::EventEmitter;
pub use exec::ExecChunk;
pub use exec::ExecEvent;
pub use exec::ExecExit;
pub use exec::ExecMetrics;
pub use exec::StreamType;
pub use exec::ExecOutput;
pub use exec::ExecRequest;
pub use exec::FileOp;
pub use exec::FileRequest;
pub use exec::FileResponse;
pub use network::IsolationMode;
pub use network::NetworkConfig;
pub use network::NetworkEndpoint;
pub use network::NetworkMode;
pub use network::NetworkPolicy;
pub use operator::BoxAutoscaler;
pub use operator::BoxAutoscalerSpec;
pub use operator::BoxAutoscalerStatus;
pub use operator::MetricType;
pub use platform::Platform;
pub use pty::PTY_VSOCK_PORT;
pub use scale::InstanceDeregistration;
pub use scale::InstanceEvent;
pub use scale::InstanceHealth;
pub use scale::InstanceInfo;
pub use scale::InstanceRegistration;
pub use scale::InstanceState;
pub use scale::ScaleConfig;
pub use scale::ScaleRequest;
pub use scale::ScaleResponse;
pub use security::SeccompMode;
pub use security::SecurityConfig;
pub use snapshot::SnapshotConfig;
pub use snapshot::SnapshotMetadata;
pub use tee::ATTEST_VSOCK_PORT;
pub use tee::detect_tee;
pub use tee::is_tee_available;
pub use tee::TeeCapability;
pub use tee::TeeType;
pub use traits::AuditSink;
pub use traits::CacheBackend;
pub use traits::CacheEntry;
pub use traits::CacheStats;
pub use traits::CredentialProvider;
pub use traits::EventBus;
pub use traits::ImageRegistry;
pub use traits::ImageStoreBackend;
pub use traits::MetricsCollector;
pub use traits::NetworkStoreBackend;
pub use traits::NoopMetrics;
pub use traits::PulledImage;
pub use traits::SnapshotStoreBackend;
pub use traits::StoredImage;
pub use traits::VolumeStoreBackend;
pub use vmm::Entrypoint;
pub use vmm::FsMount;
pub use vmm::InstanceSpec;
pub use vmm::NetworkInstanceConfig;
pub use vmm::TeeInstanceConfig;
pub use vmm::VmHandler;
pub use vmm::VmMetrics;
pub use vmm::VmmProvider;
pub use vmm::DEFAULT_SHUTDOWN_TIMEOUT_MS;
pub use volume::VolumeConfig;

Modules§

audit
Audit logging types for security-relevant event tracking.
compose
Compose file types for multi-container orchestration.
config
dns
DNS configuration helpers for guest rootfs.
error
event
exec
Exec types for host-to-guest command execution.
log
Logging driver types and configuration.
network
Network types for container-to-container communication.
operator
Kubernetes BoxAutoscaler CRD types.
platform
Platform types for multi-architecture image builds.
pty
PTY protocol types for interactive terminal sessions.
scale
Scale API types for Gateway ↔ Box communication.
security
Security configuration for guest process hardening.
snapshot
VM Snapshot Types — Configuration-based snapshot metadata.
tee
TEE (Trusted Execution Environment) types and detection.
traits
Core trait abstractions for pluggable backends.
vmm
VMM contract — types and traits for pluggable VM backends.
volume
Volume types for named volume management.

Constants§

VERSION
A3S Box version

Functions§

dirs_home
Get the A3S home directory.