Documentation ¶
Index ¶
- func ScannerWithAllDirectories(all bool) options.ScannerOption
- func ScannerWithAlternativeIDProvider(f func(string) []string) options.ScannerOption
- func ScannerWithDownloadsAllowed(allowed bool) options.ScannerOption
- func ScannerWithEmbeddedLibraries(embedded bool) options.ScannerOption
- func ScannerWithExcludeIgnores(ruleIDs []string) options.ScannerOption
- func ScannerWithExcludedRules(ruleIDs []string) options.ScannerOption
- func ScannerWithIncludedRules(ruleIDs []string) options.ScannerOption
- func ScannerWithMinimumSeverity(minimum severity.Severity) options.ScannerOption
- func ScannerWithNoIgnores() options.ScannerOption
- func ScannerWithResultsFilter(f func(scan.Results) scan.Results) options.ScannerOption
- func ScannerWithSeverityOverrides(overrides map[string]string) options.ScannerOption
- func ScannerWithSingleThread(single bool) options.ScannerOption
- func ScannerWithSkipDownloaded(skip bool) options.ScannerOption
- func ScannerWithStateFunc(f ...func(*state.State)) options.ScannerOption
- func ScannerWithStopOnHCLError(stop bool) options.ScannerOption
- func ScannerWithStopOnRuleErrors(stop bool) options.ScannerOption
- func ScannerWithTFVarsPaths(paths ...string) options.ScannerOption
- func ScannerWithWorkspaceName(name string) options.ScannerOption
- type ConfigurableTerraformScanner
- type Metrics
- type Scanner
- func (s *Scanner) AddExecutorOptions(options ...executor.Option)
- func (s *Scanner) AddParserOptions(options ...options.ParserOption)
- func (s *Scanner) Name() string
- func (s *Scanner) ScanFS(ctx context.Context, target fs.FS, dir string) (scan.Results, error)
- func (s *Scanner) ScanFSWithMetrics(ctx context.Context, target fs.FS, dir string) (scan.Results, Metrics, error)
- func (s *Scanner) SetDataDirs(_ ...string)
- func (s *Scanner) SetDataFilesystem(_ fs.FS)
- func (s *Scanner) SetDebugWriter(writer io.Writer)
- func (s *Scanner) SetEmbeddedLibrariesEnabled(enabled bool)
- func (s *Scanner) SetForceAllDirs(b bool)
- func (s *Scanner) SetFrameworks(frameworks []framework.Framework)
- func (s *Scanner) SetPerResultTracingEnabled(_ bool)
- func (s *Scanner) SetPolicyDirs(dirs ...string)
- func (s *Scanner) SetPolicyFilesystem(_ fs.FS)
- func (s *Scanner) SetPolicyNamespaces(_ ...string)
- func (s *Scanner) SetPolicyReaders(readers []io.Reader)
- func (s *Scanner) SetRegoErrorLimit(_ int)
- func (s *Scanner) SetRegoOnly(regoOnly bool)
- func (s *Scanner) SetSkipRequiredCheck(skip bool)
- func (s *Scanner) SetSpec(spec string)
- func (s *Scanner) SetTraceWriter(_ io.Writer)
- func (s *Scanner) SetUseEmbeddedPolicies(b bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScannerWithAllDirectories ¶ added in v0.39.0
func ScannerWithAllDirectories(all bool) options.ScannerOption
func ScannerWithAlternativeIDProvider ¶ added in v0.39.0
func ScannerWithAlternativeIDProvider(f func(string) []string) options.ScannerOption
func ScannerWithDownloadsAllowed ¶ added in v0.39.0
func ScannerWithDownloadsAllowed(allowed bool) options.ScannerOption
func ScannerWithEmbeddedLibraries ¶ added in v0.45.0
func ScannerWithEmbeddedLibraries(embedded bool) options.ScannerOption
func ScannerWithExcludeIgnores ¶ added in v0.69.0
func ScannerWithExcludeIgnores(ruleIDs []string) options.ScannerOption
func ScannerWithExcludedRules ¶ added in v0.39.0
func ScannerWithExcludedRules(ruleIDs []string) options.ScannerOption
func ScannerWithIncludedRules ¶ added in v0.39.0
func ScannerWithIncludedRules(ruleIDs []string) options.ScannerOption
func ScannerWithMinimumSeverity ¶ added in v0.39.0
func ScannerWithMinimumSeverity(minimum severity.Severity) options.ScannerOption
func ScannerWithNoIgnores ¶ added in v0.39.0
func ScannerWithNoIgnores() options.ScannerOption
func ScannerWithResultsFilter ¶ added in v0.39.0
func ScannerWithSeverityOverrides ¶ added in v0.39.0
func ScannerWithSeverityOverrides(overrides map[string]string) options.ScannerOption
func ScannerWithSingleThread ¶ added in v0.39.0
func ScannerWithSingleThread(single bool) options.ScannerOption
func ScannerWithSkipDownloaded ¶ added in v0.39.0
func ScannerWithSkipDownloaded(skip bool) options.ScannerOption
func ScannerWithStateFunc ¶ added in v0.39.0
func ScannerWithStateFunc(f ...func(*state.State)) options.ScannerOption
func ScannerWithStopOnHCLError ¶ added in v0.39.0
func ScannerWithStopOnHCLError(stop bool) options.ScannerOption
func ScannerWithStopOnRuleErrors ¶ added in v0.39.0
func ScannerWithStopOnRuleErrors(stop bool) options.ScannerOption
func ScannerWithTFVarsPaths ¶ added in v0.39.0
func ScannerWithTFVarsPaths(paths ...string) options.ScannerOption
func ScannerWithWorkspaceName ¶ added in v0.39.0
func ScannerWithWorkspaceName(name string) options.ScannerOption
Types ¶
type ConfigurableTerraformScanner ¶ added in v0.39.0
type ConfigurableTerraformScanner interface { options.ConfigurableScanner SetForceAllDirs(bool) AddExecutorOptions(options ...executor.Option) AddParserOptions(options ...options.ParserOption) SetEmbeddedLibrariesEnabled(enabled bool) }
type Scanner ¶
func New ¶
func New(options ...options.ScannerOption) *Scanner
func (*Scanner) AddExecutorOptions ¶ added in v0.39.0
func (*Scanner) AddParserOptions ¶ added in v0.39.0
func (s *Scanner) AddParserOptions(options ...options.ParserOption)
func (*Scanner) ScanFSWithMetrics ¶
func (*Scanner) SetDataDirs ¶ added in v0.39.0
func (*Scanner) SetDataFilesystem ¶ added in v0.82.10
func (*Scanner) SetDebugWriter ¶ added in v0.39.0
func (*Scanner) SetEmbeddedLibrariesEnabled ¶ added in v0.45.0
func (*Scanner) SetForceAllDirs ¶ added in v0.39.0
func (*Scanner) SetFrameworks ¶ added in v0.69.0
func (*Scanner) SetPerResultTracingEnabled ¶ added in v0.39.0
func (*Scanner) SetPolicyDirs ¶ added in v0.39.0
func (*Scanner) SetPolicyFilesystem ¶ added in v0.46.0
func (*Scanner) SetPolicyNamespaces ¶ added in v0.39.0
func (*Scanner) SetPolicyReaders ¶ added in v0.39.0
func (*Scanner) SetRegoErrorLimit ¶ added in v0.89.0
func (*Scanner) SetRegoOnly ¶ added in v0.80.1
func (*Scanner) SetSkipRequiredCheck ¶ added in v0.39.0
func (*Scanner) SetTraceWriter ¶ added in v0.39.0
func (*Scanner) SetUseEmbeddedPolicies ¶ added in v0.54.0
Click to show internal directories.
Click to hide internal directories.