opa

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyReader

type PolicyReader struct{}

PolicyReader Handle policy discovery and file reading

func NewPolicyReader

func NewPolicyReader() *PolicyReader

func (*PolicyReader) ReadPolicies

func (pr *PolicyReader) ReadPolicies(policiesDir string) (map[string]string, error)

ReadPolicies Read all .rego policy files from the specified directory

type Validator

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

Validator handles policy compilation and validation

func NewValidator

func NewValidator(policies map[string]string) (*Validator, error)

func NewValidatorFromDir

func NewValidatorFromDir(policiesDir string) (*Validator, error)

func (*Validator) ValidateVMs

func (v *Validator) ValidateVMs(ctx context.Context, vms *[]vsphere.VM) error

Jump to

Keyboard shortcuts

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