Documentation ¶
Index ¶
Constants ¶
View Source
const ( EQ operator = "=" GT operator = ">" LT operator = "<" GTE operator = ">=" LTE operator = "<=" OR operator = "||" AND operator = "," )
Variables ¶
View Source
var Formats = []Format{ SemanticFormat, ApkFormat, DebFormat, MavenFormat, RpmFormat, PythonFormat, KBFormat, GemFormat, PortageFormat, }
Functions ¶
This section is empty.
Types ¶
type Comparator ¶
type Constraint ¶
func GetConstraint ¶
func GetConstraint(constStr string, format Format) (Constraint, error)
func MustGetConstraint ¶
func MustGetConstraint(constStr string, format Format) Constraint
MustGetConstraint is meant for testing only, do not use within the library
type NonFatalConstraintError ¶ added in v0.20.0
type NonFatalConstraintError struct {
// contains filtered or unexported fields
}
NonFatalConstraintError should be used any time an unexpected but recoverable condition is encountered while checking version constraint satisfaction. The error should get returned by any implementer of the Constraint interface. If returned by the Satisfied method on the Constraint interface, this error will be caught and logged as a warning in the FindMatchesByPackageDistro function in grype/matcher/common/distro_matchers.go
func (NonFatalConstraintError) Error ¶ added in v0.20.0
func (e NonFatalConstraintError) Error() string
Source Files ¶
- apk_constraint.go
- apk_version.go
- comparator.go
- constraint.go
- constraint_expression.go
- constraint_unit.go
- deb_constraint.go
- deb_version.go
- format.go
- fuzzy_constraint.go
- fuzzy_version.go
- gemfile_version.go
- kb_contraint.go
- kb_version.go
- maven_constraint.go
- maven_version.go
- operator.go
- pep440_constraint.go
- pep440_version.go
- portage_constraint.go
- portage_version.go
- rpm_constraint.go
- rpm_version.go
- semantic_constraint.go
- semantic_version.go
- version.go
Click to show internal directories.
Click to hide internal directories.