pub struct Config {
pub linux_distro: String,
pub server_role: String,
pub security_level: String,
pub monitoring: bool,
pub backup_frequency: String,
pub deployed_apps: Vec<String>,
pub custom_firewall_rules: Vec<String>,
pub update_schedule: String,
pub use_containers: bool,
pub use_kubernetes: bool,
}Expand description
Represents the configuration for the server setup and maintenance tool.
This struct contains all the necessary settings and options for configuring a server, including the operating system, security settings, and deployment options.
Fields§
§linux_distro: StringThe Linux distribution being used (e.g., “ubuntu”, “centos”, “fedora”)
server_role: StringThe role of the server (e.g., “web”, “database”, “application”)
security_level: StringThe desired security level (e.g., “basic”, “intermediate”, “advanced”)
monitoring: boolWhether to enable monitoring on the server
backup_frequency: StringThe frequency of backups (e.g., “hourly”, “daily”, “weekly”)
deployed_apps: Vec<String>A list of applications to be deployed on the server
custom_firewall_rules: Vec<String>A list of custom firewall rules to be applied
update_schedule: StringThe schedule for automatic updates (e.g., “daily”, “weekly”, “monthly”)
use_containers: boolWhether to use containerization for deployments
use_kubernetes: boolWhether to use Kubernetes for container orchestration