Documentation ¶
Index ¶
- func ConfigRun(ctx *cli.Context) error
- func FilesystemRun(ctx *cli.Context) error
- func ImageRun(ctx *cli.Context) error
- func RepositoryRun(ctx *cli.Context) error
- func RootfsRun(ctx *cli.Context) error
- func Run(ctx context.Context, opt Option, initializeScanner InitializeScanner, ...) error
- type InitCache
- type InitializeScanner
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigRun ¶ added in v0.19.0
func ConfigRun(ctx *cli.Context) error
ConfigRun runs scan on config files
func FilesystemRun ¶
func FilesystemRun(ctx *cli.Context) error
FilesystemRun runs scan on filesystem for language-specific dependencies and config files
func RepositoryRun ¶
func RepositoryRun(ctx *cli.Context) error
RepositoryRun runs scan on repository
Types ¶
type InitializeScanner ¶
type InitializeScanner func(context.Context, string, cache.ArtifactCache, cache.LocalArtifactCache, time.Duration, artifact.Option, config.ScannerOption) (scanner.Scanner, func(), error)
InitializeScanner defines the initialize function signature of scanner
type Option ¶ added in v0.18.2
type Option struct { option.GlobalOption option.ArtifactOption option.DBOption option.ImageOption option.ReportOption option.CacheOption option.ConfigOption // We don't want to allow disabled analyzers to be passed by users, // but it differs depending on scanning modes. DisabledAnalyzers []analyzer.Type }
Option holds the artifact options
Source Files ¶
Click to show internal directories.
Click to hide internal directories.