exceptions

package
v0.0.321 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 16 Imported by: 4 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterExceptionsByFrameworks added in v0.0.313

func FilterExceptionsByFrameworks(exceptionPolicies []armotypes.PostureExceptionPolicy, frameworkNames []string, controlID, ruleName string) []armotypes.PostureExceptionPolicy

FilterExceptionsByFrameworks uses the shared posture-policy matcher without allocating a full resource exception processor for each result status view. It returns copies containing only tuples applicable to frameworkNames; an empty frameworkNames slice selects framework-agnostic policies.

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

GetResourceExceptions returns the exception policies that match workload. It checks container membership across the whole workload; use SetRuleResponsExceptions when FailedPaths are available for precise matching.

func (*Processor) GetResourceExceptionsForPaths added in v0.0.319

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

GetResourceExceptionsForPaths is GetResourceExceptions for a finding reported on the given paths: a containerName exception only matches when it covers the containers those paths point at. Paths without a container index keep the workload-wide container check.

func (*Processor) ListRuleExceptions added in v0.0.225

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

func (*Processor) MatchesCluster added in v0.0.293

func (p *Processor) MatchesCluster(designator *identifiers.PortalDesignator, clusterName string) bool

MatchesCluster reports whether the designator's cluster constraint matches clusterName. A nil designator or empty cluster field matches any cluster.

func (*Processor) RegexCompareControlID added in v0.0.293

func (p *Processor) RegexCompareControlID(pattern, target string) bool

RegexCompareControlID reports whether pattern case-insensitively matches target.

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, 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