Documentation
¶
Overview ¶
Package releaseevidence creates and verifies versioned RobotGo release evidence snapshots.
Index ¶
Constants ¶
const (
// SchemaVersion identifies the release-evidence JSON contract.
SchemaVersion = "1"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CI ¶
type CI struct {
Provider string `json:"provider"`
RunID string `json:"run_id"`
RunAttempt int `json:"run_attempt"`
Matrix string `json:"matrix"`
}
CI identifies the GitHub Actions execution and matrix cell.
type Config ¶
type Config struct {
Commit string
Tree string
Ref string
RunID string
RunAttempt int
Matrix string
TestCommand string
TestLogPath string
ExpectedCGO bool
}
Config contains trusted workflow inputs used to create a Snapshot.
type Expectations ¶
Expectations bind a verified evidence file to its expected matrix cell and optionally to an exact source and test command.
type Snapshot ¶
type Snapshot struct {
SchemaVersion string `json:"schema_version"`
Source Source `json:"source"`
CI CI `json:"ci"`
Toolchain Toolchain `json:"toolchain"`
Test Test `json:"test"`
Diagnostics robotgo.RuntimeDiagnostics `json:"runtime_diagnostics"`
}
Snapshot is the versioned, machine-readable release-evidence document.
type Source ¶
type Source struct {
Commit string `json:"commit"`
Tree string `json:"tree"`
Ref string `json:"ref"`
}
Source identifies the exact repository state used for a release check.