policies

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExamplePolicy

func CreateExamplePolicy(filePath string) error

CreateExamplePolicy creates an example policy file

func LoadPolicyFiles

func LoadPolicyFiles(policyPath string) ([]string, error)

LoadPolicyFiles loads policy files from a directory or file

Types

type PolicyEngine

type PolicyEngine struct {
	Debug bool
	// contains filtered or unexported fields
}

PolicyEngine represents a policy engine for enforcing custom rules

func NewPolicyEngine

func NewPolicyEngine(policyFiles []string) *PolicyEngine

NewPolicyEngine creates a new policy engine

func (*PolicyEngine) EvaluateWorkflow

func (e *PolicyEngine) EvaluateWorkflow(workflow parser.WorkflowFile) ([]rules.Finding, error)

EvaluateWorkflow evaluates a workflow against the configured policies

Jump to

Keyboard shortcuts

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