1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! # herolib-virt
//!
//! Virtualization and containerization tools for building, managing, and deploying
//! containers, virtual machines, filesystem layers, and Kubernetes clusters.
//!
//! ## Features
//!
//! - **Buildah**: OCI/Docker image building with builder pattern API
//! - **Nerdctl**: Container lifecycle management with containerd
//! - **QCOW2**: Disk image management and creation
//! - **Cloud Hypervisor**: Virtual machine management
//! - **Virtiofsd**: High-performance directory sharing for VMs
//! - **Kubernetes**: Cluster management, configuration, and operations
//! - **Cross-Platform**: Works across Windows, macOS, and Linux
//! - **Rhai Integration**: Full support for Rhai scripting language (optional feature)
//! - **Error Handling**: Comprehensive error types and handling
//!
//! ## Modules
//!
//! - [`buildah`]: Container image building with Buildah
//! - [`nerdctl`]: Container management with Nerdctl
//! - [`qcow2`]: QCOW2 disk image management
//! - [`cloudhv`]: Cloud Hypervisor virtual machine management
//! - [`virtiofsd`]: High-performance directory sharing for virtual machines
//! - [`kubernetes`]: Kubernetes cluster management and operations (requires `kubernetes` feature)
//!
//! ## Example
//!
//! ```rust,no_run
//! use herolib_virt::buildah;
//!
//! // Create a container builder
//! let mut builder = buildah::Builder::new("mybuilder", "alpine:latest")?;
//! builder.run("apk add curl")?;
//! let image = builder.commit("myimage")?;
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```
// Rhai integration - consolidated module
// Re-export modules from herolib_os for convenience
pub use ;
// Re-export main types and functions for convenience
pub use ;
pub use CloudHypervisorError;
pub use ;
pub use Qcow2Error;
pub use ;
pub use ;
pub use ;