Documentation
¶
Index ¶
Constants ¶
View Source
const ( SchemaRelativePath = "scripts/benchmark/benchmark-evidence.schema.json" SchemaVersion = "benchmark-evidence/v1" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppendReport ¶
AppendReport summarizes the effect of an append operation.
type DuplicateRecordsError ¶
type DuplicateRecordsError struct {
RecordIDs []string
}
DuplicateRecordsError reports duplicate evidence records that were skipped.
func (*DuplicateRecordsError) Error ¶
func (e *DuplicateRecordsError) Error() string
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator loads and applies the benchmark evidence schema from a repo root.
func NewValidator ¶
NewValidator compiles the benchmark evidence schema from repoRoot.
func (*Validator) AppendLedger ¶
func (v *Validator) AppendLedger(inputPath, ledgerPath string) (*AppendReport, error)
AppendLedger appends validated evidence records to a JSONL ledger.
Click to show internal directories.
Click to hide internal directories.