contracts

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OnFailFail             = engine.OnFailFail
	OnFailWarn             = engine.OnFailWarn
	OnFailRequireExemption = engine.OnFailRequireExemption
	OnFailEscalate         = engine.OnFailEscalate
	OnFailHaltAgents       = engine.OnFailHaltAgents
	OnFailAlert            = engine.OnFailAlert
	OnFailHalt             = engine.OnFailHalt
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditResult

type AuditResult = engine.AuditResult

func RunAudit

func RunAudit(contracts []*Contract, tags []string, root string) AuditResult

RunAudit evaluates loaded contracts for a given project/contracts root.

type Check

type Check = engine.Check

type CheckResult

type CheckResult = engine.CheckResult

type Contract

type Contract = engine.Contract

func LoadDir

func LoadDir(dir string) ([]*Contract, error)

LoadDir loads all YAML contracts from a directory.

type OnFail

type OnFail = engine.OnFail

Jump to

Keyboard shortcuts

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