runnersdk

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

Backend is the runner backend.

func NewBackend

func NewBackend(appFactory *cosmos.AppFactory, instanceBack *instancesdk.Backend) *Backend

NewBackend returns the backend of the runner sdk.

func (*Backend) Create

func (s *Backend) Create(request cosmostypes.Request, msg *msgCreateRunner) (*runner.Runner, error)

Create creates a new runner.

func (*Backend) Delete

func (s *Backend) Delete(request cosmostypes.Request, msg *msgDeleteRunner) error

Delete deletes a runner.

func (*Backend) Get

func (s *Backend) Get(request cosmostypes.Request, hash hash.Hash) (*runner.Runner, error)

Get returns the runner that matches given hash.

func (*Backend) List

func (s *Backend) List(request cosmostypes.Request) ([]*runner.Runner, error)

List returns all runners.

type Filter

type Filter struct {
	Address      string
	InstanceHash hash.Hash
}

Filter to apply while listing 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