Documentation
¶
Overview ¶
Package validate checks run directories for structural and data integrity before they are submitted for upload.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Name string `json:"name"`
Status CheckStatus `json:"status"`
Error string `json:"error,omitempty"`
}
Check represents a single validation check result.
type CheckStatus ¶
type CheckStatus string
CheckStatus represents the outcome of a validation check.
const ( // StatusPassed indicates the check completed without errors. StatusPassed CheckStatus = "passed" // StatusFailed indicates the check detected an error. StatusFailed CheckStatus = "failed" // StatusSkipped indicates the check was not run because a prerequisite failed. StatusSkipped CheckStatus = "skipped" )
type Result ¶
type Result struct {
Valid bool `json:"valid"`
RunID string `json:"run_id,omitempty"`
RunDir string `json:"run_dir"`
Checks []Check `json:"checks"`
Errors []string `json:"errors"`
Warnings []string `json:"warnings,omitempty"`
}
Result contains the full validation outcome for a run directory.
Click to show internal directories.
Click to hide internal directories.