gaitpolicy

package
v1.11.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentConstraint added in v1.6.0

type DeploymentConstraint struct {
	PolicyPath       string   `json:"policy_path,omitempty" yaml:"-"`
	Workflow         string   `json:"workflow,omitempty" yaml:"workflow"`
	Path             string   `json:"path,omitempty" yaml:"path"`
	Environment      string   `json:"environment,omitempty" yaml:"environment"`
	Branch           string   `json:"branch,omitempty" yaml:"branch"`
	RequiredChecks   []string `json:"required_checks,omitempty" yaml:"required_checks"`
	SecurityGates    []string `json:"security_gates,omitempty" yaml:"security_gates"`
	FreezeWindows    []string `json:"freeze_windows,omitempty" yaml:"freeze_windows"`
	KillSwitches     []string `json:"kill_switches,omitempty" yaml:"kill_switches"`
	ApprovalRequired bool     `json:"approval_required,omitempty" yaml:"approval_required"`
}

func LoadDeploymentConstraints added in v1.6.0

func LoadDeploymentConstraints(root string) ([]DeploymentConstraint, error)

type Detector

type Detector struct{}

func New

func New() Detector

func (Detector) Detect

func (Detector) Detect(_ context.Context, scope detect.Scope, _ detect.Options) ([]model.Finding, error)

func (Detector) ID

func (Detector) ID() string

type LoadResult added in v1.3.0

type LoadResult struct {
	BlockedTools map[string]string
	PolicyFiles  []string
	ParseErrors  []*model.ParseError
}

func LoadBlockedTools

func LoadBlockedTools(root string) (LoadResult, error)

LoadBlockedTools reads gait policy files and returns blocked tools keyed to stable rule IDs.

Jump to

Keyboard shortcuts

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