Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultRuleDefinition ¶
type DefaultRuleDefinition struct { ID int `yaml:"id"` Name string `yaml:"name"` UniqueName string `yaml:"uniqueName"` EnabledByDefault bool `yaml:"enabledByDefault"` DocumentationUrl string `yaml:"documentationUrl"` MessageOnFailure string `yaml:"messageOnFailure"` Categories []string `yaml:"categories"` Schema map[string]interface{} `yaml:"schema"` }
type DefaultRulesDefinitions ¶
type DefaultRulesDefinitions struct { ApiVersion string `yaml:"apiVersion"` Rules []*DefaultRuleDefinition `yaml:"rules"` }
func GetDefaultRules ¶
func GetDefaultRules() (*DefaultRulesDefinitions, error)
func YAMLToStruct ¶ added in v1.5.30
func YAMLToStruct(content string) (*DefaultRulesDefinitions, error)
Click to show internal directories.
Click to hide internal directories.