policy

package
v1.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	ID          string `yaml:"id"`
	Title       string `yaml:"title"`
	Severity    string `yaml:"severity"`
	Remediation string `yaml:"remediation"`
	Kind        string `yaml:"kind"`
	Version     int    `yaml:"version"`
}

Rule is the deterministic policy contract loaded from YAML.

func LoadRules

func LoadRules(customPolicyPath, repoRoot string) ([]Rule, error)

type RulePack

type RulePack struct {
	Rules []Rule `yaml:"rules"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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