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 ScannerWithExcludedRules(ruleIDs []string) options.ScannerOption
- func ScannerWithIncludedRules(ruleIDs []string) options.ScannerOption
- func ScannerWithMinimumSeverity(minimum severity.Severity) options.ScannerOption
- func ScannerWithNoIgnores() options.ScannerOption
- func ScannerWithRegoOnly(regoOnly bool) 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) SetDebugWriter(writer io.Writer)
- func (s *Scanner) SetEmbeddedLibrariesEnabled(enabled bool)
- func (s *Scanner) SetForceAllDirs(b bool)
- 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) SetSkipRequiredCheck(skip bool)
- 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 ¶
func ScannerWithAllDirectories(all bool) options.ScannerOption
func ScannerWithAlternativeIDProvider ¶
func ScannerWithAlternativeIDProvider(f func(string) []string) options.ScannerOption
func ScannerWithDownloadsAllowed ¶
func ScannerWithDownloadsAllowed(allowed bool) options.ScannerOption
func ScannerWithEmbeddedLibraries ¶
func ScannerWithEmbeddedLibraries(embedded bool) options.ScannerOption
func ScannerWithExcludedRules ¶
func ScannerWithExcludedRules(ruleIDs []string) options.ScannerOption
func ScannerWithIncludedRules ¶
func ScannerWithIncludedRules(ruleIDs []string) options.ScannerOption
func ScannerWithMinimumSeverity ¶
func ScannerWithMinimumSeverity(minimum severity.Severity) options.ScannerOption
func ScannerWithNoIgnores ¶
func ScannerWithNoIgnores() options.ScannerOption
func ScannerWithRegoOnly ¶
func ScannerWithRegoOnly(regoOnly bool) options.ScannerOption
func ScannerWithSeverityOverrides ¶
func ScannerWithSeverityOverrides(overrides map[string]string) options.ScannerOption
func ScannerWithSingleThread ¶
func ScannerWithSingleThread(single bool) options.ScannerOption
func ScannerWithSkipDownloaded ¶
func ScannerWithSkipDownloaded(skip bool) options.ScannerOption
func ScannerWithStateFunc ¶
func ScannerWithStateFunc(f ...func(*state.State)) options.ScannerOption
func ScannerWithStopOnHCLError ¶
func ScannerWithStopOnHCLError(stop bool) options.ScannerOption
func ScannerWithStopOnRuleErrors ¶
func ScannerWithStopOnRuleErrors(stop bool) options.ScannerOption
func ScannerWithTFVarsPaths ¶
func ScannerWithTFVarsPaths(paths ...string) options.ScannerOption
func ScannerWithWorkspaceName ¶
func ScannerWithWorkspaceName(name string) options.ScannerOption
Types ¶
type ConfigurableTerraformScanner ¶
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 ¶
func (*Scanner) AddParserOptions ¶
func (s *Scanner) AddParserOptions(options ...options.ParserOption)
func (*Scanner) ScanFSWithMetrics ¶
func (*Scanner) SetDataDirs ¶
func (*Scanner) SetDebugWriter ¶
func (*Scanner) SetEmbeddedLibrariesEnabled ¶
func (*Scanner) SetForceAllDirs ¶
func (*Scanner) SetPerResultTracingEnabled ¶
func (*Scanner) SetPolicyDirs ¶
func (*Scanner) SetPolicyFilesystem ¶
func (*Scanner) SetPolicyNamespaces ¶
func (*Scanner) SetPolicyReaders ¶
func (*Scanner) SetSkipRequiredCheck ¶
func (*Scanner) SetTraceWriter ¶
func (*Scanner) SetUseEmbeddedPolicies ¶
Click to show internal directories.
Click to hide internal directories.