resultshandling

package
v2.0.168 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 9 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, viewType cautils.ViewTypes) 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 added in v2.0.168

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) GetResults

func (resultsHandler *ResultsHandler) GetResults() *reporthandlingv2.PostureReport

GetResults return results

func (*ResultsHandler) GetRiskScore

func (resultsHandler *ResultsHandler) GetRiskScore() float32

GetScore return scan risk-score

func (*ResultsHandler) HandleResults

func (resultsHandler *ResultsHandler) HandleResults() error

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
v2

Jump to

Keyboard shortcuts

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