report

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: AGPL-3.0 Imports: 10 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, 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 {
	FileName        string                        `json:"Target"`
	Vulnerabilities []types.DetectedVulnerability `json:"Vulnerabilities"`
}

type Results

type Results []Result

type TableWriter

type TableWriter struct {
	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