Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventData ¶
type EventData struct { RuleResult fetching.ResourceInfo }
type OpaEvaluator ¶
type OpaEvaluator struct {
// contains filtered or unexported fields
}
func NewOpaEvaluator ¶
func (*OpaEvaluator) Eval ¶
func (o *OpaEvaluator) Eval(ctx context.Context, resourceInfo fetching.ResourceInfo) (EventData, error)
func (*OpaEvaluator) Stop ¶
func (o *OpaEvaluator) Stop(ctx context.Context)
type Rule ¶
type Rule struct { Id string `json:"id"` Name string `json:"name"` Profile_Applicability string `json:"profile_applicability"` Description string `json:"description"` Rationale string `json:"rationale"` Audit string `json:"audit"` Remediation string `json:"remediation"` Impact string `json:"impact"` Default_Value string `json:"default_value"` References string `json:"references"` Section string `json:"section"` Version string `json:"version"` Tags []string `json:"tags"` Benchmark Benchmark `json:"benchmark"` }
type RuleResult ¶
Click to show internal directories.
Click to hide internal directories.