pub struct FleetConfig {
pub nodes: HashMap<String, DeploymentNode>,
pub builders: HashMap<String, Builder>,
pub flake_uri: String,
pub ansible_config: Option<AnsibleFleetConfig>,
pub slurm_config: Option<SlurmFleetConfig>,
pub ray_config: Option<RayFleetConfig>,
pub skypilot_config: Option<SkypilotFleetConfig>,
}Expand description
Complete fleet configuration produced by Nix evaluation.
Fields§
§nodes: HashMap<String, DeploymentNode>Deployment nodes keyed by hostname.
builders: HashMap<String, Builder>Available remote builders keyed by hostname.
flake_uri: StringFlake URI for builds (e.g. “.” or “github:user/repo”).
ansible_config: Option<AnsibleFleetConfig>Ansible configuration (if ansible integration is enabled).
slurm_config: Option<SlurmFleetConfig>Slurm configuration (if slurm integration is enabled).
ray_config: Option<RayFleetConfig>Ray configuration (if ray integration is enabled).
skypilot_config: Option<SkypilotFleetConfig>SkyPilot configuration (if skypilot integration is enabled).
Implementations§
Source§impl FleetConfig
impl FleetConfig
Sourcepub fn from_file(path: &Path) -> Result<Self, ConfigError>
pub fn from_file(path: &Path) -> Result<Self, ConfigError>
Load fleet configuration from a JSON file.
Sourcepub fn from_json(json: &str) -> Result<Self, ConfigError>
pub fn from_json(json: &str) -> Result<Self, ConfigError>
Load fleet configuration from a JSON string.
Get nodes matching a set of tags (any match).
Sourcepub fn nodes_by_names(&self, names: &[String]) -> Vec<&DeploymentNode>
pub fn nodes_by_names(&self, names: &[String]) -> Vec<&DeploymentNode>
Get nodes matching a list of names (supports consortium NodeSet patterns).
Sourcepub fn node_names(&self) -> Vec<String>
pub fn node_names(&self) -> Vec<String>
Get all node names as a sorted vector.
Sourcepub fn builder_names(&self) -> Vec<String>
pub fn builder_names(&self) -> Vec<String>
Get all builder names as a sorted vector.
Sourcepub fn machines_file(&self) -> String
pub fn machines_file(&self) -> String
Generate a Nix machines file string from the builder pool.
Trait Implementations§
Source§impl Clone for FleetConfig
impl Clone for FleetConfig
Source§fn clone(&self) -> FleetConfig
fn clone(&self) -> FleetConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more