Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
func NewValidator ¶
func NewValidator(validators map[tree.Path]ValidatorFunc) Validator
NewValidator creates a new validator with the given validators.
type ValidatorFunc ¶
ValidatorFunc is a function that validates a part of the configuration. It takes the root configuration, the data to validate and the current path in the tree.
type ValidatorImpl ¶
type ValidatorImpl struct {
// contains filtered or unexported fields
}
ValidatorImpl is the implementation of the Validator interface.
Click to show internal directories.
Click to hide internal directories.