Documentation ¶
Index ¶
Constants ¶
View Source
const Any = ""
Variables ¶
This section is empty.
Functions ¶
func ValidateString ¶
Types ¶
type Attributes ¶ added in v0.104.0
type Attributes struct { Part string Vendor string Product string Version string Update string Edition string SWEdition string TargetSW string TargetHW string Other string Language string }
func MustAttributes ¶ added in v0.104.0
func MustAttributes(cpeStr string) Attributes
func NewAttributes ¶ added in v0.104.0
func NewAttributes(cpeStr string) (Attributes, error)
NewAttributes will parse a formatted Attributes string and return a Attributes object. Some input, such as the existence of whitespace characters is allowed, however, a more strict validation is done after this sanitization process.
func NewWithAny ¶ added in v0.102.0
func NewWithAny() Attributes
func (Attributes) BindToFmtString ¶ added in v0.104.0
func (c Attributes) BindToFmtString() string
func (Attributes) String ¶ added in v0.104.0
func (c Attributes) String() string
type BySourceThenSpecificity ¶ added in v0.104.0
type BySourceThenSpecificity []CPE
func (BySourceThenSpecificity) Len ¶ added in v0.104.0
func (b BySourceThenSpecificity) Len() int
func (BySourceThenSpecificity) Less ¶ added in v0.104.0
func (b BySourceThenSpecificity) Less(i, j int) bool
func (BySourceThenSpecificity) Swap ¶ added in v0.104.0
func (b BySourceThenSpecificity) Swap(i, j int)
type BySpecificity ¶
type BySpecificity []Attributes
func (BySpecificity) Len ¶
func (c BySpecificity) Len() int
func (BySpecificity) Less ¶
func (c BySpecificity) Less(i, j int) bool
func (BySpecificity) Swap ¶
func (c BySpecificity) Swap(i, j int)
type CPE ¶
type CPE struct { Attributes Attributes Source Source }
CPE contains the attributes of an NVD Attributes and a string describing where Syft got the Attributes, e.g. generated by heuristics vs looked up in the NVD Attributes dictionary
func Merge ¶
Merge returns unique SourcedCPEs that are found in A or B Two SourcedCPEs are identical if their source and normalized string are identical
Click to show internal directories.
Click to hide internal directories.