terraform

package
v0.39.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 ScannerWithResultsFilter(f func(scan.Results) scan.Results) options.ScannerOption

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 Metrics

type Metrics struct {
	Parser   parser.Metrics
	Executor executor.Metrics
	Timings  struct {
		Total time.Duration
	}
}

type Scanner

type Scanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(options ...options.ScannerOption) *Scanner

func (*Scanner) AddExecutorOptions added in v0.39.0

func (s *Scanner) AddExecutorOptions(options ...executor.Option)

func (*Scanner) AddParserOptions added in v0.39.0

func (s *Scanner) AddParserOptions(options ...options.ParserOption)

func (*Scanner) ScanFS

func (s *Scanner) ScanFS(ctx context.Context, target fs.FS, dir string) (scan.Results, error)

func (*Scanner) ScanFSWithMetrics

func (s *Scanner) ScanFSWithMetrics(ctx context.Context, target fs.FS, dir string) (scan.Results, Metrics, error)

func (*Scanner) SetDataDirs added in v0.39.0

func (s *Scanner) SetDataDirs(_ ...string)

func (*Scanner) SetDebugWriter added in v0.39.0

func (s *Scanner) SetDebugWriter(writer io.Writer)

func (*Scanner) SetForceAllDirs added in v0.39.0

func (s *Scanner) SetForceAllDirs(b bool)

func (*Scanner) SetPerResultTracingEnabled added in v0.39.0

func (s *Scanner) SetPerResultTracingEnabled(_ bool)

func (*Scanner) SetPolicyDirs added in v0.39.0

func (s *Scanner) SetPolicyDirs(dirs ...string)

func (*Scanner) SetPolicyNamespaces added in v0.39.0

func (s *Scanner) SetPolicyNamespaces(_ ...string)

func (*Scanner) SetPolicyReaders added in v0.39.0

func (s *Scanner) SetPolicyReaders(readers []io.Reader)

func (*Scanner) SetSkipRequiredCheck added in v0.39.0

func (s *Scanner) SetSkipRequiredCheck(skip bool)

func (*Scanner) SetTraceWriter added in v0.39.0

func (s *Scanner) SetTraceWriter(_ io.Writer)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL