exceptions

package
v0.0.281 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor added in v0.0.225

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

Processor processes exceptions.

func NewProcessor added in v0.0.225

func NewProcessor() *Processor

func (*Processor) GetResourceExceptions added in v0.0.225

func (p *Processor) GetResourceExceptions(ruleExceptions []armotypes.PostureExceptionPolicy, workload workloadinterface.IMetadata, clusterName string) []armotypes.PostureExceptionPolicy

GetResourceException get exceptions of single resource

func (*Processor) ListRuleExceptions added in v0.0.225

func (p *Processor) ListRuleExceptions(exceptionPolicies []armotypes.PostureExceptionPolicy, frameworkName, controlName, controlID, ruleName string) []armotypes.PostureExceptionPolicy

func (*Processor) SetControlExceptions added in v0.0.225

func (p *Processor) SetControlExceptions(controlReport *reporthandling.ControlReport, exceptionsPolicies []armotypes.PostureExceptionPolicy, clusterName, frameworkName string)

SetControlExceptions add exceptions to control report

func (*Processor) SetFrameworkExceptions added in v0.0.225

func (p *Processor) SetFrameworkExceptions(frameworkReport *reporthandling.FrameworkReport, exceptionsPolicies []armotypes.PostureExceptionPolicy, clusterName string)

SetFrameworkExceptions add exceptions to framework report

func (*Processor) SetRuleExceptions added in v0.0.225

func (p *Processor) SetRuleExceptions(ruleReport *reporthandling.RuleReport, exceptionsPolicies []armotypes.PostureExceptionPolicy, clusterName, frameworkName, controlName, controlID string)

SetRuleExceptions add exceptions to rule report

func (*Processor) SetRuleResponsExceptions added in v0.0.225

func (p *Processor) SetRuleResponsExceptions(results []reporthandling.RuleResponse, ruleExceptions []armotypes.PostureExceptionPolicy, clusterName string)

SetRuleExceptions add exceptions to rule respons structure

Directories

Path Synopsis
internal
hashmap
Package hashmap provides a hashing function to uniquely identify sets such as map[string]string.
Package hashmap provides a hashing function to uniquely identify sets such as map[string]string.

Jump to

Keyboard shortcuts

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