formatters

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (b *Base) Path(result scan.Result, metadata types.Metadata) 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, metadata types.Metadata) 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