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 ¶
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.
Click to show internal directories.
Click to hide internal directories.