printers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONPrinter

type JSONPrinter struct{}

JSONPrinter implements a Printer that prints the report in JSON format

func (*JSONPrinter) PrintObj

func (*JSONPrinter) PrintObj(report types.Report, w io.Writer) error

type MarkdownPrinter

type MarkdownPrinter struct{}

MarkdownPrinter implements a Printer that prints the report in Markdown format

func (*MarkdownPrinter) PrintObj

func (*MarkdownPrinter) PrintObj(report types.Report, w io.Writer) error

type Printer

type Printer interface {
	PrintObj(types.Report, io.Writer) error
}

Printer is an interface that defines a method for printing a Report to an io.Writer

type TablePrinter

type TablePrinter struct {
	DisableZoraBanner bool
}

TablePrinter implements a Printer that prints the report in table format

func (*TablePrinter) PrintObj

func (r *TablePrinter) PrintObj(report types.Report, w io.Writer) error

type YAMLPrinter

type YAMLPrinter struct{}

YAMLPrinter implements a Printer that prints the report in YAML format

func (*YAMLPrinter) PrintObj

func (*YAMLPrinter) PrintObj(report types.Report, w io.Writer) error

Jump to

Keyboard shortcuts

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