version

package
v0.0.0-...-c3373f0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMajorMismatch = errors.New("major version mismatch")
	ErrMinorMismatch = errors.New("minor version mismatch")
)

Functions

func GetVersion

func GetVersion(v cue.Value) (*semver.Version, error)

getVersion extracts the version from the given CUE value. If the version is not found or invalid, an error is returned.

func ValidateVersions

func ValidateVersions(blueprintVersion *semver.Version, schemaVersion *semver.Version) error

validateVersion validates the version of the given blueprint against the schema. If the blueprint major version is greater than the schema major version, an error is returned. If the blueprint minor version is greater than the schema minor version, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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