manta-shared 2.0.0-beta.13

Shared types and pure helpers used by both manta-cli and manta-server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Parameters for `GET /hardware-clusters` and `GET /hardware-nodes-list`.

/// Typed parameters for fetching cluster hardware inventory.
pub struct GetHardwareClusterParams {
  /// Cluster (HSM group) name to inventory; `None` falls back to the
  /// operator default.
  pub hsm_group_name: Option<String>,
  /// Operator default from `cli.toml`'s `parent_hsm_group`, used when
  /// `hsm_group_name` is absent.
  pub settings_hsm_group_name: Option<String>,
}

/// Typed parameters for fetching hardware inventory for a list of nodes.
#[derive(Debug)]
pub struct GetHardwareNodesListParams {
  /// Comma-separated xnames.
  pub xnames: String,
}