runnersdk

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: 27 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "runner"

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 Filter

type Filter struct {
	Address      string
	InstanceHash hash.Hash
}

Filter to apply while listing runners.

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, instanceKeeper *instancesdk.Keeper) *Keeper

NewKeeper initialize a new keeper.

func (*Keeper) Create added in v0.18.3

func (k *Keeper) Create(request cosmostypes.Request, msg *msgCreateRunner) (*runner.Runner, error)

Create creates a new runner.

func (*Keeper) Delete added in v0.18.3

func (k *Keeper) Delete(request cosmostypes.Request, msg *msgDeleteRunner) error

Delete deletes a runner.

func (*Keeper) Get added in v0.18.3

func (k *Keeper) Get(request cosmostypes.Request, hash hash.Hash) (*runner.Runner, error)

Get returns the runner that matches given hash.

func (*Keeper) List added in v0.18.3

func (k *Keeper) List(request cosmostypes.Request) ([]*runner.Runner, error)

List returns all runners.

type SDK

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

SDK is the runner sdk.

func New

func New(client *cosmos.Client, serviceSDK *servicesdk.SDK, instanceSDK *instancesdk.SDK, container container.Container, engineName, port, ipfsEndpoint string) *SDK

New returns the runner sdk.

func (*SDK) Create

func (s *SDK) Create(req *api.CreateRunnerRequest) (*runner.Runner, error)

Create creates a new runner.

func (*SDK) Delete

func (s *SDK) Delete(req *api.DeleteRunnerRequest) error

Delete deletes an existing runner.

func (*SDK) Get

func (s *SDK) Get(hash hash.Hash) (*runner.Runner, error)

Get returns the runner that matches given hash.

func (*SDK) List

func (s *SDK) List(f *Filter) ([]*runner.Runner, error)

List returns all runners.

Jump to

Keyboard shortcuts

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