Versions in this module Expand all Collapse all v0 v0.0.1 Sep 26, 2022 Changes in this version + var ErrBuiltinDirectiveNotFound error = errors.New("builtin directive not found") + var ErrConditionIsFalse error = errors.New("condition is false") + var ErrConfigedFunctionDuplicated error = errors.New("configured function duplicated") + var ErrDriverNotFound error = errors.New("driver not found") + var ErrExitWithSuccess error = errors.New("exit with success") + var ErrFunctionNotLoaded error = errors.New("function not loaded") + var ErrLoadedFunctionDuplicated error = errors.New("loaded function duplicated") + var ErrNameConflict error = errors.New("name conflict") + var ErrNodeReused error = errors.New("node reused") + func WithResources(resources resource.Resources) func(context.Context, Node) error + type BtfNode struct + func (n *BtfNode) Exec(ctx context.Context) error + func (n *BtfNode) FormatString() string + func (n *BtfNode) Init(ctx context.Context, with ...func(context.Context, Node) error) error + func (n *BtfNode) Name() string + type BuiltinNode struct + func (n *BuiltinNode) Exec(ctx context.Context) error + func (n *BuiltinNode) FormatString() string + func (n *BuiltinNode) Init(ctx context.Context, handles ...func(context.Context, Node) error) error + func (n *BuiltinNode) Name() string + type ForNode struct + func (n *ForNode) Exec(ctx context.Context) error + func (n *ForNode) FormatString() string + func (n *ForNode) Init(ctx context.Context, with ...func(context.Context, Node) error) error + func (n *ForNode) Name() string + type Node interface + Exec func(context.Context) error + FormatString func() string + Init func(context.Context, ...func(context.Context, Node) error) error + Name func() string + type RunQueue struct + func New(rd io.Reader) (*RunQueue, *parser.AST, error) + func (r *RunQueue) GetTriggers() []Trigger + func (r *RunQueue) WalkAndExec(ctx context.Context, exec func([]Node) error) error + func (r *RunQueue) WalkNode(do func(Node) error) error + type Task interface + Driver func() functiondriver.Driver + IgnoreFailure func() bool + RetryOnFailure func() int + Seq func() int + Step func() int + type TaskNode struct + func (n *TaskNode) Driver() functiondriver.Driver + func (n *TaskNode) Exec(ctx context.Context) error + func (n *TaskNode) FormatString() string + func (n *TaskNode) IgnoreFailure() bool + func (n *TaskNode) Init(ctx context.Context, with ...func(context.Context, Node) error) error + func (n *TaskNode) Name() string + func (n *TaskNode) RetryOnFailure() int + func (n *TaskNode) Seq() int + func (n *TaskNode) Step() int + type Trigger interface