Documentation ¶
Index ¶
- func Dump(c Component)
- func NewComponent(name string, action Action) *component
- func NewError(path string, wrapped error) *evalError
- func NewEvaluator(visitors ...Visitor) *evaluator
- func NewEvaluatorWithLogger(logger Logger, visitors ...Visitor) *evaluator
- func NewValidator() *validator
- func NoopComponent(name string) *component
- func Run(c Component)
- func RunWith(c Component, args []string)
- func Traverse(node Component, visitors ...Visitor)
- func TraversePaths(node Component, fn func(string))
- type Action
- type Component
- type CompositeComponent
- type Error
- type ErrorWithDetail
- type Evaluator
- type Logger
- type Runner
- type Traverser
- type Unresolved
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewComponent ¶
func NewEvaluator ¶
func NewEvaluator(visitors ...Visitor) *evaluator
func NewEvaluatorWithLogger ¶
func NewValidator ¶
func NewValidator() *validator
func NoopComponent ¶
func NoopComponent(name string) *component
func TraversePaths ¶
Types ¶
type CompositeComponent ¶
type Error ¶
type Error interface { ErrorWithDetail Path() string }
type ErrorWithDetail ¶
type Evaluator ¶
type Evaluator interface { Log() logrus.FieldLogger Logger() Logger Path() string Evaluate(Component) error Fork(Component) error Emit(string, string) Vars() vars.Vars Message(string, ...interface{}) Context() context.Context Stop() Wait() HasError() bool ClearError() Errors() []error Root() Component }
type Runner ¶
type Unresolved ¶
func Validate ¶
func Validate(c Component) []Unresolved
func ValidateWith ¶
func ValidateWith(c Component, vars vars.Vars) []Unresolved
Source Files ¶
Click to show internal directories.
Click to hide internal directories.