Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker validates version constraints using semantic versioning. Always acts as a blocker - packages cannot be enabled if version requirements aren't met.
func NewChecker ¶
func NewChecker(getter Getter, constraints *semver.Constraints, reason string, logger *log.Logger) *Checker
NewChecker creates a new version checker with the given getter and constraints.
Example constraints:
- ">=1.21" - Minimum version 1.21
- ">=1.21, <2.0" - Range from 1.21 to 2.0
- "~1.21" - Patch releases of 1.21
- "^1.21" - Minor releases of 1.x
Click to show internal directories.
Click to hide internal directories.