Documentation ¶
Index ¶
- func NewPrinter(printFormat, formatVersion string, verboseMode bool, ...) printer.IPrinter
- type ResultsHandler
- func (resultsHandler *ResultsHandler) GetData() *cautils.OPASessionObj
- func (resultsHandler *ResultsHandler) GetPrinter() printer.IPrinter
- func (resultsHandler *ResultsHandler) GetReporter() reporter.IReport
- func (resultsHandler *ResultsHandler) GetResults() *reporthandlingv2.PostureReport
- func (resultsHandler *ResultsHandler) GetRiskScore() float32
- func (resultsHandler *ResultsHandler) HandleResults() error
- func (resultsHandler *ResultsHandler) SetData(data *cautils.OPASessionObj)
- func (resultsHandler *ResultsHandler) ToJson() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.