manta-shared 2.0.0-beta.12

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
//! Parameters for `GET /clusters`.

/// Typed parameters for fetching cluster node details.
pub struct GetClusterParams {
  /// Cluster (HSM group) name to query; falls back to
  /// `settings_hsm_group_name` when absent.
  pub hsm_group_name: Option<String>,
  /// Operator default from `cli.toml`'s `parent_hsm_group`.
  pub settings_hsm_group_name: Option<String>,
  /// Optional power-status filter (e.g. `OFF`, `ON`, `READY`,
  /// `STANDBY`, `PENDING`, `FAILED`, `CONFIGURED`); returns all nodes
  /// when absent.
  pub status_filter: Option<String>,
}