Documentation ¶
Index ¶
- func LoadPolicyPackConfigFromFile(file string) (map[string]plugin.AnalyzerPolicyConfig, error)
- func ParsePolicyPackConfigFromAPI(config map[string]*json.RawMessage) (map[string]plugin.AnalyzerPolicyConfig, error)
- func ReconcilePolicyPackConfig(policies []plugin.AnalyzerPolicyInfo, ...) (map[string]plugin.AnalyzerPolicyConfig, []string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPolicyPackConfigFromFile ¶
func LoadPolicyPackConfigFromFile(file string) (map[string]plugin.AnalyzerPolicyConfig, error)
LoadPolicyPackConfigFromFile loads the JSON config from a file.
func ParsePolicyPackConfigFromAPI ¶
func ParsePolicyPackConfigFromAPI(config map[string]*json.RawMessage) (map[string]plugin.AnalyzerPolicyConfig, error)
ParsePolicyPackConfigFromAPI parses the config returned from the service.
func ReconcilePolicyPackConfig ¶
func ReconcilePolicyPackConfig(policies []plugin.AnalyzerPolicyInfo, config map[string]plugin.AnalyzerPolicyConfig) (map[string]plugin.AnalyzerPolicyConfig, []string, error)
ReconcilePolicyPackConfig takes metadata about each policy containing default values and config schema, and reconciles this with the given config to produce a new config that has all default values filled-in and then sets configured values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.