Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edition ¶
func (*Edition) IsAvailable ¶ added in v1.77.0
IsAvailable reports whether the package is available in this edition. The edition's own entry wins, then the defaultEdition entry; with neither present the package is treated as available, so it is banned only when its licensing explicitly marks it unavailable.
func (*Edition) IsEnabled ¶ added in v1.77.0
IsEnabled reports whether the active bundle (e.Bundle) enables the package in this edition. The edition's own entry wins when present — its bundle list is authoritative even when empty — and the defaultEdition entry is consulted only when the edition has no entry of its own (mirrors IsAvailable's resolution).
type EditionLicense ¶ added in v1.77.0
EditionLicense is a single edition's license: whether the package ships in that edition and which bundles enable it by default.
type Licensing ¶ added in v1.77.0
type Licensing struct {
// Editions maps an edition name to its license. The special key
// defaultEdition supplies the fallback used when an edition has no entry.
Editions map[string]EditionLicense
}
Licensing is a package's per-edition availability and bundle membership. The edition gate and the bundle floor resolve their decisions against it via Edition's IsAvailable/IsEnabled helpers, so the edition-vs-defaultEdition resolution lives here as the single source of truth.