github.com/docker/app@v0.9.1-beta3.0.20210611140623-a48f773ab002/internal/validator/rules/rule.go (about) 1 package rules 2 3 type Rule interface { 4 Collect(path string, key string, value interface{}) 5 Accept(parent string, key string) bool 6 Validate(value interface{}) []error 7 }