opaprocessor

package
v1.0.165 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ScoreConfigPath = "/resources/config"

Variables

This section is empty.

Functions

func ConvertFrameworksToPolicies added in v1.0.148

func ConvertFrameworksToPolicies(frameworks []reporthandling.Framework, version string) *cautils.Policies

ConvertFrameworksToPolicies convert list of frameworks to list of policies

func ConvertFrameworksToSummaryDetails added in v1.0.148

func ConvertFrameworksToSummaryDetails(summaryDetails *reportsummary.SummaryDetails, frameworks []reporthandling.Framework, policies *cautils.Policies)

ConvertFrameworksToSummaryDetails initialize the summary details for the report object

Types

type OPAProcessor

type OPAProcessor struct {
	*cautils.OPASessionObj
	// contains filtered or unexported fields
}

func NewOPAProcessor

func NewOPAProcessor(sessionObj *cautils.OPASessionObj, regoDependenciesData *resources.RegoDependenciesData) *OPAProcessor

func (*OPAProcessor) Process added in v1.0.36

func (opap *OPAProcessor) Process(policies *cautils.Policies) error

type OPAProcessorHandler added in v1.0.36

type OPAProcessorHandler struct {
	// contains filtered or unexported fields
}

func NewOPAProcessorHandler added in v1.0.36

func NewOPAProcessorHandler(processedPolicy, reportResults *chan *cautils.OPASessionObj) *OPAProcessorHandler

func (*OPAProcessorHandler) ProcessRulesListenner added in v1.0.36

func (opaHandler *OPAProcessorHandler) ProcessRulesListenner()

Jump to

Keyboard shortcuts

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