Documentation ¶
Index ¶
- Constants
- Variables
- func ParamKeyTable() params.KeyTable
- func RegisterCodec(cdc *codec.Codec)
- func ValidateGenesis(data GenesisState) error
- type GenesisState
- type InstanceKeeper
- type MsgCreate
- func (*MsgCreate) Descriptor() ([]byte, []int)
- func (m *MsgCreate) GetEnvHash() github_com_mesg_foundation_engine_hash.Hash
- func (m *MsgCreate) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgCreate) GetServiceHash() github_com_mesg_foundation_engine_hash.Hash
- func (msg MsgCreate) GetSignBytes() []byte
- func (msg MsgCreate) GetSigners() []sdk.AccAddress
- func (*MsgCreate) ProtoMessage()
- func (m *MsgCreate) Reset()
- func (msg MsgCreate) Route() string
- func (m *MsgCreate) String() string
- func (msg MsgCreate) Type() string
- func (msg MsgCreate) ValidateBasic() error
- func (m *MsgCreate) XXX_DiscardUnknown()
- func (m *MsgCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreate) XXX_Merge(src proto.Message)
- func (m *MsgCreate) XXX_Size() int
- func (m *MsgCreate) XXX_Unmarshal(b []byte) error
- type MsgDelete
- func (*MsgDelete) Descriptor() ([]byte, []int)
- func (m *MsgDelete) GetHash() github_com_mesg_foundation_engine_hash.Hash
- func (m *MsgDelete) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgDelete) GetSignBytes() []byte
- func (msg MsgDelete) GetSigners() []sdk.AccAddress
- func (*MsgDelete) ProtoMessage()
- func (m *MsgDelete) Reset()
- func (msg MsgDelete) Route() string
- func (m *MsgDelete) String() string
- func (msg MsgDelete) Type() string
- func (msg MsgDelete) ValidateBasic() error
- func (m *MsgDelete) XXX_DiscardUnknown()
- func (m *MsgDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelete) XXX_Merge(src proto.Message)
- func (m *MsgDelete) XXX_Size() int
- func (m *MsgDelete) XXX_Unmarshal(b []byte) error
- type OwnershipKeeper
- type ParamSubspace
- type Params
Constants ¶
const ( EventType = "runner" AttributeKeyHash = "hash" AttributeKeyAddress = "address" AttributeKeyInstance = "instance" AttributeActionCreated = "created" AttributeActionDeleted = "deleted" )
module event types and attributes
const ( // ModuleName is the name of the module ModuleName = "runner" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierRoute to be used for routing QuerierRoute = ModuleName )
const ( QueryGet = "get" QueryList = "list" QueryExist = "exist" )
Query endpoints supported by the runner querier
const (
DefaultParamspace = ModuleName
)
Default parameter namespace
Variables ¶
var ModuleCdc *codec.Codec
ModuleCdc defines the module codec
Functions ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on codec
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the instance genesis parameters
Types ¶
type GenesisState ¶
type GenesisState struct{}
GenesisState - all instance state that must be provided at genesis
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState - default GenesisState used by Cosmos Hub
func NewGenesisState ¶
func NewGenesisState() GenesisState
NewGenesisState creates a new GenesisState object
type InstanceKeeper ¶
type InstanceKeeper interface {
FetchOrCreate(ctx sdk.Context, serviceHash hash.Hash, envHash hash.Hash) (*instance.Instance, error)
}
InstanceKeeper module interface.
type MsgCreate ¶ added in v0.21.0
type MsgCreate struct { // The Runner's owner. Owner github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 149-byte string literal not displayed */ // Service's hash to start the runner with. ServiceHash github_com_mesg_foundation_engine_hash.Hash `` /* 153-byte string literal not displayed */ // Hash of the customized environmental variables (not the ones in the service configuration). EnvHash github_com_mesg_foundation_engine_hash.Hash `` /* 146-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message to create a Runner.
func (*MsgCreate) Descriptor ¶ added in v0.21.0
func (*MsgCreate) GetEnvHash ¶ added in v0.21.0
func (m *MsgCreate) GetEnvHash() github_com_mesg_foundation_engine_hash.Hash
func (*MsgCreate) GetOwner ¶ added in v0.21.0
func (m *MsgCreate) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*MsgCreate) GetServiceHash ¶ added in v0.21.0
func (m *MsgCreate) GetServiceHash() github_com_mesg_foundation_engine_hash.Hash
func (MsgCreate) GetSignBytes ¶ added in v0.21.0
GetSignBytes encodes the message for signing.
func (MsgCreate) GetSigners ¶ added in v0.21.0
func (msg MsgCreate) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgCreate) ProtoMessage ¶ added in v0.21.0
func (*MsgCreate) ProtoMessage()
func (MsgCreate) ValidateBasic ¶ added in v0.21.0
ValidateBasic runs stateless checks on the message.
func (*MsgCreate) XXX_DiscardUnknown ¶ added in v0.21.0
func (m *MsgCreate) XXX_DiscardUnknown()
func (*MsgCreate) XXX_Marshal ¶ added in v0.21.0
func (*MsgCreate) XXX_Unmarshal ¶ added in v0.21.0
type MsgDelete ¶ added in v0.21.0
type MsgDelete struct { // The Runner's owner. Owner github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 149-byte string literal not displayed */ // Runner's hash Hash github_com_mesg_foundation_engine_hash.Hash `` /* 139-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message to delete a Runner.
func (*MsgDelete) Descriptor ¶ added in v0.21.0
func (*MsgDelete) GetHash ¶ added in v0.21.0
func (m *MsgDelete) GetHash() github_com_mesg_foundation_engine_hash.Hash
func (*MsgDelete) GetOwner ¶ added in v0.21.0
func (m *MsgDelete) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgDelete) GetSignBytes ¶ added in v0.21.0
GetSignBytes encodes the message for signing.
func (MsgDelete) GetSigners ¶ added in v0.21.0
func (msg MsgDelete) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgDelete) ProtoMessage ¶ added in v0.21.0
func (*MsgDelete) ProtoMessage()
func (MsgDelete) ValidateBasic ¶ added in v0.21.0
ValidateBasic runs stateless checks on the message.
func (*MsgDelete) XXX_DiscardUnknown ¶ added in v0.21.0
func (m *MsgDelete) XXX_DiscardUnknown()
func (*MsgDelete) XXX_Marshal ¶ added in v0.21.0
func (*MsgDelete) XXX_Unmarshal ¶ added in v0.21.0
type OwnershipKeeper ¶ added in v0.20.0
type OwnershipKeeper interface { Set(ctx sdk.Context, owner sdk.AccAddress, resourceHash hash.Hash, resource ownershippb.Ownership_Resource, resourceAddress sdk.AccAddress) (*ownershippb.Ownership, error) Delete(ctx sdk.Context, owner sdk.AccAddress, resourceHash hash.Hash) error }
OwnershipKeeper module interface.
type ParamSubspace ¶
type ParamSubspace interface { WithKeyTable(table params.KeyTable) params.Subspace Get(ctx sdk.Context, key []byte, ptr interface{}) GetParamSet(ctx sdk.Context, ps params.ParamSet) SetParamSet(ctx sdk.Context, ps params.ParamSet) }
ParamSubspace defines the expected Subspace interfacace
type Params ¶
type Params struct{}
Params - used for initializing default parameter for instance at genesis
func DefaultParams ¶
func DefaultParams() Params
DefaultParams defines the parameters for this module
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() params.ParamSetPairs
ParamSetPairs - Implements params.ParamSet