feat: implement RFS client with authentication and file management APIs

This commit is contained in:
Sameh Abouelsaad
2025-08-27 17:59:20 +03:00
parent b39f24ca8f
commit c2969621b1
154 changed files with 8065 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ sal-net = { workspace = true }
sal-zinit-client = { workspace = true }
sal-kubernetes = { workspace = true }
sal-service-manager = { workspace = true, features = ["rhai"] }
sal-rfs-client = { workspace = true }
[features]

View File

@@ -80,6 +80,9 @@ pub use sal_virt::rhai::{
bah_new, register_bah_module, register_nerdctl_module, register_rfs_module,
};
// Re-export RFS client module from sal-rfs-client package under a distinct name
pub use sal_rfs_client::rhai::register_rfs_module as register_rfs_client_module;
// Re-export git module from sal-git package
pub use sal_git::rhai::register_git_module;
pub use sal_git::{GitRepo, GitTree};
@@ -163,6 +166,10 @@ pub fn register(engine: &mut Engine) -> Result<(), Box<rhai::EvalAltResult>> {
// Register Net module functions
sal_net::rhai::register_net_module(engine)?;
// Register RFS client module functions (OpenAPI-based client)
// Note: This is distinct from sal-virt's RFS which handles filesystem ops.
sal_rfs_client::rhai::register_rfs_module(engine)?;
// RFS module functions are now registered as part of sal_virt above
// Register Crypto module functions - TEMPORARILY DISABLED