Skip to main content

Module shared

Module shared 

Source
Expand description

Types shared between the CLI and the HTTP server.

Everything in this module is “wire-shaped” data — request parameter structs, deserialization helpers for SAT YAML files, and re-exports of the response types returned by the manta server. There is no business logic here. Both crate::cli and crate::server/crate::service consume these types; nothing in this module depends on either layer.

Future-proofing: once the codebase is split into a Cargo workspace, this module becomes the manta-shared library crate.

Modules§

auth
Wire types for the POST /api/v1/auth/{token,validate} endpoints.
cluster_status
Pure helpers for summarizing node and cluster status.
dto
Wire response types shared by both binaries.
params
Request parameter structs passed from the CLI to the server.
sat_file
Deserialization types for HPE Cray SAT (System Admin Toolkit) YAML files.