Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsSource ¶ added in v1.4.5
type MetricsSource interface { Metrics() ([]*assessment.Metric, error) MetricConfiguration(metric string) (*assessment.MetricConfiguration, error) MetricImplementation(lang assessment.MetricImplementation_Language, metric string) (*assessment.MetricImplementation, error) }
MetricsSource is used to retrieve a list of metrics and to retrieve a metric configuration as well as implementation for a particular metric (and target service)
type PolicyEval ¶ added in v1.4.5
type PolicyEval interface { Eval(evidence *evidence.Evidence, src MetricsSource) (data []*Result, err error) HandleMetricEvent(event *orchestrator.MetricChangeEvent) (err error) }
TODO(oxisto): Rename to AssessmentEngine or something?
func NewRegoEval ¶ added in v1.4.5
func NewRegoEval() PolicyEval
Click to show internal directories.
Click to hide internal directories.