Documentation ¶
Index ¶
- func NewMockCompiler() interfaces.Compiler
- func NewMockExecutor() interfaces.Executor
- type ExecuteTaskFunc
- type ExecuteWorkflowFunc
- type MockCompiler
- func (c *MockCompiler) AddCompileTaskCallback(callback func(task *core.TaskTemplate) (*core.CompiledTask, error))
- func (c *MockCompiler) AddCompileWorkflowCallback(...)
- func (c *MockCompiler) AddGetRequirementCallback(...)
- func (c *MockCompiler) CompileTask(task *core.TaskTemplate) (*core.CompiledTask, error)
- func (c *MockCompiler) CompileWorkflow(primaryWf *core.WorkflowTemplate, subworkflows []*core.WorkflowTemplate, ...) (*core.CompiledWorkflowClosure, error)
- func (c *MockCompiler) GetRequirements(fg *core.WorkflowTemplate, subWfs []*core.WorkflowTemplate) (reqs compiler.WorkflowExecutionRequirements, err error)
- type MockExecutor
- func (c *MockExecutor) ExecuteTask(ctx context.Context, input interfaces.ExecuteTaskInput) (*interfaces.ExecutionInfo, error)
- func (c *MockExecutor) ExecuteWorkflow(ctx context.Context, inputs interfaces.ExecuteWorkflowInput) (*interfaces.ExecutionInfo, error)
- func (c *MockExecutor) SetExecuteTaskCallback(callback ExecuteTaskFunc)
- func (c *MockExecutor) SetExecuteWorkflowCallback(callback ExecuteWorkflowFunc)
- func (c *MockExecutor) SetTerminateExecutionCallback(callback TerminateWorkflowExecutionFunc)
- func (c *MockExecutor) TerminateWorkflowExecution(ctx context.Context, input interfaces.TerminateWorkflowInput) error
- type TerminateWorkflowExecutionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockCompiler ¶
func NewMockCompiler() interfaces.Compiler
func NewMockExecutor ¶
func NewMockExecutor() interfaces.Executor
Types ¶
type ExecuteTaskFunc ¶ added in v0.2.8
type ExecuteTaskFunc func(ctx context.Context, input interfaces.ExecuteTaskInput) (*interfaces.ExecutionInfo, error)
type ExecuteWorkflowFunc ¶ added in v0.1.1
type ExecuteWorkflowFunc func(input interfaces.ExecuteWorkflowInput) (*interfaces.ExecutionInfo, error)
type MockCompiler ¶
type MockCompiler struct {
// contains filtered or unexported fields
}
func (*MockCompiler) AddCompileTaskCallback ¶
func (c *MockCompiler) AddCompileTaskCallback( callback func(task *core.TaskTemplate) (*core.CompiledTask, error))
func (*MockCompiler) AddCompileWorkflowCallback ¶
func (c *MockCompiler) AddCompileWorkflowCallback(callback func( primaryWf *core.WorkflowTemplate, subworkflows []*core.WorkflowTemplate, tasks []*core.CompiledTask, launchPlans []common.InterfaceProvider) (*core.CompiledWorkflowClosure, error))
func (*MockCompiler) AddGetRequirementCallback ¶
func (c *MockCompiler) AddGetRequirementCallback( callback func(fg *core.WorkflowTemplate, subWfs []*core.WorkflowTemplate) ( reqs compiler.WorkflowExecutionRequirements, err error))
func (*MockCompiler) CompileTask ¶
func (c *MockCompiler) CompileTask(task *core.TaskTemplate) (*core.CompiledTask, error)
func (*MockCompiler) CompileWorkflow ¶
func (c *MockCompiler) CompileWorkflow( primaryWf *core.WorkflowTemplate, subworkflows []*core.WorkflowTemplate, tasks []*core.CompiledTask, launchPlans []common.InterfaceProvider) (*core.CompiledWorkflowClosure, error)
func (*MockCompiler) GetRequirements ¶
func (c *MockCompiler) GetRequirements(fg *core.WorkflowTemplate, subWfs []*core.WorkflowTemplate) ( reqs compiler.WorkflowExecutionRequirements, err error)
type MockExecutor ¶
type MockExecutor struct {
// contains filtered or unexported fields
}
func (*MockExecutor) ExecuteTask ¶ added in v0.2.8
func (c *MockExecutor) ExecuteTask(ctx context.Context, input interfaces.ExecuteTaskInput) (*interfaces.ExecutionInfo, error)
func (*MockExecutor) ExecuteWorkflow ¶
func (c *MockExecutor) ExecuteWorkflow( ctx context.Context, inputs interfaces.ExecuteWorkflowInput) (*interfaces.ExecutionInfo, error)
func (*MockExecutor) SetExecuteTaskCallback ¶ added in v0.2.8
func (c *MockExecutor) SetExecuteTaskCallback(callback ExecuteTaskFunc)
func (*MockExecutor) SetExecuteWorkflowCallback ¶
func (c *MockExecutor) SetExecuteWorkflowCallback(callback ExecuteWorkflowFunc)
func (*MockExecutor) SetTerminateExecutionCallback ¶
func (c *MockExecutor) SetTerminateExecutionCallback(callback TerminateWorkflowExecutionFunc)
func (*MockExecutor) TerminateWorkflowExecution ¶
func (c *MockExecutor) TerminateWorkflowExecution(ctx context.Context, input interfaces.TerminateWorkflowInput) error
type TerminateWorkflowExecutionFunc ¶
type TerminateWorkflowExecutionFunc func(ctx context.Context, input interfaces.TerminateWorkflowInput) error
Click to show internal directories.
Click to hide internal directories.