Documentation
¶
Index ¶
- Constants
- func AllowListRule(match models.Match, config Config) bool
- func DenyListRule(matches []models.Match, config Config) error
- func NewReportDecoder() *gce.JSONWriterDecoder[ScanReport]
- func NewValidator() gcv.Validator[models.Match, Config]
- func ThresholdRule(matches []models.Match, config Config) error
- type Config
- type ListItem
- type ScanReport
Constants ¶
View Source
const ConfigFieldName = "grype"
View Source
const ReportType = "Anchore Grype Scan Report"
Variables ¶
This section is empty.
Functions ¶
func NewReportDecoder ¶
func NewReportDecoder() *gce.JSONWriterDecoder[ScanReport]
Types ¶
type Config ¶
type Config struct {
AllowList []ListItem `yaml:"allowList,omitempty" json:"allowList,omitempty"`
DenyList []ListItem `yaml:"denyList,omitempty" json:"denyList,omitempty"`
EPSSAllowThreshold float64 `yaml:"epssAllowThreshold,omitempty" json:"epssAllowThreshold,omitempty"`
EPSSDenyThreshold float64 `yaml:"epssDenyThreshold,omitempty" json:"epssDenyThreshold,omitempty"`
Critical int `yaml:"critical" json:"critical"`
High int `yaml:"high" json:"high"`
Medium int `yaml:"medium" json:"medium"`
Low int `yaml:"low" json:"low"`
Negligible int `yaml:"negligible" json:"negligible"`
Unknown int `yaml:"unknown" json:"unknown"`
}
type ScanReport ¶
func (*ScanReport) String ¶
func (r *ScanReport) String() string
Click to show internal directories.
Click to hide internal directories.