Skip to main content

manta_shared/shared/params/
session.rs

1//! Parameters for `GET /sessions`.
2
3/// Typed parameters for fetching CFS sessions.
4pub struct GetSessionParams {
5  /// HSM group whose sessions should be returned.
6  pub hsm_group: Option<String>,
7  /// Filter to sessions whose `ansible_limit` mentions any of these
8  /// xnames. Empty means "no xname filter".
9  pub xnames: Vec<String>,
10  /// Lower-bound session age expressed as a duration string
11  /// (e.g. `"1h"`, `"2d"`).
12  pub min_age: Option<String>,
13  /// Upper-bound session age expressed as a duration string.
14  pub max_age: Option<String>,
15  /// Session type filter: `"image"` or `"runtime"`.
16  pub session_type: Option<String>,
17  /// Status filter: `"pending"`, `"running"`, or `"complete"`.
18  pub status: Option<String>,
19  /// Exact session name.
20  pub name: Option<String>,
21  /// Cap on the number of sessions returned (most recent first).
22  pub limit: Option<u8>,
23}