2025-12-08 14:08:49 -03:00
|
|
|
pub mod cache;
|
2025-11-22 22:55:35 -03:00
|
|
|
pub mod component;
|
|
|
|
|
pub mod installer;
|
|
|
|
|
pub mod os;
|
|
|
|
|
pub mod setup;
|
2025-12-08 14:08:49 -03:00
|
|
|
pub use cache::{CacheResult, DownloadCache};
|
2025-11-22 22:55:35 -03:00
|
|
|
pub use installer::PackageManager;
|
|
|
|
|
pub mod cli;
|
|
|
|
|
pub mod facade;
|
|
|
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
|
|
|
pub enum InstallMode {
|
|
|
|
|
Local,
|
|
|
|
|
Container,
|
|
|
|
|
}
|
|
|
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
|
|
|
pub enum OsType {
|
|
|
|
|
Linux,
|
|
|
|
|
MacOS,
|
|
|
|
|
Windows,
|
|
|
|
|
}
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
|
pub struct ComponentInfo {
|
|
|
|
|
pub name: &'static str,
|
|
|
|
|
pub termination_command: &'static str,
|
|
|
|
|
}
|
|
|
|
|
pub fn get_all_components() -> Vec<ComponentInfo> {
|
|
|
|
|
vec![
|
|
|
|
|
ComponentInfo {
|
|
|
|
|
name: "tables",
|
|
|
|
|
termination_command: "postgres",
|
|
|
|
|
},
|
|
|
|
|
ComponentInfo {
|
|
|
|
|
name: "cache",
|
|
|
|
|
termination_command: "redis-server",
|
|
|
|
|
},
|
|
|
|
|
ComponentInfo {
|
|
|
|
|
name: "drive",
|
|
|
|
|
termination_command: "minio",
|
|
|
|
|
},
|
|
|
|
|
ComponentInfo {
|
|
|
|
|
name: "llm",
|
|
|
|
|
termination_command: "llama-server",
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
}
|