formatters

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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

func NewReturned

func NewReturned() *factoryReturned

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) string

func (*Base) Writer

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

type BaseReturned

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

func NewBaseReturned

func NewBaseReturned() *BaseReturned

func (*BaseReturned) BaseDir

func (b *BaseReturned) BaseDir() string

func (*BaseReturned) DebugEnabled

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

func (*BaseReturned) GroupResults

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

func (*BaseReturned) IncludeIgnored

func (b *BaseReturned) IncludeIgnored() bool

func (*BaseReturned) IncludePassed

func (b *BaseReturned) IncludePassed() bool

func (*BaseReturned) OutputReturned

func (b *BaseReturned) OutputReturned(results scan.Results) ([]byte, error)

func (*BaseReturned) Path

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

func (*BaseReturned) Writer

func (b *BaseReturned) 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 FormatterReturned

type FormatterReturned interface {
	OutputReturned(scan.Results) ([]byte, 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