Documentation ¶
Index ¶
- type Executor
- type Job
- type Metrics
- type Option
- func OptionExcludeRules(ruleIDs []string) Option
- func OptionIncludeRules(ruleIDs []string) Option
- func OptionNoIgnores() Option
- func OptionStopOnErrors(stop bool) Option
- func OptionWithAlternativeIDProvider(f func(string) []string) Option
- func OptionWithDebugWriter(w io.Writer) Option
- func OptionWithRegoScanner(s *rego.Scanner) Option
- func OptionWithResultsFilter(f func(scan.Results) scan.Results) Option
- func OptionWithSeverityOverrides(overrides map[string]string) Option
- func OptionWithSingleThread(single bool) Option
- func OptionWithStateFunc(f ...func(*state.State)) Option
- func OptionWithWorkspaceName(workspaceName string) Option
- type Pool
- type Statistics
- type StatisticsItem
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor scans HCL blocks by running all registered rules against them
type Option ¶
type Option func(s *Executor)
func OptionExcludeRules ¶
func OptionIncludeRules ¶
func OptionNoIgnores ¶
func OptionNoIgnores() Option
func OptionStopOnErrors ¶
func OptionWithDebugWriter ¶
func OptionWithRegoScanner ¶
func OptionWithResultsFilter ¶
func OptionWithSingleThread ¶
func OptionWithStateFunc ¶
func OptionWithWorkspaceName ¶
type Statistics ¶
type Statistics []StatisticsItem
func AddStatisticsCount ¶
func AddStatisticsCount(statistics Statistics, result scan.Result) Statistics
func SortStatistics ¶
func SortStatistics(statistics Statistics) Statistics
func (Statistics) PrintStatisticsTable ¶
func (statistics Statistics) PrintStatisticsTable()
type StatisticsItem ¶
Click to show internal directories.
Click to hide internal directories.