Documentation ¶
Index ¶
- Constants
- func NewModule(k *Keeper) module.AppModule
- type Keeper
- func (k *Keeper) Exists(request cosmostypes.Request, hash hash.Hash) (bool, error)
- func (k *Keeper) FetchOrCreate(request cosmostypes.Request, serviceHash hash.Hash, envHash hash.Hash) (*instance.Instance, error)
- func (k *Keeper) Get(request cosmostypes.Request, hash hash.Hash) (*instance.Instance, error)
- func (k *Keeper) List(request cosmostypes.Request, f *api.ListInstanceRequest_Filter) ([]*instance.Instance, error)
- type SDK
Constants ¶
View Source
const ModuleName = "instance"
ModuleName is the name of this module.
Variables ¶
This section is empty.
Functions ¶
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) *Keeper
NewKeeper initialize a new keeper.
func (*Keeper) Exists ¶ added in v0.18.3
Exists returns true if a specific set of data exists in the database, false otherwise
func (*Keeper) FetchOrCreate ¶ added in v0.18.3
func (k *Keeper) FetchOrCreate(request cosmostypes.Request, serviceHash hash.Hash, envHash hash.Hash) (*instance.Instance, error)
FetchOrCreate creates a new instance if needed.
func (*Keeper) List ¶ added in v0.18.3
func (k *Keeper) List(request cosmostypes.Request, f *api.ListInstanceRequest_Filter) ([]*instance.Instance, error)
List returns all instances.
Click to show internal directories.
Click to hide internal directories.