semantic

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LatestAllowedKey = "latest-allowed"
	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){readTgVersionFromTgSwitchFile, readTgVersionFromTerragruntFile} //nolint
)

Functions

func CmpVersion

func CmpVersion(v1Str string, v2Str string) int

func LatestVersionFromList added in v1.0.8

func LatestVersionFromList(versions []string) (string, error)

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 StableVersion

func StableVersion(versionStr string) bool

Types

This section is empty.

Directories

Path Synopsis
parser
tf

Jump to

Keyboard shortcuts

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