Documentation
¶
Index ¶
- func DirExists(root, rel string) bool
- func FileExists(root, rel string) bool
- func Glob(root, pattern string) ([]string, error)
- func ParseJSONFile(detectorID, root, rel string, dst any) *model.ParseError
- func ParseTOMLFile(detectorID, root, rel string, dst any) *model.ParseError
- func ParseYAMLFile(detectorID, root, rel string, dst any) *model.ParseError
- func WalkFiles(root string) ([]string, error)
- type Detector
- type Options
- type Registry
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func ParseJSONFile ¶
func ParseJSONFile(detectorID, root, rel string, dst any) *model.ParseError
func ParseTOMLFile ¶
func ParseTOMLFile(detectorID, root, rel string, dst any) *model.ParseError
func ParseYAMLFile ¶
func ParseYAMLFile(detectorID, root, rel string, dst any) *model.ParseError
Types ¶
type Detector ¶
type Detector interface {
ID() string
Detect(context.Context, Scope, Options) ([]model.Finding, error)
}
Detector emits canonical findings for one repo scope.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores detectors with deterministic execution order.
func NewRegistry ¶
func NewRegistry() *Registry
Click to show internal directories.
Click to hide internal directories.