Documentation ¶
Index ¶
- func NewPrinter(printFormat, formatVersion string, verboseMode bool, attackTree bool, ...) printer.IPrinter
- type ResultsHandler
- func (rh *ResultsHandler) GetData() *cautils.OPASessionObj
- func (rh *ResultsHandler) GetPrinters() []printer.IPrinter
- func (rh *ResultsHandler) GetReporter() reporter.IReport
- func (rh *ResultsHandler) GetResults() *reporthandlingv2.PostureReport
- func (rh *ResultsHandler) GetRiskScore() float32
- func (rh *ResultsHandler) HandleResults() error
- func (rh *ResultsHandler) SetData(data *cautils.OPASessionObj)
- func (rh *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 (*ResultsHandler) GetData ¶
func (rh *ResultsHandler) GetData() *cautils.OPASessionObj
GetData returns scan/action related data (policies, resources, results, etc.)
Call the ToJson() method if you want the JSON representation of the data
func (*ResultsHandler) GetPrinters ¶
func (rh *ResultsHandler) GetPrinters() []printer.IPrinter
GetPrinter returns all printers
func (*ResultsHandler) GetReporter ¶
func (rh *ResultsHandler) GetReporter() reporter.IReport
GetReporter returns the reporter object
func (*ResultsHandler) GetResults ¶
func (rh *ResultsHandler) GetResults() *reporthandlingv2.PostureReport
GetResults returns the results
func (*ResultsHandler) GetRiskScore ¶
func (rh *ResultsHandler) GetRiskScore() float32
GetScore returns the result’s risk score
func (*ResultsHandler) HandleResults ¶
func (rh *ResultsHandler) HandleResults() error
HandleResults handles all necessary actions for the scan results
func (*ResultsHandler) SetData ¶
func (rh *ResultsHandler) SetData(data *cautils.OPASessionObj)
SetData sets the scan/action related data
func (*ResultsHandler) ToJson ¶
func (rh *ResultsHandler) ToJson() ([]byte, error)
ToJson returns the results in the JSON format
Click to show internal directories.
Click to hide internal directories.