Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostureReportVersion ¶
type PostureReportVersion string
const ( EPostureReportV1 PostureReportVersion = "v1" EPostureReportV2 PostureReportVersion = "V2" )
type ScoreWrapper ¶
type ScoreWrapper struct {
// contains filtered or unexported fields
}
provides a wrapper for scoreUtils, since there's no common interface between postureReportV1 and PostureReportV2
and the need of concrete objects
I've decided to create scoreWrapper that will allow calculating score regardless (as long as opaSessionObj is there)
func NewScoreWrapper ¶
func NewScoreWrapper(opaSessionObj *cautils.OPASessionObj) *ScoreWrapper
func (*ScoreWrapper) Calculate ¶
func (su *ScoreWrapper) Calculate(reportVersion PostureReportVersion) error
Click to show internal directories.
Click to hide internal directories.