formatters

package
v0.63.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *factory

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

func NewBase

func NewBase() *Base

func (*Base) BaseDir

func (b *Base) BaseDir() string

func (*Base) DebugEnabled

func (b *Base) DebugEnabled() bool
func (b *Base) GetLinks(result scan.Result) []string

func (*Base) GroupResults

func (b *Base) GroupResults(results []scan.Result) ([]GroupedResult, error)

func (*Base) IncludeIgnored

func (b *Base) IncludeIgnored() bool

func (*Base) IncludePassed

func (b *Base) IncludePassed() bool

func (*Base) Output

func (b *Base) Output(results scan.Results) error

func (*Base) Path added in v0.52.0

func (b *Base) Path(result scan.Result) string

func (*Base) Writer

func (b *Base) Writer() io.Writer

type ConfigurableFormatter

type ConfigurableFormatter interface {
	Writer() io.Writer
	GetLinks(scan.Result) []string
	BaseDir() string
	DebugEnabled() bool
	GroupResults([]scan.Result) ([]GroupedResult, error)
	IncludePassed() bool
	IncludeIgnored() bool
	Path(result scan.Result) string
}

type Formatter

type Formatter interface {
	Output(scan.Results) error
}

type GroupedResult

type GroupedResult struct {
	// contains filtered or unexported fields
}

func (*GroupedResult) Add

func (g *GroupedResult) Add(i int, res scan.Result) error

func (*GroupedResult) Len

func (g *GroupedResult) Len() int

func (*GroupedResult) Results

func (g *GroupedResult) Results() []scan.Result

func (*GroupedResult) String

func (g *GroupedResult) String() string

Jump to

Keyboard shortcuts

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