types

package
v1.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContextKeyMetadata is key that refer to application metadata.
	ContextKeyMetadata = "metadata__"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Suspend(message string)
	Terminate(message string)
	Wait(message string)
}

Action is that workflow provider can do.

type Operation

type Operation struct {
	Suspend    bool
	Terminated bool
}

Operation is workflow operation object.

type TaskDiscover

type TaskDiscover interface {
	GetTaskGenerator(ctx context.Context, name string) (TaskGenerator, error)
}

TaskDiscover is the interface to obtain the TaskGenerator。

type TaskGenerator

type TaskGenerator func(wfStep v1beta1.WorkflowStep) (TaskRunner, error)

TaskGenerator will generate taskRunner.

type TaskRunner

type TaskRunner func(ctx wfContext.Context) (common.WorkflowStepStatus, *Operation, error)

TaskRunner is a task runner.

Jump to

Keyboard shortcuts

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