executionsdk

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend added in v0.17.0

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

Backend is the execution backend.

func NewBackend added in v0.17.0

func NewBackend(appFactory *cosmos.AppFactory, serviceBack *servicesdk.Backend, instanceBack *instancesdk.Backend, runnerBack *runnersdk.Backend, processBack *processsdk.Backend) *Backend

NewBackend returns the backend of the execution sdk.

func (*Backend) Create added in v0.17.0

func (s *Backend) Create(request cosmostypes.Request, msg msgCreateExecution) (*execution.Execution, error)

Create creates a new execution from definition.

func (*Backend) Get added in v0.17.0

func (s *Backend) Get(request cosmostypes.Request, hash hash.Hash) (*execution.Execution, error)

Get returns the execution that matches given hash.

func (*Backend) List added in v0.17.0

func (s *Backend) List(request cosmostypes.Request) ([]*execution.Execution, error)

List returns all executions.

func (*Backend) Update added in v0.17.0

func (s *Backend) Update(request cosmostypes.Request, msg msgUpdateExecution) (*execution.Execution, error)

Update updates a new execution from definition.

type SDK added in v0.17.0

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

SDK is the execution sdk.

func New

func New(client *cosmos.Client, serviceSDK *servicesdk.SDK, instanceSDK *instancesdk.SDK, runnerSDK *runnersdk.SDK) *SDK

New returns the execution sdk.

func (*SDK) Create added in v0.17.0

func (s *SDK) Create(req *api.CreateExecutionRequest) (*execution.Execution, error)

Create creates a new execution.

func (*SDK) Get added in v0.17.0

func (s *SDK) Get(hash hash.Hash) (*execution.Execution, error)

Get returns the execution that matches given hash.

func (*SDK) List added in v0.17.0

func (s *SDK) List() ([]*execution.Execution, error)

List returns all executions.

func (*SDK) Stream added in v0.17.0

func (s *SDK) Stream(ctx context.Context, req *api.StreamExecutionRequest) (chan *execution.Execution, chan error, error)

Stream returns execution that matches given hash.

func (*SDK) Update added in v0.17.0

func (s *SDK) Update(req *api.UpdateExecutionRequest) (*execution.Execution, error)

Update updates a execution.

Jump to

Keyboard shortcuts

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