Documentation ¶
Index ¶
- func ScannerWithAllDirectories(all bool) options.ScannerOption
- func ScannerWithAlternativeIDProvider(f func(string) []string) options.ScannerOption
- func ScannerWithConfigsFileSystem(fsys fs.FS) options.ScannerOption
- func ScannerWithDownloadsAllowed(allowed 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 ScannerWithSkipCachedModules(b 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(opts ...executor.Option)
- func (s *Scanner) AddParserOptions(opts ...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) 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) SetUseEmbeddedLibraries(b bool)
- 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 ScannerWithConfigsFileSystem ¶
func ScannerWithConfigsFileSystem(fsys fs.FS) options.ScannerOption
func ScannerWithDownloadsAllowed ¶
func ScannerWithDownloadsAllowed(allowed bool) options.ScannerOption
func ScannerWithExcludeIgnores ¶
func ScannerWithExcludeIgnores(ruleIDs []string) 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 ScannerWithSeverityOverrides ¶
func ScannerWithSeverityOverrides(overrides map[string]string) options.ScannerOption
func ScannerWithSingleThread ¶
func ScannerWithSingleThread(single bool) options.ScannerOption
func ScannerWithSkipCachedModules ¶
func ScannerWithSkipCachedModules(b 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) }
type Scanner ¶
func New ¶
func New(opts ...options.ScannerOption) *Scanner
func (*Scanner) AddExecutorOptions ¶
func (*Scanner) AddParserOptions ¶
func (s *Scanner) AddParserOptions(opts ...options.ParserOption)
func (*Scanner) ScanFSWithMetrics ¶
func (*Scanner) SetDataDirs ¶
func (*Scanner) SetDataFilesystem ¶
func (*Scanner) SetDebugWriter ¶
func (*Scanner) SetForceAllDirs ¶
func (*Scanner) SetFrameworks ¶
func (*Scanner) SetPerResultTracingEnabled ¶
func (*Scanner) SetPolicyDirs ¶
func (*Scanner) SetPolicyFilesystem ¶
func (*Scanner) SetPolicyNamespaces ¶
func (*Scanner) SetPolicyReaders ¶
func (*Scanner) SetRegoErrorLimit ¶
func (*Scanner) SetRegoOnly ¶
func (*Scanner) SetSkipRequiredCheck ¶
func (*Scanner) SetTraceWriter ¶
func (*Scanner) SetUseEmbeddedLibraries ¶
func (*Scanner) SetUseEmbeddedPolicies ¶
Click to show internal directories.
Click to hide internal directories.