formatters

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFormatter

type DefaultFormatter struct {
}

func (DefaultFormatter) PrintTransgressions

func (d DefaultFormatter) PrintTransgressions(transgressions []match.Transgression, redacted bool) (string, error)

type Formatter

type Formatter interface {
	PrintTransgressions([]match.Transgression, bool) (string, error)
}

func GetFormatter

func GetFormatter(format string) Formatter

type JsonFormatter

type JsonFormatter struct {
}

func (JsonFormatter) PrintTransgressions

func (j JsonFormatter) PrintTransgressions(transgressions []match.Transgression, redacted bool) (string, error)

type SarifFormatter

type SarifFormatter struct {
}

func (SarifFormatter) PrintTransgressions

func (s SarifFormatter) PrintTransgressions(transgressions []match.Transgression, redacted bool) (string, error)

Jump to

Keyboard shortcuts

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