manta-shared 2.0.0-beta.17

Shared types and pure helpers used by both manta-cli and manta-server.
Documentation
//! Parameters for `POST /sat-file`.

/// Parameters for applying a SAT file.
///
/// The CLI renders Jinja2, parses the rendered YAML into a structured
/// value, applies the `image_only` / `session_template_only` filters
/// client-side (by removing top-level keys), and forwards the resulting
/// `serde_json::Value` plus the apply-time flags through the server to
/// the backend.
pub struct ApplySatFileParams<'a> {
  /// SAT file parsed into a structured value — Jinja2 already
  /// evaluated and `image_only` / `session_template_only` filters
  /// already applied client-side.
  pub sat_file: serde_json::Value,
  /// Ansible verbosity level (0–4) passed to any CFS sessions
  /// created by this SAT file.
  pub ansible_verbosity: Option<u8>,
  /// Extra arguments forwarded verbatim to `ansible-playbook`.
  pub ansible_passthrough: Option<&'a str>,
  /// When true, reboot affected nodes after the session templates
  /// are applied.
  pub reboot: bool,
  /// When true, stream CFS session logs to the caller as part of
  /// the response.
  pub watch_logs: bool,
  /// When true, prefix each streamed log line with its timestamp.
  pub timestamps: bool,
  /// Overwrite existing CFS configurations or IMS images instead
  /// of erroring on conflict.
  pub overwrite: bool,
  /// Render and validate the SAT file without creating any
  /// resources.
  pub dry_run: bool,
}