version

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL