-
Notifications
You must be signed in to change notification settings - Fork 10
/
model_rule_results.go
38 lines (37 loc) · 1.61 KB
/
model_rule_results.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Unified Policy Engine I/O Formats
*
* Documentation for the input and output formats used in Unified Policy Engine
*
* API version: 1.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
// Container for all results associated with a single rule
type RuleResults struct {
// The Rule ID, e.g. SNYK_00503 or 608f97c3-a11a-4154-a88e-a2fcd18c75b0
Id string `json:"id,omitempty"`
// The rule title
Title string `json:"title,omitempty"`
// The platform describes the CSPs or other technology platform (e.g. Docker) that the rule checks for
Platform []string `json:"platform,omitempty"`
// The rule description
Description string `json:"description,omitempty"`
// Useful links relating to this rule results
References []RuleResultsReference `json:"references,omitempty"`
// The category of the policy
Category string `json:"category,omitempty"`
// An array of labels (value-less tags) associated with this policy
Labels []string `json:"labels,omitempty"`
// The service group of the primary resource associated with this policy (e.g. \"EBS\", \"EC2\")
ServiceGroup string `json:"service_group,omitempty"`
// A list of controls associated with this rule.
Controls []string `json:"controls,omitempty"`
// A list of resource types that the rule uses.
ResourceTypes []string `json:"resource_types,omitempty"`
Results []RuleResult `json:"results"`
// Any errors that occurred while evaluating this rule.
Errors []string `json:"errors,omitempty"`
// The Rego package name that defines the rule, useful for debugging
Package_ string `json:"package,omitempty"`
}