fields

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFindings added in v0.0.5

func ValidateFindings(findings []Finding) error

Types

type Finding added in v0.0.5

type Finding struct {
	Severity string `json:"severity"`
	Found    int    `json:"found"`
	Allowed  int    `json:"allowed"`
}

Finding abstracts the CVEs from any generic scan report

func (Finding) String added in v0.0.5

func (f Finding) String() string

String output for human eyes

func (Finding) Test added in v0.0.5

func (f Finding) Test() error

Test compares the thresholds to the number of findings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL