opa

package
v0.0.0-...-d14f77f Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessOPA

func ProcessOPA(ctx context.Context, obj map[string]any, req admission.Request, configuration models.Configuration, iConfig models.InsightsConfig) (models.ReportInfo, error)

ProcessOPA runs all CustomChecks against the provided Kubernetes object.

func ProcessOPAV1

func ProcessOPAV1(ctx context.Context, obj map[string]any, resourceName, apiGroup, resourceKind, resourceNamespace string, check opa.OPACustomCheck, checkInstances []opa.CheckSetting, insightsInfo *rego.InsightsInfo) ([]opa.ActionItem, error)

ProcessOPAV1 runs a V1 CustomCheck against a Kubernetes object, returning action items and potentially multiple wrapped errors (as returned by multiple instances; CheckSettings associated with a CustomCheck).

func ProcessOPAV2

func ProcessOPAV2(ctx context.Context, obj map[string]any, resourceName, apiGroup, resourceKind, resourceNamespace string, check opa.OPACustomCheck, opaCustomLibs []opa.OPACustomLibrary, insightsInfo *rego.InsightsInfo) ([]opa.ActionItem, error)

ProcessOPAV2 runs a V2 CustomCheck against a Kubernetes object, returning action items and any error encountered while processing the check.

Types

This section is empty.

Jump to

Keyboard shortcuts

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