executionsdk

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "execution"

ModuleName is the name of this module.

Variables

This section is empty.

Functions

func NewModule added in v0.18.3

func NewModule(k *Keeper) module.AppModule

NewModule returns the module of this sdk.

Types

type Keeper added in v0.18.3

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

Keeper holds the logic to read and write data.

func NewKeeper added in v0.18.3

func NewKeeper(storeKey *cosmostypes.KVStoreKey, serviceKeeper *servicesdk.Keeper, instanceKeeper *instancesdk.Keeper, runnerKeeper *runnersdk.Keeper, processKeeper *processsdk.Keeper) *Keeper

NewKeeper initialize a new keeper.

func (*Keeper) Create added in v0.18.3

func (k *Keeper) Create(request cosmostypes.Request, msg msgCreateExecution) (*execution.Execution, error)

Create creates a new execution from definition.

func (*Keeper) Get added in v0.18.3

func (k *Keeper) Get(request cosmostypes.Request, hash hash.Hash) (*execution.Execution, error)

Get returns the execution that matches given hash.

func (*Keeper) List added in v0.18.3

func (k *Keeper) List(request cosmostypes.Request) ([]*execution.Execution, error)

List returns all executions.

func (*Keeper) Update added in v0.18.3

func (k *Keeper) 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