func ValidatePolicy(policy *audit.Policy) field.ErrorList { … }
func validatePolicyRule(rule audit.PolicyRule, fldPath *field.Path) field.ErrorList { … }
var validLevels …
var validOmitStages …
func validateLevel(level audit.Level, fldPath *field.Path) field.ErrorList { … }
func validateNonResourceURLs(urls []string, fldPath *field.Path) field.ErrorList { … }
func validateResources(groupResources []audit.GroupResources, fldPath *field.Path) field.ErrorList { … }
func validateOmitStages(omitStages []audit.Stage, fldPath *field.Path) field.ErrorList { … }