Documentation
¶
Index ¶
- func NewSet() *resultSet
- type Result
- func (r *Result) HashCode() string
- func (r *Result) Passed() bool
- func (r *Result) WithAttributeAnnotation(attr block.Attribute) *Result
- func (r *Result) WithDescription(description string) *Result
- func (r *Result) WithImpact(impact string) *Result
- func (r *Result) WithLink(link string) *Result
- func (r *Result) WithLinks(links []string) *Result
- func (r *Result) WithRange(codeRange block.Range) *Result
- func (r *Result) WithResolution(resolution string) *Result
- func (r *Result) WithRuleID(id string) *Result
- func (r *Result) WithRuleProvider(provider provider.Provider) *Result
- func (r *Result) WithRuleSummary(description string) *Result
- func (r *Result) WithSeverity(sev severity.Severity) *Result
- func (r *Result) WithStatus(status Status) *Result
- type Set
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct { RuleID string `json:"rule_id"` RuleSummary string `json:"rule_description"` RuleProvider provider.Provider `json:"rule_provider"` Impact string `json:"impact"` Resolution string `json:"resolution"` Links []string `json:"links"` Range block.Range `json:"location"` Description string `json:"description"` RangeAnnotation string `json:"-"` Severity severity.Severity `json:"severity"` Status Status `json:"status"` // contains filtered or unexported fields }
Result is a positive result for a security check. It encapsulates a code unique to the specific check it was raised by, a human-readable description and a range
func (*Result) WithAttributeAnnotation ¶
func (*Result) WithDescription ¶
func (*Result) WithImpact ¶
func (*Result) WithResolution ¶
func (*Result) WithRuleID ¶
func (*Result) WithRuleProvider ¶
func (*Result) WithRuleSummary ¶
func (*Result) WithStatus ¶
Click to show internal directories.
Click to hide internal directories.