semantic

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LatestAllowedKey = "latest-allowed"
	LatestPreKey     = "latest-pre"
	LatestStableKey  = "latest-stable"
	LatestKey        = "latest"
	MinRequiredKey   = "min-required"
)

Variables

View Source
var (
	TfPredicateReaders = []func(*config.Config) (func(string) bool, bool, error){readTfVersionFromTerragruntFile, readTfFiles} //nolint
	TgPredicateReaders = []func(*config.Config) (func(string) bool, bool, error){readTgVersionFromTerragruntFile}              //nolint
)

Functions

func CmpVersion

func CmpVersion(v1Str string, v2Str string) int

func ParsePredicate

func ParsePredicate(behaviourOrConstraint string, displayName string, predicateReaders []func(*config.Config) (func(string) bool, bool, error), conf *config.Config) (func(string) bool, bool, error)

the boolean returned as second value indicates to reverse order for filtering.

func RetrieveVersion added in v1.0.9

func RetrieveVersion(versionFiles []VersionFile, rootVersionFilePath string, conf *config.Config) (string, error)

func StableVersion

func StableVersion(versionStr string) bool

Types

type VersionFile added in v1.0.9

type VersionFile struct {
	Name   string
	Parser func(string, *config.Config) (string, error)
}

Directories

Path Synopsis
parser
tf

Jump to

Keyboard shortcuts

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