Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PackageDetailsWithVulnerabilities ¶
type PackageDetailsWithVulnerabilities struct { internal.PackageDetails Vulnerabilities database.Vulnerabilities `json:"vulnerabilities"` Ignored database.Vulnerabilities `json:"ignored"` }
type Report ¶
type Report struct { lockfile.Lockfile // Packages is a map of packages and any vulnerabilities that they're affected by Packages []PackageDetailsWithVulnerabilities `json:"packages"` }
func (Report) HasIgnoredVulnerabilities ¶
func (Report) HasKnownVulnerabilities ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
func (*Reporter) PrintDatabaseLoadErr ¶
func (*Reporter) PrintErrorf ¶ added in v0.13.0
PrintErrorf writes the given message to stderr, regardless of if the reporter is outputting as JSON or not
func (*Reporter) PrintJSONResults ¶
func (r *Reporter) PrintJSONResults()
PrintJSONResults prints any results that this reporter has collected to stdout as JSON.
func (*Reporter) PrintKnownEcosystems ¶
func (r *Reporter) PrintKnownEcosystems()
func (*Reporter) PrintResult ¶
func (*Reporter) PrintTextf ¶ added in v0.13.0
PrintTextf writes the given message to stdout, _unless_ the reporter is set to output as JSON, in which case it writes the message to stderr.
This should be used for content that should always be outputted, but that should not be captured when piping if outputting JSON.
Click to show internal directories.
Click to hide internal directories.