Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPathNotAllowed = errors.New("the --exclude argument must be a comma separated list of directory or file names and cannot contain a path.")
Functions ¶
Types ¶
type BundleDownloader ¶
type Command ¶
type Command struct {
Output string
Logger *zerolog.Logger
FS afero.Fs
Engine Engine
Paths []string
// Exclude holds comma-split patterns (relative to input directory) to exclude from scan
Exclude []string
Bundle string
ResultsProcessor ResultsProcessor
SnykCloudEnvironment string
SnykClient cloudapi.Client
Scan string
DetectionDepth int
VarFile string
SettingsReader SettingsReader
BundleDownloader BundleDownloader
ReadPolicyEngineVersion func() (string, error)
ExcludeRawResults bool
AllowAnalytics bool
Report bool
IacNewEngine bool
}
func (Command) RunWithError ¶
type Engine ¶
type Engine interface {
Run(ctx context.Context, options engine.RunOptions) (*engine.Results, results.ScanAnalytics, []error, []error)
}
type ResultsProcessor ¶
Click to show internal directories.
Click to hide internal directories.