Documentation ¶
Overview ¶
Package semver provides functionality to parse and process semantic versions, as they are used in multiple components of Constellation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Semver ¶
Semver represents a semantic version.
func (Semver) Compare ¶
Compare compares two versions. It relies on the semver.Compare function internally.
func (Semver) CompatibleWithBinary ¶
CompatibleWithBinary returns if a version is compatible version of the current built binary. It checks if the version of the binary is equal or greater than the current version and allows a drift of at most one minor version.
func (Semver) IsUpgradeTo ¶
IsUpgradeTo returns if a version is an upgrade to another version. It checks if the version of v is greater than the version of other and allows a drift of at most one minor version.
func (Semver) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Semver) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.