gaitpolicy

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 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