printer

package
v1.0.153 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrettyFormat      string = "pretty-printer"
	JsonFormat        string = "json"
	JunitResultFormat string = "junit"
	PrometheusFormat  string = "prometheus"
)

Variables

View Source
var INDENT = "   "

Functions

func GetWriter added in v1.0.148

func GetWriter(outputFile string) *os.File

Types

type IPrinter added in v1.0.87

type IPrinter interface {
	ActionPrint(opaSessionObj *cautils.OPASessionObj)
	SetWriter(outputFile string)
	Score(score float32)

	// FinalizeData convert 'opaSessionObj' data to be ready for printing/reporting
	FinalizeData(opaSessionObj *cautils.OPASessionObj)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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