Documentation
¶
Index ¶
Constants ¶
const (
// ConfigSchemaVersion is the supported compatibility configuration schema.
ConfigSchemaVersion = 1
)
Variables ¶
This section is empty.
Functions ¶
func BaselinePath ¶
BaselinePath returns a variant baseline relative to the configuration file.
Types ¶
type Config ¶
type Config struct {
Schema int `json:"schema"`
Module string `json:"module"`
ExcludedPackagePrefixes []string `json:"excludedPackagePrefixes"`
Variants []Variant `json:"variants"`
}
Config defines the module, exclusions, and build variants whose public APIs are frozen.
func LoadConfig ¶
LoadConfig reads and validates a compatibility configuration.
func (Config) BaselineOwner ¶
BaselineOwner returns the first configured variant for a shared baseline. Only that owner may update the baseline without also checking every selected alias variant.
func (Config) SelectVariants ¶
SelectVariants resolves requested variant names in configuration order.
type Delta ¶
Delta describes the exact removals and additions relative to a full baseline.
func ManifestDelta ¶
ManifestDelta computes a deterministic overlay from base to current.
func ParseDelta ¶
ParseDelta validates and parses a checked-in baseline overlay.
type Manifest ¶
type Manifest struct {
Packages []PackageAPI
}
Manifest is the canonical public API for all discovered library packages.
func ApplyDelta ¶
ApplyDelta reconstructs a variant manifest and rejects stale overlays.
func ParseManifest ¶
ParseManifest validates and parses a checked-in baseline.
type PackageAPI ¶
PackageAPI is the canonical exported API for one import path.
type Variant ¶
type Variant struct {
Name string `json:"name"`
GOOS string `json:"goos"`
GOARCH string `json:"goarch"`
CGOEnabled bool `json:"cgoEnabled"`
Tags []string `json:"tags,omitempty"`
Baseline string `json:"baseline"`
Base string `json:"base,omitempty"`
Description string `json:"description"`
}
Variant defines one build context and the baseline it must match.