report

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 15 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteResults added in v0.2.0

func WriteResults(format string, output io.Writer, severities []dbTypes.Severity, results Results, outputTemplate string, light bool) error

Types

type JsonWriter

type JsonWriter struct {
	Output io.Writer
}

func (JsonWriter) Write

func (jw JsonWriter) Write(results Results) error

type Result

type Result struct {
	Target          string                        `json:"Target"`
	Type            string                        `json:"Type,omitempty"`
	Packages        []ftypes.Package              `json:"Packages,omitempty"`
	Vulnerabilities []types.DetectedVulnerability `json:"Vulnerabilities"`
}

type Results

type Results []Result

type TableWriter

type TableWriter struct {
	Severities []dbTypes.Severity
	Output     io.Writer
	Light      bool
}

func (TableWriter) Write

func (tw TableWriter) Write(results Results) error

type TemplateWriter added in v0.2.0

type TemplateWriter struct {
	Output   io.Writer
	Template *template.Template
}

func (TemplateWriter) Write added in v0.2.0

func (tw TemplateWriter) Write(results Results) error

type Writer

type Writer interface {
	Write(Results) error
}

Jump to

Keyboard shortcuts

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