printer

package
v2.3.3-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 11 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 {
	// contains filtered or unexported fields
}

func NewJsonPrinter

func NewJsonPrinter() *JsonPrinter

func (*JsonPrinter) ActionPrint

func (jsonPrinter *JsonPrinter) ActionPrint(ctx context.Context, opaSessionObj *cautils.OPASessionObj)

func (*JsonPrinter) Score

func (jsonPrinter *JsonPrinter) Score(score float32)

func (*JsonPrinter) SetWriter

func (jsonPrinter *JsonPrinter) SetWriter(ctx context.Context, outputFile string)

type PrometheusPrinter

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

func NewPrometheusPrinter

func NewPrometheusPrinter(verboseMode bool) *PrometheusPrinter

func (*PrometheusPrinter) ActionPrint

func (p *PrometheusPrinter) ActionPrint(ctx context.Context, opaSessionObj *cautils.OPASessionObj)

func (*PrometheusPrinter) Score

func (p *PrometheusPrinter) Score(score float32)

func (*PrometheusPrinter) SetWriter

func (p *PrometheusPrinter) SetWriter(ctx context.Context, outputFile string)

Jump to

Keyboard shortcuts

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