datastore

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

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

Datastore handles connections to and from datastores

func NewDatastore

func NewDatastore(uri string) (d Datastore, err error)

NewDatastore will create and test a connection into storage

func (Datastore) DumpWorkflowRunner

func (d Datastore) DumpWorkflowRunner(wfr workflow.Runner) error

DumpWorkflowRunner dumps a running `WorkflowRunner`'s state to storage

func (Datastore) LoadWorkflow

func (d Datastore) LoadWorkflow(name string) (wf workflow.Workflow, err error)

LoadWorkflow returns a Workflow object from a workflow name

func (Datastore) LoadWorkflowRunner

func (d Datastore) LoadWorkflowRunner(uuid string) (wfr workflow.Runner, err error)

LoadWorkflowRunner returns a WorkflowRunner; a parsed and compiled workflow with a simple state machine

func (Datastore) SaveWorkflow

func (d Datastore) SaveWorkflow(w workflow.Workflow, overwrite bool) error

SaveWorkflow saves a new workflow or overwrites an existing (if overwrite=true)

Jump to

Keyboard shortcuts

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