feat: Add support for virt package
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run

- Add sal-virt package to the workspace members
- Update MONOREPO_CONVERSION_PLAN.md to reflect the
  completion of sal-process and sal-virt packages
- Update src/lib.rs to include sal-virt
- Update src/postgresclient to use sal-virt instead of local
  virt module
- Update tests to use sal-virt
This commit is contained in:
Mahmoud-Emad
2025-06-23 02:37:14 +03:00
parent 3e3d0a1d45
commit 455f84528b
112 changed files with 2924 additions and 579 deletions

33
virt/src/lib.rs Normal file
View File

@@ -0,0 +1,33 @@
//! # SAL Virt Package
//!
//! The `sal-virt` package provides comprehensive virtualization and containerization tools
//! for building, managing, and deploying containers and filesystem layers.
//!
//! ## Features
//!
//! - **Buildah**: OCI/Docker image building with builder pattern API
//! - **Nerdctl**: Container lifecycle management with containerd
//! - **RFS**: Remote filesystem mounting and layer management
//! - **Cross-Platform**: Works across Windows, macOS, and Linux
//! - **Rhai Integration**: Full support for Rhai scripting language
//! - **Error Handling**: Comprehensive error types and handling
//!
//! ## Modules
//!
//! - [`buildah`]: Container image building with Buildah
//! - [`nerdctl`]: Container management with Nerdctl
//! - [`rfs`]: Remote filesystem operations
//!
//! This package depends on `sal-process` for command execution and `sal-os` for
//! filesystem operations.
pub mod buildah;
pub mod nerdctl;
pub mod rfs;
pub mod rhai;
// Re-export main types and functions for convenience
pub use buildah::{Builder, BuildahError, ContentOperations};
pub use nerdctl::{Container, NerdctlError, HealthCheck, ContainerStatus};
pub use rfs::{RfsBuilder, PackBuilder, RfsError, Mount, MountType, StoreSpec};