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 *PluginConfig) *DataFetcher
type PluginConfig ¶
func ParseConfig ¶
func ParseConfig(raw map[string]string) (*PluginConfig, error)
type PolicyEvaluator ¶
type PolicyEvaluator struct {
// contains filtered or unexported fields
}
func NewPolicyEvaluator ¶
func (*PolicyEvaluator) Eval ¶
func (pe *PolicyEvaluator) Eval(ctx context.Context, input map[string]interface{}, policyPaths []string, policyData map[string]interface{}, labels map[string]string) ([]*proto.Evidence, 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.
Click to show internal directories.
Click to hide internal directories.