Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloudsploitSetting ¶
type CloudsploitSetting struct { DefaultScore float32 `yaml:"defaultScore" validate:"required"` IgnorePlugin []string `yaml:"ignorePlugin"` SpecificPluginSetting map[string]PluginSetting `yaml:"specificPluginSetting,omitempty" validate:"dive"` }
func LoadCloudsploitSetting ¶
func LoadCloudsploitSetting(path string) (*CloudsploitSetting, error)
func ParseCloudsploitSettingYaml ¶
func ParseCloudsploitSettingYaml(data []byte) (*CloudsploitSetting, error)
func (*CloudsploitSetting) IsIgnoreMessagePattern ¶
func (c *CloudsploitSetting) IsIgnoreMessagePattern(plugin string, messages []string) bool
func (*CloudsploitSetting) IsIgnorePlugin ¶
func (c *CloudsploitSetting) IsIgnorePlugin(plugin string) bool
func (*CloudsploitSetting) IsSkipResourceNamePattern ¶
func (c *CloudsploitSetting) IsSkipResourceNamePattern(plugin, resourceName, aliasResourceName string) bool
type PluginRecommend ¶
type PluginSetting ¶
type PluginSetting struct { Score *float32 `yaml:"score,omitempty"` SkipResourceNamePattern []string `yaml:"skipResourceNamePattern,omitempty"` IgnoreMessagePattern []string `yaml:"ignoreMessagePattern,omitempty" validate:"dive,regexp"` Tags []string `yaml:"tags,omitempty"` Recommend *PluginRecommend `yaml:"recommend,omitempty"` }
Click to show internal directories.
Click to hide internal directories.