supportmatrix

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// SchemaVersion is the only support-contract schema understood by this package.
	SchemaVersion = 1

	// StatusSupported identifies a scope backed by release-blocking evidence.
	StatusSupported = "supported"
	// StatusEvidencePending identifies implemented behavior that is not in the
	// supported release scope because required runtime evidence is missing.
	StatusEvidencePending = "implemented_evidence_pending"
	// StatusNotClaimed identifies a scope for which the release makes no support claim.
	StatusNotClaimed = "not_claimed"
)
View Source
const (
	MarkdownStart = "<!-- BEGIN GENERATED RUNTIME SUPPORT MATRIX -->"
	MarkdownEnd   = "<!-- END GENERATED RUNTIME SUPPORT MATRIX -->"
)

MarkdownStart and MarkdownEnd delimit the generated compatibility table.

Variables

This section is empty.

Functions

func RenderMarkdown

func RenderMarkdown(contract Contract) string

RenderMarkdown renders the human-readable table from the checked contract.

func ReplaceMarkdown

func ReplaceMarkdown(document string, rendered string) (string, error)

ReplaceMarkdown replaces exactly one generated support-matrix block.

Types

type Contract

type Contract struct {
	SchemaVersion int      `json:"schemaVersion"`
	Published     string   `json:"published"`
	ReleaseRun    string   `json:"releaseRun"`
	ReleaseCommit string   `json:"releaseCommit"`
	ReleaseChecks []string `json:"releaseChecks"`
	Rows          []Row    `json:"rows"`
}

Contract is the machine-readable source for Runtime Compatibility Matrix v1.

func Load

func Load(path string) (Contract, error)

Load reads and validates one support contract.

func (Contract) Validate

func (contract Contract) Validate() error

Validate enforces the support-state and release-evidence contract.

type Row

type Row struct {
	ID              string   `json:"id"`
	Platform        string   `json:"platform"`
	BuildMode       string   `json:"buildMode"`
	Scope           string   `json:"scope"`
	Status          string   `json:"status"`
	BlockingChecks  []string `json:"blockingChecks,omitempty"`
	CurrentChecks   []string `json:"currentChecks,omitempty"`
	Limits          string   `json:"limits"`
	MissingEvidence string   `json:"missingEvidence,omitempty"`
	FollowUp        string   `json:"followUp,omitempty"`
}

Row describes one deliberately bounded platform and build-mode support claim.

Jump to

Keyboard shortcuts

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