#![allow(clippy::result_large_err)]
#[cfg(all(feature = "vm", target_os = "linux"))]
pub mod a3s_runtime_driver;
pub mod audit;
pub mod box_record;
pub mod box_state;
pub mod cache;
pub(crate) mod file_lock;
pub mod fs;
pub mod grpc;
pub mod host_check;
pub mod local_execution;
pub mod log;
pub mod managed_execution_store;
pub mod network;
pub mod oci;
pub mod process;
pub mod prom;
pub mod resize;
mod resolved_image;
pub mod rootfs;
pub mod sandbox;
pub mod snapshot;
mod store_io;
#[cfg(unix)]
pub mod tee;
#[cfg(feature = "vm")]
pub mod vm;
#[cfg(feature = "vm")]
pub mod vmm;
pub mod volume;
#[cfg(feature = "compose")]
pub mod compose;
#[cfg(feature = "operator")]
pub mod operator;
#[cfg(feature = "pool")]
pub mod pool;
#[cfg(feature = "scale")]
pub mod scale;
pub use audit::{read_audit_log, AuditLog, AuditQuery};
#[cfg(all(feature = "vm", target_os = "linux"))]
pub use a3s_runtime_driver::{BoxRuntimeDriver, BoxRuntimeDriverConfig};
pub use box_record::{
BoxRecord, HealthCheck, ManagedExecutionMetadata, ManagedExecutionOperation,
ManagedExecutionState, ManagedRestartCompletion, ManagedRestartOutcome,
};
pub use box_state::BoxStateStore;
#[cfg(feature = "vm")]
pub use local_execution::VmLocalExecutionBackend;
pub use local_execution::{
acquire_execution_lifecycle_lock, ExecutionLifecycleLock, LocalExecutionBackend,
LocalExecutionHandle, LocalExecutionManager, LocalExecutionObservation,
};
pub use managed_execution_store::{
ManagedExecutionReservation, ManagedExecutionStore, ManagedExecutionStoreError,
ManagedExecutionStoreResult,
};
pub use process::{is_process_alive, is_process_alive_with_identity, pid_start_time};
#[cfg(unix)]
pub use grpc::{
AttestationClient, ExecClient, PtyClient, RaTlsAttestationClient, StreamingExec,
StreamingExecInput, StreamingPty, StreamingPtyInput,
};
#[cfg(unix)]
pub use grpc::{SealClient, SecretEntry, SecretInjector};
pub use host_check::check_virtualization_support;
pub use network::NetworkStore;
pub use a3s_box_core::StoredImage;
pub use oci::{CredentialStore, PushResult, RegistryProtocol, RegistryPusher};
pub use oci::{
ImagePuller, ImageReference, ImageStore, PullProgress, PullProgressEventFn, PullProgressState,
RegistryAuth, RegistryPullPolicy,
};
pub use oci::{OciImage, SignResult, SignaturePolicy};
pub use prom::RuntimeMetrics;
pub use resolved_image::{load_resolved_image_config, RESOLVED_IMAGE_CONFIG_FILE};
pub use snapshot::SnapshotStore;
#[cfg(unix)]
pub use tee::{seal, unseal};
#[cfg(unix)]
pub use tee::{
verify_attestation, verify_attestation_with_time, AmdKdsClient, AttestationPolicy,
MinTcbPolicy, PolicyResult, VerificationResult,
};
#[cfg(unix)]
pub use tee::{AttestationReport, AttestationRequest, PlatformInfo};
#[cfg(feature = "vm")]
pub use vm::{BoxState, PullProgressFn, VmManager};
#[cfg(feature = "vm")]
pub use vmm::{
Entrypoint, FsMount, InstanceSpec, NetworkInstanceConfig, ShimHandler, TeeInstanceConfig,
VmController, VmHandler, VmMetrics, VmmProvider,
};
pub use resize::{validate_update, ResizeResult, ResourceUpdate};
pub use volume::VolumeStore;
#[cfg(feature = "build")]
pub use oci::{BuildConfig, BuildRunPoolConfig, Dockerfile, Instruction};
#[cfg(feature = "compose")]
#[allow(deprecated)]
pub use compose::{ComposeProject, ComposeRuntimePlan, HealthCheckSpec};
#[cfg(feature = "operator")]
pub use operator::AutoscalerController;
#[cfg(feature = "pool")]
pub use pool::WarmPool;
#[cfg(feature = "scale")]
pub use scale::ScaleManager;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub use a3s_box_core::{ATTEST_VSOCK_PORT, EXEC_VSOCK_PORT, PORT_FWD_VSOCK_PORT, PTY_VSOCK_PORT};
pub const DEFAULT_IMAGE_CACHE_SIZE: u64 = 10 * 1024 * 1024 * 1024;