Versions in this module Expand all Collapse all v0 v0.1.0 Nov 4, 2022 Changes in this version + func ConfigFilePath() string + func ConfigPath() string + func CreateNewFile() error + func RepoPath(ruleset string) string + func RepoRulesPath(ruleset string) string + func RulePath(ruleset, ruleID string) string + func RulesetPath(ruleset string) string + func RulesetsPath() string + type Appcfg struct + Rulesets []models.Ruleset + func GetConfig() (*Appcfg, error) + func (appcfg *Appcfg) AddRuleset(rs models.Ruleset) error + func (appcfg *Appcfg) GetRule(rulesetName, ruleID string) (models.Rule, error) + func (appcfg *Appcfg) GetRuleset(name string) (models.Ruleset, error) + func (appcfg *Appcfg) RepositoryExists(repo string) bool + func (appcfg *Appcfg) RulesetExists(name string) bool + func (appcfg *Appcfg) SetRuleEnabled(ruleset, rule string, enabled bool) error + func (appcfg *Appcfg) SetRulesetEnabled(name string, enabled bool) error + func (appcfg *Appcfg) UpdateRuleset(rs models.Ruleset) error + func (appcfg *Appcfg) UpsertRule(rulesetName string, newRule models.Rule) error