Documentation ¶
Index ¶
- type CheckFunc
- type FlatRange
- type FlatResult
- type MetadataProvider
- type RegisteredRule
- type Result
- func (r Result) Annotation() string
- func (r Result) CodeBlockMetadata() *types.Metadata
- func (r Result) Description() string
- func (r *Result) Flatten() FlatResult
- func (r Result) IssueBlockMetadata() *types.Metadata
- func (r Result) NarrowestRange() types.Range
- func (r *Result) OverrideAnnotation(annotation string)
- func (r *Result) OverrideDescription(description string)
- func (r *Result) OverrideIssueBlockMetadata(metadata *types.Metadata)
- func (r *Result) OverrideSeverity(s severity.Severity)
- func (r Result) Rule() Rule
- func (r Result) Severity() severity.Severity
- func (r Result) Status() Status
- type Results
- type Rule
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlatResult ¶
type FlatResult struct { RuleID string `json:"rule_id"` RuleSummary string `json:"rule_description"` RuleProvider provider.Provider `json:"rule_provider"` RuleService string `json:"rule_service"` Impact string `json:"impact"` Resolution string `json:"resolution"` Links []string `json:"links"` Description string `json:"description"` RangeAnnotation string `json:"-"` Severity severity.Severity `json:"severity"` Status Status `json:"status"` Resource string `json:"resource"` Location FlatRange `json:"location"` }
type MetadataProvider ¶
type RegisteredRule ¶
type RegisteredRule struct {
// contains filtered or unexported fields
}
func GetRegistered ¶
func GetRegistered() []RegisteredRule
func Register ¶
func Register(rule Rule, f CheckFunc) RegisteredRule
func (*RegisteredRule) AddLink ¶
func (r *RegisteredRule) AddLink(link string)
func (RegisteredRule) Rule ¶
func (r RegisteredRule) Rule() Rule
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (Result) Annotation ¶
func (Result) CodeBlockMetadata ¶
func (Result) Description ¶
func (*Result) Flatten ¶
func (r *Result) Flatten() FlatResult
func (Result) IssueBlockMetadata ¶
func (Result) NarrowestRange ¶
func (*Result) OverrideAnnotation ¶
func (*Result) OverrideDescription ¶
func (*Result) OverrideIssueBlockMetadata ¶
func (*Result) OverrideSeverity ¶
type Results ¶
type Results []Result
func (*Results) Add ¶
func (r *Results) Add(description string, source MetadataProvider, issueBlock ...MetadataProvider)
func (*Results) AddPassed ¶
func (r *Results) AddPassed(source MetadataProvider, descriptions ...string)
func (Results) Flatten ¶
func (r Results) Flatten() []FlatResult
type Rule ¶
type Rule struct { AVDID string `json:"avd_id"` ShortCode string `json:"short_code"` Summary string `json:"summary"` Explanation string `json:"explanation"` Impact string `json:"impact"` Resolution string `json:"resolution"` Provider provider.Provider `json:"provider"` Service string `json:"service"` Links []string `json:"links"` Severity severity.Severity `json:"severity"` }
Directories ¶
Path | Synopsis |
---|---|
aws
|
|
azure
|
|
cloudstack
|
|
digitalocean
|
|
general
|
|
github
|
|
google
|
|
kubernetes
|
|
openstack
|
|
oracle
|
|
Click to show internal directories.
Click to hide internal directories.