Skip to main content

manta_shared/shared/params/
kernel_parameters.rs

1//! Parameters for `GET /kernel-parameters`.
2//!
3//! The internal `KernelParamOperation` enum used by the server's
4//! kernel-parameter orchestration is not exposed here — it lives in
5//! `crate::service::kernel_parameters` because it carries operational logic
6//! (mutate, handles_sbps_images) rather than wire data.
7
8/// Typed parameters for fetching kernel boot parameters.
9pub struct GetKernelParametersParams {
10  /// HSM group whose members' kernel parameters should be returned.
11  pub hsm_group: Option<String>,
12  /// Explicit comma-separated xnames; mutually exclusive with
13  /// `hsm_group`.
14  pub nodes: Option<String>,
15  /// Operator default from `cli.toml`'s `parent_hsm_group`, used
16  /// when neither `hsm_group` nor `nodes` is supplied.
17  pub settings_hsm_group_name: Option<String>,
18}