Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IgnoredVulns []IgnoreEntry LoadPath string }
func (*Config) ShouldIgnore ¶
func (c *Config) ShouldIgnore(vulnID string) (bool, IgnoreEntry)
type ConfigManager ¶
type ConfigManager struct { // Override to replace all other configs OverrideConfig *Config // Config to use if no config file is found alongside manifests DefaultConfig Config // Cache to store loaded configs ConfigMap map[string]Config }
func (*ConfigManager) Get ¶
func (c *ConfigManager) Get(r *output.Reporter, targetPath string) Config
Attempts to get the config
func (*ConfigManager) UseOverride ¶
func (c *ConfigManager) UseOverride(configPath string) error
Sets the override config by reading the config file at configPath. Will return an error if loading the config file fails
Click to show internal directories.
Click to hide internal directories.