format

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 8 Imported by: 0

README

format

import "github.com/brittonhayes/pillager/pkg/format"

Package format contains the renderer and available output formats

Index

type Custom

type Custom struct {
    // contains filtered or unexported fields
}
func (Custom) Report
func (c Custom) Report(w io.Writer, findings []report.Finding) error
func (*Custom) WithTemplate
func (c *Custom) WithTemplate(t string)

type HTML

type HTML struct{}
func (HTML) Report
func (h HTML) Report(w io.Writer, findings []report.Finding) error

type HTMLTable

type HTMLTable struct{}
func (HTMLTable) Report
func (h HTMLTable) Report(w io.Writer, findings []report.Finding) error

type JSON

type JSON struct{}
func (JSON) Report
func (j JSON) Report(w io.Writer, findings []report.Finding) error

type Markdown

type Markdown struct{}
func (Markdown) Report
func (m Markdown) Report(w io.Writer, findings []report.Finding) error

type Reporter

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

type Reporter interface {
    Report(io.Writer, []report.Finding) error
}
func StringToReporter
func StringToReporter(s string) Reporter

StringToReporter takes in a string representation of the preferred reporter.

type Simple

type Simple struct{}
func (Simple) Report
func (s Simple) Report(w io.Writer, findings []report.Finding) error

type TOML

type TOML struct{}
func (TOML) Report
func (t TOML) Report(w io.Writer, findings []report.Finding) error

type Table

type Table struct{}
func (Table) Report
func (t Table) Report(w io.Writer, findings []report.Finding) error

type YAML

type YAML struct{}
func (YAML) Report
func (y YAML) Report(w io.Writer, findings []report.Finding) error

Generated by gomarkdoc

Documentation

Overview

Package format contains the renderer and available output formats

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Custom added in v0.7.0

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

func (Custom) Report added in v0.7.0

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

func (*Custom) WithTemplate added in v0.7.0

func (c *Custom) WithTemplate(t string)

type HTML added in v0.7.0

type HTML struct{}

func (HTML) Report added in v0.7.0

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

type HTMLTable added in v0.7.0

type HTMLTable struct{}

func (HTMLTable) Report added in v0.7.0

func (h HTMLTable) Report(w io.Writer, findings []report.Finding) error

type JSON added in v0.7.0

type JSON struct{}

func (JSON) Report added in v0.7.0

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

type Markdown added in v0.7.0

type Markdown struct{}

func (Markdown) Report added in v0.7.0

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

type Raw added in v0.8.0

type Raw struct{}

func (Raw) Report added in v0.8.0

func (r Raw) Report(w io.Writer, findings []report.Finding) error

type Reporter added in v0.7.0

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

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

func StringToReporter added in v0.7.0

func StringToReporter(s string) Reporter

StringToReporter takes in a string representation of the preferred reporter.

type Simple added in v0.7.0

type Simple struct{}

func (Simple) Report added in v0.7.0

func (s Simple) Report(w io.Writer, findings []report.Finding) error

type TOML added in v0.7.0

type TOML struct{}

func (TOML) Report added in v0.7.0

func (t TOML) Report(w io.Writer, findings []report.Finding) error

type Table added in v0.7.0

type Table struct{}

func (Table) Report added in v0.7.0

func (t Table) Report(w io.Writer, findings []report.Finding) error

type YAML added in v0.7.0

type YAML struct{}

func (YAML) Report added in v0.7.0

func (y YAML) Report(w io.Writer, findings []report.Finding) error

Jump to

Keyboard shortcuts

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