Documentation ¶
Index ¶
- func ScannerWithAllDirectories(all bool) options.ScannerOption
- func ScannerWithAlternativeIDProvider(f func(string) []string) options.ScannerOption
- func ScannerWithDownloadsAllowed(allowed 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) 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) SetForceAllDirs(b bool)
- func (s *Scanner) SetPerResultTracingEnabled(_ bool)
- func (s *Scanner) SetPolicyDirs(dirs ...string)
- func (s *Scanner) SetPolicyNamespaces(_ ...string)
- func (s *Scanner) SetPolicyReaders(readers []io.Reader)
- func (s *Scanner) SetSkipRequiredCheck(skip bool)
- func (s *Scanner) SetTraceWriter(_ io.Writer)
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 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 ScannerWithRegoOnly ¶ added in v0.39.0
func ScannerWithRegoOnly(regoOnly bool) 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) }
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) SetDebugWriter ¶ added in v0.39.0
func (*Scanner) SetForceAllDirs ¶ added in v0.39.0
func (*Scanner) SetPerResultTracingEnabled ¶ added in v0.39.0
func (*Scanner) SetPolicyDirs ¶ added in v0.39.0
func (*Scanner) SetPolicyNamespaces ¶ added in v0.39.0
func (*Scanner) SetPolicyReaders ¶ added in v0.39.0
func (*Scanner) SetSkipRequiredCheck ¶ added in v0.39.0
func (*Scanner) SetTraceWriter ¶ added in v0.39.0
Directories ¶
Path | Synopsis |
---|---|
funcs
Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/marks Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs
|
Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/marks Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs Copied from github.com/hashicorp/terraform/internal/lang/funcs |
Click to show internal directories.
Click to hide internal directories.