tools

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEmbedToolDefinitions

func GetEmbedToolDefinitions() map[string]Tool

Types

type PathTransformation

type PathTransformation struct {
	Pattern     regexp.Regexp
	Replacement string
}

func (PathTransformation) Apply

func (pt PathTransformation) Apply(path string) (string, bool)

type ResultParser

type ResultParser func([]byte) (*sarif.Report, error)

func GetParser

func GetParser(name string) (ResultParser, error)

type Tool

type Tool struct {
	Name          string
	Image         string
	Cmd           []string
	InputPath     string
	OutputPath    string
	OutputFile    string
	CaptureStdout bool // Will ignore OutputPath and OutputFile if true, since it uses stdout
	Parser        ResultParser
	// contains filtered or unexported fields
}

func ToolFromYaml

func ToolFromYaml(content []byte) (*Tool, error)

func (Tool) ApplyPathTransformations

func (t Tool) ApplyPathTransformations(path string) string

Directories

Path Synopsis
parsers

Jump to

Keyboard shortcuts

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