keeper

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

NewQuerier creates a new querier for instance clients.

Types

type Keeper

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

Keeper of the instance store

func NewKeeper

func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, serviceKeeper types.ServiceKeeper) Keeper

NewKeeper creates a instance keeper

func (Keeper) FetchOrCreate

func (k Keeper) FetchOrCreate(ctx sdk.Context, serviceHash hash.Hash, envHash hash.Hash) (*instance.Instance, error)

FetchOrCreate creates a new instance if needed.

func (Keeper) Get

func (k Keeper) Get(ctx sdk.Context, instanceHash hash.Hash) (*instance.Instance, error)

Get returns the instance from the keeper.

func (*Keeper) Import added in v0.25.1

func (k *Keeper) Import(ctx sdk.Context, instances []*instance.Instance) error

Import imports a list of instances into the store.

func (Keeper) List

func (k Keeper) List(ctx sdk.Context) ([]*instance.Instance, error)

List returns instances from the keeper.

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

Jump to

Keyboard shortcuts

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