report

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(w io.Writer, tpl string, findings []pillager.Finding) error

Render renders a finding in a custom go template format to the provided writer.

Types

type CSV added in v0.11.1

type CSV struct{}

func (CSV) Report added in v0.11.1

func (CSV) Report(w io.Writer, findings []pillager.Finding) error

type Custom

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

func (Custom) Report

func (c Custom) Report(w io.Writer, findings []pillager.Finding) error

func (*Custom) WithTemplate

func (c *Custom) WithTemplate(t string)

type HTML

type HTML struct{}

func (HTML) Report

func (HTML) Report(w io.Writer, findings []pillager.Finding) error

type JSON

type JSON struct{}

func (JSON) Report

func (JSON) Report(w io.Writer, findings []pillager.Finding) error

type JSONPretty

type JSONPretty struct{}

func (JSONPretty) Report

func (JSONPretty) Report(w io.Writer, findings []pillager.Finding) error

type Markdown

type Markdown struct{}

func (Markdown) Report

func (Markdown) Report(w io.Writer, findings []pillager.Finding) error

type Reporter

type Reporter interface {
	Report(io.Writer, []pillager.Finding) error
}

Reporter is the interface that each of the canonical output formats implement.

func StringToReporter

func StringToReporter(s string) Reporter

StringToReporter takes in a string representation of the preferred reporter.

type Wordlist added in v0.10.0

type Wordlist struct{}

func (Wordlist) Report added in v0.10.0

func (Wordlist) Report(w io.Writer, findings []pillager.Finding) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳