Documentation
¶
Index ¶
- Variables
- func Filter[T any](slice []T, f func(T) bool) []T
- func LoadConfig(config *ScanConfig, filename string) error
- func SeverityToString(severity float64) string
- type ScanConfig
- type SliceSet
- func (s SliceSet[T]) Add(item T) SliceSet[T]
- func (s SliceSet[T]) AddAll(other SliceSet[T]) SliceSet[T]
- func (s SliceSet[T]) Contains(needle T) bool
- func (s SliceSet[T]) Distinct(other SliceSet[T]) SliceSet[T]
- func (s SliceSet[T]) Equals(other SliceSet[T]) bool
- func (s SliceSet[T]) IndexOf(needle T) int
- func (s SliceSet[T]) IsEmpty() bool
- func (s SliceSet[T]) Remove(item T) SliceSet[T]
- func (s SliceSet[T]) Strings() []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string Commit string Date string )
we promote the version, commit and date variables to package level globals
Functions ¶
func LoadConfig ¶
func LoadConfig(config *ScanConfig, filename string) error
func SeverityToString ¶
Types ¶
type ScanConfig ¶
type ScanConfig struct {
OutputTemplate string `yaml:"output,omitempty"`
Component cdx.Component `yaml:"component,omitempty"`
Author cdx.OrganizationalContact `yaml:"author,omitempty"`
Supplier cdx.OrganizationalEntity `yaml:"supplier,omitempty"`
Manufacturer cdx.OrganizationalEntity `yaml:"manufacturer,omitempty"`
}
type SliceSet ¶
type SliceSet[T comparable] []T
SliceSet is useful for _small_ (i.e. <100 items) sets of strings, for larger sets use a map[string]struct{)
func NewSet ¶
func NewSet[T comparable](items ...T) SliceSet[T]
Click to show internal directories.
Click to hide internal directories.