We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489f2c6 commit af6d061Copy full SHA for af6d061
pkg/results/results.go
@@ -17,10 +17,14 @@ type outputResult map[string][]string
17
18
// Result holds the information about the result of a check
19
type Result struct {
20
- ID string
+ // ID is the identifier for the rule of this result.
21
+ ID string
22
+ // Violations contains a list of each violation for the rule from the OPA evaluator
23
Violations []string
- Value interface{} // deprecated
- Package string
24
+ // Deprecated: Value contains the raw result of the rule from the OPA evaluator.
25
+ Value interface{}
26
+ // Package references the package the rule belongs to.
27
+ Package string
28
}
29
30
// IsSuccessState returns true if Value is boolean and it is true.
0 commit comments