Help us shape the future of Go! Take the 2026 Go Developer Survey

executor

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAction

func WithAction(ctx context.Context, action Action) context.Context

Types

type Action

type Action string
const (
	ActionRun  Action = "run"
	ActionStop Action = "stop"
)

func ActionFromContext

func ActionFromContext(ctx context.Context) Action

type ContainerExecutor

type ContainerExecutor struct {
	// contains filtered or unexported fields
}

func NewContainerExecutor

func NewContainerExecutor(
	workflowRepo interfaces.WorkflowRepository,
	containerMgr *manager.ContainerManager,
) *ContainerExecutor

func (*ContainerExecutor) Execute

func (e *ContainerExecutor) Execute(ctx context.Context, node *types.AnalysisNode) (*Result, error)

type ExecuterFactory

type ExecuterFactory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(workflowRepository interfaces.WorkflowRepository,
	containerManager *manager.ContainerManager) *ExecuterFactory

func (*ExecuterFactory) Resolve

func (f *ExecuterFactory) Resolve(executorName string) Executor

type Executor

type Executor interface {
	Execute(ctx context.Context, node *types.AnalysisNode) (*Result, error)
}

type FactoryDeps

type FactoryDeps struct {
	WorkflowRepository interfaces.WorkflowRepository
	ContainerManager   *manager.ContainerManager
}

type LocalExecutor

type LocalExecutor struct{}

func NewLocalExecutor

func NewLocalExecutor() *LocalExecutor

func (*LocalExecutor) Execute

func (e *LocalExecutor) Execute(ctx context.Context, node *types.AnalysisNode) (*Result, error)

type NextflowExecutor

type NextflowExecutor struct {
}

func NewNextflowExecutor

func NewNextflowExecutor() *NextflowExecutor

func (*NextflowExecutor) Execute

func (e *NextflowExecutor) Execute(ctx context.Context, node *types.AnalysisNode) (*Result, error)

type Result

type Result struct {
	Status          string
	ResolvedOutputs map[string]any
	ExitCode        int
	ErrorMessage    string
	Deferred        bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL