dynamicanalysis

package
v0.0.0-...-80e6c59 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCommand

func DefaultCommand(ecosystem pkgecosystem.Ecosystem) string

func MakeAnalysisArgs

func MakeAnalysisArgs(p *pkgmanager.Pkg, phase analysisrun.DynamicPhase) []string

MakeAnalysisArgs returns the arguments to pass to the dynamic analysis command in the sandbox for the given phase of dynamic analysis on a package. The actual analysis command depends on the ecosystem, see pkgmanager.PkgManager.DynamicAnalysisCommand()

Types

type Result

type Result struct {
	StraceSummary     analysisrun.StraceSummary
	FileWritesSummary analysisrun.FileWritesSummary
	// IDs that correlate to the name of the file that saves the actual write buffer contents.
	// We save this separately so that we don't need to dig through the FileWritesSummary later on.
	FileWriteBufferIds []string
}

func Run

func Run(ctx context.Context, sb sandbox.Sandbox, command string, args []string, straceLogger *slog.Logger) (*Result, error)

Jump to

Keyboard shortcuts

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