processesdk

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 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 Process

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

Process exposes process APIs of MESG.

func New

func New(instance *instancesdk.Instance, processDB database.ProcessDB) *Process

New creates a new Process SDK with given options.

func (*Process) Create

func (w *Process) Create(wf *process.Process) (*process.Process, error)

Create creates a new service from definition.

func (*Process) Delete

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

Delete deletes the process by hash.

func (*Process) Get

func (w *Process) Get(hash hash.Hash) (*process.Process, error)

Get returns the process that matches given hash.

func (*Process) List

func (w *Process) List() ([]*process.Process, error)

List returns all processes.

Jump to

Keyboard shortcuts

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