resultshandling

package
v0.0.0-...-cb424ea Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrinter

func NewPrinter(printFormat, formatVersion string, verboseMode bool) printer.IPrinter

NewPrinter defind output format

Types

type ResultsHandler

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

func NewResultsHandler

func NewResultsHandler(reporterObj reporter.IReport, printerObj printer.IPrinter) *ResultsHandler

func (*ResultsHandler) GetData

func (resultsHandler *ResultsHandler) GetData() *cautils.OPASessionObj

GetData get scan/action related data (policies, resources, results, etc.). Call ToJson function if you wish the json representation of the data

func (*ResultsHandler) GetPrinter

func (resultsHandler *ResultsHandler) GetPrinter() printer.IPrinter

GetPrinter get printer object

func (*ResultsHandler) GetReporter

func (resultsHandler *ResultsHandler) GetReporter() reporter.IReport

GetReporter get reporter object

func (*ResultsHandler) GetRiskScore

func (resultsHandler *ResultsHandler) GetRiskScore() float32

GetScore return scan risk-score

func (*ResultsHandler) HandleResults

func (resultsHandler *ResultsHandler) HandleResults()

HandleResults handle the scan results according to the pre defind interfaces

func (*ResultsHandler) SetData

func (resultsHandler *ResultsHandler) SetData(data *cautils.OPASessionObj)

SetData set scan/action related data

func (*ResultsHandler) ToJson

func (resultsHandler *ResultsHandler) ToJson() ([]byte, error)

ToJson return results in json format

Directories

Path Synopsis
v1
v2
v1
v2

Jump to

Keyboard shortcuts

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