Versions in this module Expand all Collapse all v0 v0.13.0 Apr 25, 2021 v0.12.0 Apr 25, 2021 Changes in this version + const AND + const EQ + const GT + const GTE + const LT + const LTE + const OR + var Formats = []Format + type Comparator interface + Compare func(*Version) (int, error) + type Constraint interface + Satisfied func(*Version) (bool, error) + func GetConstraint(constStr string, format Format) (Constraint, error) + func MustGetConstraint(constStr string, format Format) Constraint + type Format int + const DebFormat + const PythonFormat + const RpmFormat + const SemanticFormat + const UnknownFormat + func FormatFromPkgType(t pkg.Type) Format + func ParseFormat(userStr string) Format + func (f Format) String() string + type Version struct + Format Format + Raw string + func NewVersion(raw string, format Format) (*Version, error) + func NewVersionFromPkg(p pkg.Package) (*Version, error) + func (v Version) CPEs() []syftPkg.CPE + func (v Version) String() string