Documentation ¶
Overview ¶
This package contains validators for all elements of the workflow spec (node, task, branch, interface, bindings... etc.)
Index ¶
- func AreTypesCastable(upstreamType, downstreamType *flyte.LiteralType) bool
- func LiteralToBinding(l *core.Literal) *core.BindingData
- func LiteralTypeForLiteral(l *core.Literal) *core.LiteralType
- func ValidateBindings(w c.WorkflowBuilder, node c.Node, bindings []*flyte.Binding, ...) (ok bool)
- func ValidateBooleanExpression(node c.NodeBuilder, expr *flyte.BooleanExpression, errs errors.CompileErrors) (ok bool)
- func ValidateInterface(nodeID c.NodeID, iface *core.TypedInterface, errs errors.CompileErrors) (typedInterface *core.TypedInterface, ok bool)
- func ValidateNode(w c.WorkflowBuilder, n c.NodeBuilder, errs errors.CompileErrors) (ok bool)
- func ValidateUnderlyingInterface(w c.WorkflowBuilder, node c.NodeBuilder, errs errors.CompileErrors) (iface *core.TypedInterface, ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreTypesCastable ¶
func AreTypesCastable(upstreamType, downstreamType *flyte.LiteralType) bool
func LiteralToBinding ¶
func LiteralToBinding(l *core.Literal) *core.BindingData
Converts a literal to a non-promise binding data.
func LiteralTypeForLiteral ¶
func LiteralTypeForLiteral(l *core.Literal) *core.LiteralType
Gets LiteralType for literal, nil if the value of literal is unknown, or type None if the literal is a non-homogeneous type.
func ValidateBindings ¶
func ValidateBindings(w c.WorkflowBuilder, node c.Node, bindings []*flyte.Binding, params *flyte.VariableMap, errs errors.CompileErrors) (ok bool)
func ValidateBooleanExpression ¶
func ValidateBooleanExpression(node c.NodeBuilder, expr *flyte.BooleanExpression, errs errors.CompileErrors) (ok bool)
func ValidateInterface ¶
func ValidateInterface(nodeID c.NodeID, iface *core.TypedInterface, errs errors.CompileErrors) ( typedInterface *core.TypedInterface, ok bool)
Validate interface has its required attributes set
func ValidateNode ¶
func ValidateNode(w c.WorkflowBuilder, n c.NodeBuilder, errs errors.CompileErrors) (ok bool)
func ValidateUnderlyingInterface ¶
func ValidateUnderlyingInterface(w c.WorkflowBuilder, node c.NodeBuilder, errs errors.CompileErrors) (iface *core.TypedInterface, ok bool)
Validates underlying interface of a node and returns the effective Typed Interface.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.