Documentation ¶
Index ¶
- type Executor
- type Job
- type Metrics
- type Option
- func OptionExcludeIgnores(ruleIDs []string) 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 OptionWithFrameworks(frameworks ...framework.Framework) Option
- func OptionWithRegoOnly(regoOnly bool) 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 StatisticsResult
- 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 OptionExcludeIgnores ¶ added in v0.0.2
func OptionExcludeRules ¶
func OptionIncludeRules ¶
func OptionNoIgnores ¶
func OptionNoIgnores() Option
func OptionStopOnErrors ¶
func OptionWithDebugWriter ¶
func OptionWithFrameworks ¶ added in v0.0.2
func OptionWithRegoOnly ¶
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(format string, w io.Writer) error
type StatisticsItem ¶
type StatisticsResult ¶ added in v0.0.2
type StatisticsResult struct {
Result Statistics `json:"results"`
}
Click to show internal directories.
Click to hide internal directories.