validate

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package validate implements consistency checks for a PRISM Control store (TRD §9).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Check   string `json:"check"`
	Level   string `json:"level"` // "error" or "warning"
	Message string `json:"message"`
}

Finding is a single validation problem.

type Result

type Result struct {
	Findings []Finding `json:"findings"`
}

Result holds all findings from a validation run.

func Run

func Run(ctx context.Context, s store.Store, now time.Time) (*Result, error)

Run executes all validation checks against the store.

func (*Result) Errors

func (r *Result) Errors() []Finding

Errors returns only error-level findings.

func (*Result) OK

func (r *Result) OK() bool

OK returns true if there are no error-level findings.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL