terraform

package
v0.82.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 22 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 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 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)
	SetEmbeddedLibrariesEnabled(enabled bool)
}

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) Name added in v0.43.0

func (s *Scanner) Name() string

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) SetEmbeddedLibrariesEnabled added in v0.45.0

func (s *Scanner) SetEmbeddedLibrariesEnabled(enabled bool)

func (*Scanner) SetForceAllDirs added in v0.39.0

func (s *Scanner) SetForceAllDirs(b bool)

func (*Scanner) SetFrameworks added in v0.69.0

func (s *Scanner) SetFrameworks(frameworks []framework.Framework)

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) SetPolicyFilesystem added in v0.46.0

func (s *Scanner) SetPolicyFilesystem(_ fs.FS)

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) SetRegoOnly added in v0.80.1

func (s *Scanner) SetRegoOnly(regoOnly bool)

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)

func (*Scanner) SetUseEmbeddedPolicies added in v0.54.0

func (s *Scanner) SetUseEmbeddedPolicies(b bool)

Directories

Path Synopsis
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