workflowsdk

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlreadyExistsError

type AlreadyExistsError struct {
	Hash hash.Hash
}

AlreadyExistsError is an not found error.

func (*AlreadyExistsError) Error

func (e *AlreadyExistsError) Error() string

type Workflow

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

Workflow exposes workflow APIs of MESG.

func New

func New(instance *instancesdk.Instance, workflowDB database.WorkflowDB) *Workflow

New creates a new Workflow SDK with given options.

func (*Workflow) Create

func (w *Workflow) Create(wf *workflow.Workflow) (*workflow.Workflow, error)

Create creates a new service from definition.

func (*Workflow) Delete

func (w *Workflow) Delete(hash hash.Hash) error

Delete deletes the workflow by hash.

func (*Workflow) Get

func (w *Workflow) Get(hash hash.Hash) (*workflow.Workflow, error)

Get returns the workflow that matches given hash.

func (*Workflow) List

func (w *Workflow) List() ([]*workflow.Workflow, error)

List returns all workflows.

Jump to

Keyboard shortcuts

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