Documentation ¶
Overview ¶
Package cloudflow provides workflow engine with cloud computing platforms.
Installation
go get github.com/yonekawa/cloudflow
Dependencies
go get github.com/aws/aws-sdk-go go get github.com/hashicorp/go-multierror
Index ¶
- type ParallelTask
- type Task
- type Workflow
- func (wf *Workflow) AddTask(name string, task Task)
- func (wf *Workflow) Execute() error
- func (wf *Workflow) Run() error
- func (wf *Workflow) RunFrom(name string) error
- func (wf *Workflow) RunOnly(name string) error
- func (wf *Workflow) SetLogger(logger *log.Logger)
- func (wf *Workflow) Summary() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParallelTask ¶
type ParallelTask struct {
// contains filtered or unexported fields
}
ParallelTask represents parallel task on workflow.
func NewParallelTask ¶
func NewParallelTask() *ParallelTask
NewParallelTask creates a parallel task by task list.
func (*ParallelTask) AddTask ¶
func (pt *ParallelTask) AddTask(name string, task Task)
AddTask add parallel task with name
func (*ParallelTask) Execute ¶
func (pt *ParallelTask) Execute() error
Execute implement Task.Execute.
func (*ParallelTask) Summary ¶
func (pt *ParallelTask) Summary() string
Summary returns parallel task summary.
type Workflow ¶
type Workflow struct {
// contains filtered or unexported fields
}
Workflow contains tasks list of workflow definition.
func (*Workflow) Execute ¶
Execute implement Task.Execute. Workflow can be Task on other workflow definition.
Click to show internal directories.
Click to hide internal directories.