score

package
v2.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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