Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringAddressed ¶
Types ¶
type DataFetcher ¶
type DataFetcher struct {
// contains filtered or unexported fields
}
func NewDataFetcher ¶
func NewDataFetcher(logger hclog.Logger, config map[string]string) *DataFetcher
type PolicyEvaluator ¶
type PolicyEvaluator struct {
// contains filtered or unexported fields
}
func NewPolicyEvaluator ¶
func (*PolicyEvaluator) Eval ¶
func (pe *PolicyEvaluator) Eval(data map[string]interface{}, policyPaths []string) (proto.ExecutionStatus, error)
Eval is used to run policies against the data you've collected. You could also consider an `EvalAndSend` by passing in the `apiHelper` that sends the observations directly to the API.
func (*PolicyEvaluator) GetFindings ¶
func (pe *PolicyEvaluator) GetFindings() []*proto.Finding
func (*PolicyEvaluator) GetObservations ¶
func (pe *PolicyEvaluator) GetObservations() []*proto.Observation
Click to show internal directories.
Click to hide internal directories.