Discover Packages
github.com/slashbase/layerengine
validator
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Mar 21, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CompileError struct {
Line int
Message string
}
type Flow struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Input []string `yaml:"input"`
Layers []Layer `yaml:"layers"`
}
Compile parses and validates the YAML source, returning the compiled
Flow or a list of errors.
Run compiles YAML source supplied as a byte slice.
On success it returns success and a nil error.
On failure it returns false and a combined error whose message lists every
individual compile error, one per line.
type Layer struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Input []string `yaml:"input"`
Output []string `yaml:"output"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.