Versions in this module Expand all Collapse all v0 v0.1.2 Dec 21, 2022 v0.1.1 Dec 21, 2022 v0.0.12 Sep 8, 2023 v0.0.11 Aug 18, 2023 v0.0.10 Aug 10, 2023 v0.0.9 Jun 14, 2023 v0.0.8 Jun 7, 2023 v0.0.7 May 1, 2023 Changes in this version + func Validate(rules []DWDirectiveRuleSpec, directives []string, ...) error v0.0.6 Dec 14, 2022 v0.0.5 Dec 14, 2022 v0.0.4 Dec 14, 2022 v0.0.3 Dec 13, 2022 v0.0.1 Dec 5, 2022 Changes in this version + func BuildArgsMap(dwd string) (map[string]string, error) + func BuildRulesMap(rule DWDirectiveRuleSpec, cmd string) (map[string]DWDirectiveRuleDef, error) + func IsUnsupportedCommand(err error) bool + func NewUnsupportedCommandErr(command string) error + func ValidateArgs(args map[string]string, rule DWDirectiveRuleSpec, uniqueMap map[string]bool, ...) error + func ValidateDWDirective(rule DWDirectiveRuleSpec, dwd string, uniqueMap map[string]bool, ...) (bool, error) + type DWDirectiveRuleDef struct + IsRequired bool + IsValueRequired bool + Key string + Max int + Min int + Pattern string + Type string + UniqueWithin string + func (in *DWDirectiveRuleDef) DeepCopy() *DWDirectiveRuleDef + func (in *DWDirectiveRuleDef) DeepCopyInto(out *DWDirectiveRuleDef) + type DWDirectiveRuleSpec struct + Command string + DriverLabel string + RuleDefs []DWDirectiveRuleDef + WatchStates string + func (in *DWDirectiveRuleSpec) DeepCopy() *DWDirectiveRuleSpec + func (in *DWDirectiveRuleSpec) DeepCopyInto(out *DWDirectiveRuleSpec)