Documentation ¶
Overview ¶
Package version contains parsers and methods to validate versions and version updates
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constraint ¶
type Constraint struct { AllowDowngrade bool `yaml:"allow_downgrade"` AllowPrerelease bool `yaml:"allow_prerelease"` Type string `yaml:"type"` }
Constraint document how a version update should be handled
func (Constraint) ShouldApply ¶
func (c Constraint) ShouldApply(oldVersion, newVersion string) (bool, error)
ShouldApply checks whether a new version should overwrite the old one given the parameters inside the Constraint
Click to show internal directories.
Click to hide internal directories.