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

prepare

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRunScript

func BuildRunScript(
	node *types.AnalysisNode,
	scriptType string,
	scriptPath string,
	scriptContent string,
	params map[string]any,
) (string, error)

func NewRunScriptBuilders

func NewRunScriptBuilders() map[string]RunScriptBuilder

Types

type FileSystemNodeRuntimePreparer

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

func NewFileSystemNodeRuntimePreparerWithBuilders

func NewFileSystemNodeRuntimePreparerWithBuilders(
	analysisRepo interfaces.AnalysisRepository,
	workflowRepo interfaces.WorkflowRepository,
	projectRepo interfaces.ProjectRepository,
	workflowService interfaces.WorkflowService,
	storageBase string,
	builders map[string]RunScriptBuilder,
) *FileSystemNodeRuntimePreparer

func (*FileSystemNodeRuntimePreparer) Prepare

func (*FileSystemNodeRuntimePreparer) WriteCommand

func (p *FileSystemNodeRuntimePreparer) WriteCommand(node *types.AnalysisNode, scriptType, scriptPath string, params map[string]any) error

type JupyterScriptBuilder

type JupyterScriptBuilder struct{}

func (JupyterScriptBuilder) Build

func (JupyterScriptBuilder) Build(node *types.AnalysisNode, scriptPath string, _ string, _ map[string]any) (string, error)

type NodeRuntimePreparer

type NodeRuntimePreparer interface {
	Prepare(ctx context.Context, node *types.AnalysisNode) error
}

type PythonScriptBuilder

type PythonScriptBuilder struct{}

func (PythonScriptBuilder) Build

func (PythonScriptBuilder) Build(node *types.AnalysisNode, scriptPath string, _ string, _ map[string]any) (string, error)

type QmdScriptBuilder

type QmdScriptBuilder struct{}

func (QmdScriptBuilder) Build

func (QmdScriptBuilder) Build(node *types.AnalysisNode, scriptPath string, _ string, _ map[string]any) (string, error)

type RScriptBuilder

type RScriptBuilder struct{}

func (RScriptBuilder) Build

func (RScriptBuilder) Build(node *types.AnalysisNode, scriptPath string, _ string, _ map[string]any) (string, error)

type RunScriptBuilder

type RunScriptBuilder interface {
	Build(node *types.AnalysisNode, scriptPath string, scriptContent string, params map[string]any) (string, error)
}

type ShellScriptBuilder

type ShellScriptBuilder struct{}

func (ShellScriptBuilder) Build

func (ShellScriptBuilder) Build(_ *types.AnalysisNode, scriptPath string, scriptContent string, params map[string]any) (string, error)

Jump to

Keyboard shortcuts

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