policies

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricConfigurationSource added in v1.4.0

type MetricConfigurationSource interface {
	MetricConfiguration(metric string) (*assessment.MetricConfiguration, error)
}

MetricConfigurationSource can be used to retrieve a metric configuration for a particular metric (and target service)

type Result added in v1.4.0

type Result struct {
	Applicable  bool
	Compliant   bool
	TargetValue interface{} `mapstructure:"target_value"`
	Operator    string
	MetricId    string
}

func RunEvidence added in v1.3.5

func RunEvidence(evidence *evidence.Evidence, holder MetricConfigurationSource) ([]*Result, error)

func RunMap added in v1.3.5

func RunMap(baseDir string, metric string, m map[string]interface{}, holder MetricConfigurationSource) (result *Result, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL