Expand description
DTOs and stable primitives for cockpitctl.
This crate is intentionally boring:
- pure data structures
- stable IDs and enums
- deterministic ordering helpers
It must not depend on filesystem, clap, or network.
Structs§
- Artifact
Pointer - Pointer to an artifact produced by a sensor.
- Buildfix
Actuator Config - External command configuration for buildfix actuation.
- Buildfix
Actuator Result - Structured response returned by a buildfix actuator command on stdout.
- Buildfix
Apply Request - Structured request sent to a buildfix actuator command on stdin.
- Buildfix
Apply Summary - Buildfix auto-apply evidence surfaced in
cockpit.report.v1data. - Buildfix
Plan - A buildfix plan: a set of fixes to apply.
- Buildfix
Policy - Buildfix auto-apply policy in cockpit.toml.
- Buildfix
Summary - Summary of buildfix plans for cockpit surfacing.
- Capability
- CiInfo
- Cockpit
Config - Cockpit
Promote Hints - Promotion hints for cockpit (
data._cockpit). - Cockpit
Report - The director output: cockpit.report.v1.
- Count
Deltas - Delta counts for findings.
- Finding
- Finding
Ref - Reference to a finding that a fix addresses.
- Finding
Sort Key - A stable key used for sorting findings deterministically.
- Fix
- A single fix in a buildfix plan.
- FixSummary
- Summary of a single fix for cockpit surfacing.
- GitInfo
- Highlight
- Hook
Config - Configuration for a post-processing hook.
- Host
Info - Location
- Matched
Finding - A matched finding for a fix.
- Policy
- Policy
Sensor Snapshot - Policy
Signature Evidence - Signed evidence for the policy snapshot used to compute a cockpit verdict.
- Policy
Signing Config - Policy snapshot signing config in cockpit.toml.
- Policy
Snapshot - Preconditions
- Preconditions that must hold before applying a fix.
- Promote
Card - A card promoted to the cockpit summary from a sensor.
- RunInfo
- Sensor
Policy - A per-sensor policy in cockpit.toml.
- Sensor
Report - The shared receipt envelope for sensors.
- Sensor
Summary - A single sensor row in the cockpit aggregate report.
- Suggested
Artifact - A suggested artifact from a sensor via promotion.
- Suggested
Highlight - A suggested highlight from a sensor via promotion.
- Tool
Info - Trend
Delta - Full trend delta between a baseline and current report.
- Trend
Finding - A finding that changed between baseline and current.
- Verdict
- Verdict
Change - Change in the overall verdict between baseline and current.
- Verdict
Counts
Enums§
- Buildfix
Apply Status - Result status of buildfix auto-apply.
- Capability
Status - Hook
When - When a hook should run.
- Missing
Policy - Missing receipt behavior (policy).
- Policy
Outcome - Policy outcome for a sensor after evaluation.
- Policy
Signature Algorithm - Signature algorithm used for policy snapshot evidence.
- Presence
- Presence state for a sensor in the cockpit report.
- Safety
Level - Safety level for a fix.
- Schema
Validation - Schema validation mode for sensor receipts.
- Severity
- Trend
Change - Category of change for a trending finding.
- Verdict
Status
Constants§
- BUILDFIX_
APPLY_ REQUEST_ SCHEMA_ ID - Schema identifier for buildfix apply requests sent to actuator commands.
- BUILDFIX_
PLAN_ V1_ SCHEMA_ JSON - Embedded JSON Schema for buildfix.plan.v1.
- COCKPIT_
PROMOTE_ V1_ SCHEMA_ JSON - Embedded JSON Schema for cockpit.promote.v1.
- COCKPIT_
REPORT_ V1_ SCHEMA_ JSON - Embedded JSON Schema for cockpit.report.v1.
- POLICY_
SIGNATURE_ SCHEMA_ ID - Schema identifier for policy signature evidence.
- SENSOR_
REPORT_ V1_ SCHEMA_ JSON - Embedded JSON Schema for sensor.report.v1.
Functions§
- is_
valid_ sensor_ id - Validate a sensor ID for safe path usage.
- safety_
level_ rank - Rank a safety level for deterministic ordering and gating. Lower is safer.
- severity_
rank - verdict_
status_ rank
Type Aliases§
- Schema
Id - A schema identifier string, e.g.
builddiag.report.v1.