scaplugin

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	DepGraph       *depgraph.DepGraph // The dependency graph.
	FileExclusions []string           // Paths for files that other plugins should ignore, as they (or related files) have already been processed by the plugin.
	LockFile       string             // The lock file path relative to the input directory.
	ManifestFile   string             // The manifest file path relative to the input directory.

	Error error // Error that occurred while building the finding, if any.
}

type Metadata

type Metadata struct {
	PackageManager string
	Name           string
	Version        string
}

type Options

type Options struct {
	AllProjects bool
	TargetFile  string
	Dev         bool
	Exclude     []string
	FailFast    bool
}

type SCAPlugin

type SCAPlugin interface {
	BuildFindingsFromDir(
		ctx context.Context,
		dir string,
		options *Options,
		log logger.Logger,
	) ([]Finding, error)
}

Jump to

Keyboard shortcuts

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