Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateVersionName ¶
Types ¶
type ValidationErrors ¶
type ValidationErrors []error
ValidationErrors is an array of Error's to store multiple error messages post validation. NOTE: this technique based on github.com/go-playground/validator.
func (ValidationErrors) Error ¶
func (ve ValidationErrors) Error() string
Error method allows ValidationErrors to subscribe to the Error interface.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator struct contains methods to validate a KRT file.
func NewWithLogger ¶
func NewWithLogger(l simplelogger.SimpleLoggerInterface) Validator
NewWithLogger creates a new Validator instance with a custom logger.
func (*Validator) ParseFile ¶
ParseFile parse a Krt file from the given filename that must exists on the filesystem.
Click to show internal directories.
Click to hide internal directories.