Documentation ¶
Index ¶
- Variables
- func IsFinishedStatus(sts string) bool
- func RegisterExecutorBuilder(name string, builder func(flow types.Flow) Executor)
- type Controller
- type DAG
- type Executor
- type MemStorage
- func (m *MemStorage) DeleteFlow(ctx context.Context, flowId string) error
- func (m *MemStorage) GetFlow(ctx context.Context, flowId string) (types.Flow, error)
- func (m *MemStorage) SaveFlow(ctx context.Context, flow types.Flow) error
- func (m *MemStorage) SaveTask(ctx context.Context, flowId string, task types.Task) error
- type Operator
- type Parameter
- type ResultData
- type Runner
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
View Source
var (
ExecutorNotFound = errors.New("executor not found")
)
Functions ¶
func IsFinishedStatus ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewFlowController ¶
func NewFlowController(storage Storage) *Controller
func (*Controller) CancelFlow ¶
func (c *Controller) CancelFlow(flowId string) error
func (*Controller) PauseFlow ¶
func (c *Controller) PauseFlow(flowId string) error
func (*Controller) ResumeFlow ¶
func (c *Controller) ResumeFlow(flowId string) error
func (*Controller) Shutdown ¶
func (c *Controller) Shutdown() error
func (*Controller) TriggerFlow ¶
func (c *Controller) TriggerFlow(ctx context.Context, flowId string) error
type MemStorage ¶
func (*MemStorage) DeleteFlow ¶
func (m *MemStorage) DeleteFlow(ctx context.Context, flowId string) error
type Parameter ¶
type Parameter struct { FlowID string Workdir string Result *ResultData }
type Runner ¶
type Storage ¶
type Storage interface { GetFlow(ctx context.Context, flowId string) (types.Flow, error) SaveFlow(ctx context.Context, flow types.Flow) error DeleteFlow(ctx context.Context, flowId string) error SaveTask(ctx context.Context, flowId string, task types.Task) error }
func NewInMemoryStorage ¶
func NewInMemoryStorage() Storage
Click to show internal directories.
Click to hide internal directories.