Files
runner_rust/examples/sal/README.md
Timur Gordon 14ff6cae67 feat: reorganize examples and add signature support to JobBuilder
- Reorganized examples into osiris/, sal/, and utils/ folders
- Moved hardcoded scripts to separate .rhai files
- Added signature() method to JobBuilder for job signing
- Updated OSIRIS context to use block_in_place instead of runtime
- Removed runtime field from OsirisContext
- Added typed save() methods for Note and Event objects
- Updated all examples to use new structure and APIs
2025-10-27 13:49:39 +01:00

65 lines
1.3 KiB
Markdown

# SAL (System Abstraction Layer) Examples
This directory contains examples demonstrating the SAL DSL modules for system operations.
## Running the Example
```bash
cargo run --example sal
```
## Available Scripts
The `scripts/` directory contains various Rhai scripts demonstrating different SAL modules:
### Basics
- `basics/` - Basic Rhai language features and syntax
### Containers
- `containers/` - Container management operations
### Git
- `git/` - Git repository operations
### Hero Vault
- `hero_vault/` - Secure credential storage and retrieval
### Kubernetes
- `kubernetes/` - Kubernetes cluster management
### Mycelium
- `mycelium/` - Mycelium network operations
### Network
- `network/` - Network utilities and operations
### PostgreSQL
- `postgresclient/` - PostgreSQL database operations
### Process
- `process/` - Process management and execution
### Redis
- `redisclient/` - Redis operations
### Service Manager
- `service_manager/` - System service management
### Zinit
- `zinit/` - Zinit service manager operations
## Script Structure
Each script demonstrates:
- Module initialization
- Common operations
- Error handling
- Best practices
## Configuration
The example uses:
- Default database path: `/tmp/sal_engine.db`
- Context isolation per script
- Verbose output for debugging