Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func DeploymentIDEVAttributes(id DeploymentID) []sdk.Attribute
- func EscrowAccountForDeployment(id DeploymentID) etypes.AccountID
- func GroupIDEVAttributes(id GroupID) []sdk.Attribute
- func ParamKeyTable() paramtypes.KeyTable
- func ParseEVDeploymentVersion(attrs []sdk.Attribute) ([]byte, error)
- func ParseEvent(ev sdkutil.Event) (sdkutil.ModuleEvent, error)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateDeploymentGroups(gspecs []GroupSpec) error
- func ValidateResourceList(rlist types.ResourceGroup) error
- type Deployment
- func (*Deployment) Descriptor() ([]byte, []int)
- func (m *Deployment) GetCreatedAt() int64
- func (m *Deployment) GetDeploymentID() DeploymentID
- func (m *Deployment) GetState() Deployment_State
- func (m *Deployment) GetVersion() []byte
- func (obj Deployment) ID() DeploymentID
- func (m *Deployment) Marshal() (dAtA []byte, err error)
- func (m *Deployment) MarshalTo(dAtA []byte) (int, error)
- func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Deployment) ProtoMessage()
- func (m *Deployment) Reset()
- func (m *Deployment) Size() (n int)
- func (m *Deployment) String() string
- func (m *Deployment) Unmarshal(dAtA []byte) error
- func (m *Deployment) XXX_DiscardUnknown()
- func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Deployment) XXX_Merge(src proto.Message)
- func (m *Deployment) XXX_Size() int
- func (m *Deployment) XXX_Unmarshal(b []byte) error
- type DeploymentFilters
- func (filters DeploymentFilters) Accept(obj Deployment, stateVal Deployment_State) bool
- func (*DeploymentFilters) Descriptor() ([]byte, []int)
- func (m *DeploymentFilters) GetDSeq() uint64
- func (m *DeploymentFilters) GetOwner() string
- func (m *DeploymentFilters) GetState() string
- func (m *DeploymentFilters) Marshal() (dAtA []byte, err error)
- func (m *DeploymentFilters) MarshalTo(dAtA []byte) (int, error)
- func (m *DeploymentFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeploymentFilters) ProtoMessage()
- func (m *DeploymentFilters) Reset()
- func (m *DeploymentFilters) Size() (n int)
- func (m *DeploymentFilters) String() string
- func (m *DeploymentFilters) Unmarshal(dAtA []byte) error
- func (m *DeploymentFilters) XXX_DiscardUnknown()
- func (m *DeploymentFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeploymentFilters) XXX_Merge(src proto.Message)
- func (m *DeploymentFilters) XXX_Size() int
- func (m *DeploymentFilters) XXX_Unmarshal(b []byte) error
- type DeploymentID
- func (*DeploymentID) Descriptor() ([]byte, []int)
- func (id DeploymentID) Equals(other DeploymentID) bool
- func (m *DeploymentID) GetDSeq() uint64
- func (m *DeploymentID) GetOwner() string
- func (m *DeploymentID) Marshal() (dAtA []byte, err error)
- func (m *DeploymentID) MarshalTo(dAtA []byte) (int, error)
- func (m *DeploymentID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeploymentID) ProtoMessage()
- func (m *DeploymentID) Reset()
- func (m *DeploymentID) Size() (n int)
- func (id DeploymentID) String() string
- func (m *DeploymentID) Unmarshal(dAtA []byte) error
- func (id DeploymentID) Validate() error
- func (m *DeploymentID) XXX_DiscardUnknown()
- func (m *DeploymentID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeploymentID) XXX_Merge(src proto.Message)
- func (m *DeploymentID) XXX_Size() int
- func (m *DeploymentID) XXX_Unmarshal(b []byte) error
- type DeploymentResponses
- type Deployment_State
- type EventDeploymentClosed
- type EventDeploymentCreated
- type EventDeploymentUpdated
- type EventGroupClosed
- type EventGroupPaused
- type EventGroupStarted
- type GenesisDeployment
- func (*GenesisDeployment) Descriptor() ([]byte, []int)
- func (m *GenesisDeployment) GetDeployment() Deployment
- func (m *GenesisDeployment) GetGroups() []Group
- func (m *GenesisDeployment) Marshal() (dAtA []byte, err error)
- func (m *GenesisDeployment) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisDeployment) ProtoMessage()
- func (m *GenesisDeployment) Reset()
- func (m *GenesisDeployment) Size() (n int)
- func (m *GenesisDeployment) String() string
- func (m *GenesisDeployment) Unmarshal(dAtA []byte) error
- func (m *GenesisDeployment) XXX_DiscardUnknown()
- func (m *GenesisDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisDeployment) XXX_Merge(src proto.Message)
- func (m *GenesisDeployment) XXX_Size() int
- func (m *GenesisDeployment) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDeployments() []GenesisDeployment
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Group
- func (*Group) Descriptor() ([]byte, []int)
- func (m *Group) GetCreatedAt() int64
- func (m *Group) GetGroupID() GroupID
- func (m *Group) GetGroupSpec() GroupSpec
- func (g Group) GetName() string
- func (g Group) GetResources() []types.Resources
- func (m *Group) GetState() Group_State
- func (g Group) ID() GroupID
- func (m *Group) Marshal() (dAtA []byte, err error)
- func (m *Group) MarshalTo(dAtA []byte) (int, error)
- func (m *Group) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Group) ProtoMessage()
- func (m *Group) Reset()
- func (m *Group) Size() (n int)
- func (m *Group) String() string
- func (m *Group) Unmarshal(dAtA []byte) error
- func (g Group) ValidateClosable() error
- func (g Group) ValidatePausable() error
- func (g Group) ValidateStartable() error
- func (m *Group) XXX_DiscardUnknown()
- func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Group) XXX_Merge(src proto.Message)
- func (m *Group) XXX_Size() int
- func (m *Group) XXX_Unmarshal(b []byte) error
- type GroupID
- func (id GroupID) DeploymentID() DeploymentID
- func (*GroupID) Descriptor() ([]byte, []int)
- func (id GroupID) Equals(other GroupID) bool
- func (m *GroupID) GetDSeq() uint64
- func (m *GroupID) GetGSeq() uint32
- func (m *GroupID) GetOwner() string
- func (m *GroupID) Marshal() (dAtA []byte, err error)
- func (m *GroupID) MarshalTo(dAtA []byte) (int, error)
- func (m *GroupID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GroupID) ProtoMessage()
- func (m *GroupID) Reset()
- func (m *GroupID) Size() (n int)
- func (id GroupID) String() string
- func (m *GroupID) Unmarshal(dAtA []byte) error
- func (id GroupID) Validate() error
- func (m *GroupID) XXX_DiscardUnknown()
- func (m *GroupID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GroupID) XXX_Merge(src proto.Message)
- func (m *GroupID) XXX_Size() int
- func (m *GroupID) XXX_Unmarshal(b []byte) error
- type GroupSpec
- func (*GroupSpec) Descriptor() ([]byte, []int)
- func (g GroupSpec) GetName() string
- func (g GroupSpec) GetResources() []types.Resources
- func (m *GroupSpec) Marshal() (dAtA []byte, err error)
- func (m *GroupSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *GroupSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (g GroupSpec) MatchAttributes(attr types.Attributes) bool
- func (g GroupSpec) MatchRequirements(provider []atypes.Provider) bool
- func (g GroupSpec) Price() sdk.Coin
- func (*GroupSpec) ProtoMessage()
- func (m *GroupSpec) Reset()
- func (m *GroupSpec) Size() (n int)
- func (m *GroupSpec) String() string
- func (m *GroupSpec) Unmarshal(dAtA []byte) error
- func (g GroupSpec) ValidateBasic() error
- func (m *GroupSpec) XXX_DiscardUnknown()
- func (m *GroupSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GroupSpec) XXX_Merge(src proto.Message)
- func (m *GroupSpec) XXX_Size() int
- func (m *GroupSpec) XXX_Unmarshal(b []byte) error
- type Group_State
- type MsgClient
- type MsgCloseDeployment
- func (*MsgCloseDeployment) Descriptor() ([]byte, []int)
- func (m *MsgCloseDeployment) GetID() DeploymentID
- func (msg MsgCloseDeployment) GetSignBytes() []byte
- func (msg MsgCloseDeployment) GetSigners() []sdk.AccAddress
- func (m *MsgCloseDeployment) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseDeployment) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseDeployment) ProtoMessage()
- func (m *MsgCloseDeployment) Reset()
- func (msg MsgCloseDeployment) Route() string
- func (m *MsgCloseDeployment) Size() (n int)
- func (m *MsgCloseDeployment) String() string
- func (msg MsgCloseDeployment) Type() string
- func (m *MsgCloseDeployment) Unmarshal(dAtA []byte) error
- func (msg MsgCloseDeployment) ValidateBasic() error
- func (m *MsgCloseDeployment) XXX_DiscardUnknown()
- func (m *MsgCloseDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseDeployment) XXX_Merge(src proto.Message)
- func (m *MsgCloseDeployment) XXX_Size() int
- func (m *MsgCloseDeployment) XXX_Unmarshal(b []byte) error
- type MsgCloseDeploymentResponse
- func (*MsgCloseDeploymentResponse) Descriptor() ([]byte, []int)
- func (m *MsgCloseDeploymentResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseDeploymentResponse) ProtoMessage()
- func (m *MsgCloseDeploymentResponse) Reset()
- func (m *MsgCloseDeploymentResponse) Size() (n int)
- func (m *MsgCloseDeploymentResponse) String() string
- func (m *MsgCloseDeploymentResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCloseDeploymentResponse) XXX_DiscardUnknown()
- func (m *MsgCloseDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseDeploymentResponse) XXX_Merge(src proto.Message)
- func (m *MsgCloseDeploymentResponse) XXX_Size() int
- func (m *MsgCloseDeploymentResponse) XXX_Unmarshal(b []byte) error
- type MsgCloseGroup
- func (*MsgCloseGroup) Descriptor() ([]byte, []int)
- func (m *MsgCloseGroup) GetID() GroupID
- func (msg MsgCloseGroup) GetSignBytes() []byte
- func (msg MsgCloseGroup) GetSigners() []sdk.AccAddress
- func (m *MsgCloseGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseGroup) ProtoMessage()
- func (m *MsgCloseGroup) Reset()
- func (msg MsgCloseGroup) Route() string
- func (m *MsgCloseGroup) Size() (n int)
- func (m *MsgCloseGroup) String() string
- func (msg MsgCloseGroup) Type() string
- func (m *MsgCloseGroup) Unmarshal(dAtA []byte) error
- func (msg MsgCloseGroup) ValidateBasic() error
- func (m *MsgCloseGroup) XXX_DiscardUnknown()
- func (m *MsgCloseGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseGroup) XXX_Merge(src proto.Message)
- func (m *MsgCloseGroup) XXX_Size() int
- func (m *MsgCloseGroup) XXX_Unmarshal(b []byte) error
- type MsgCloseGroupResponse
- func (*MsgCloseGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgCloseGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseGroupResponse) ProtoMessage()
- func (m *MsgCloseGroupResponse) Reset()
- func (m *MsgCloseGroupResponse) Size() (n int)
- func (m *MsgCloseGroupResponse) String() string
- func (m *MsgCloseGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCloseGroupResponse) XXX_DiscardUnknown()
- func (m *MsgCloseGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgCloseGroupResponse) XXX_Size() int
- func (m *MsgCloseGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateDeployment
- func (*MsgCreateDeployment) Descriptor() ([]byte, []int)
- func (m *MsgCreateDeployment) GetDeposit() types.Coin
- func (m *MsgCreateDeployment) GetGroups() []GroupSpec
- func (m *MsgCreateDeployment) GetID() DeploymentID
- func (msg MsgCreateDeployment) GetSignBytes() []byte
- func (msg MsgCreateDeployment) GetSigners() []sdk.AccAddress
- func (m *MsgCreateDeployment) GetVersion() []byte
- func (m *MsgCreateDeployment) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDeployment) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDeployment) ProtoMessage()
- func (m *MsgCreateDeployment) Reset()
- func (msg MsgCreateDeployment) Route() string
- func (m *MsgCreateDeployment) Size() (n int)
- func (m *MsgCreateDeployment) String() string
- func (msg MsgCreateDeployment) Type() string
- func (m *MsgCreateDeployment) Unmarshal(dAtA []byte) error
- func (msg MsgCreateDeployment) ValidateBasic() error
- func (m *MsgCreateDeployment) XXX_DiscardUnknown()
- func (m *MsgCreateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDeployment) XXX_Merge(src proto.Message)
- func (m *MsgCreateDeployment) XXX_Size() int
- func (m *MsgCreateDeployment) XXX_Unmarshal(b []byte) error
- type MsgCreateDeploymentResponse
- func (*MsgCreateDeploymentResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateDeploymentResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDeploymentResponse) ProtoMessage()
- func (m *MsgCreateDeploymentResponse) Reset()
- func (m *MsgCreateDeploymentResponse) Size() (n int)
- func (m *MsgCreateDeploymentResponse) String() string
- func (m *MsgCreateDeploymentResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateDeploymentResponse) XXX_DiscardUnknown()
- func (m *MsgCreateDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDeploymentResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateDeploymentResponse) XXX_Size() int
- func (m *MsgCreateDeploymentResponse) XXX_Unmarshal(b []byte) error
- type MsgDepositDeployment
- func (*MsgDepositDeployment) Descriptor() ([]byte, []int)
- func (m *MsgDepositDeployment) GetAmount() types.Coin
- func (m *MsgDepositDeployment) GetID() DeploymentID
- func (msg MsgDepositDeployment) GetSignBytes() []byte
- func (msg MsgDepositDeployment) GetSigners() []sdk.AccAddress
- func (m *MsgDepositDeployment) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositDeployment) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositDeployment) ProtoMessage()
- func (m *MsgDepositDeployment) Reset()
- func (msg MsgDepositDeployment) Route() string
- func (m *MsgDepositDeployment) Size() (n int)
- func (m *MsgDepositDeployment) String() string
- func (msg MsgDepositDeployment) Type() string
- func (m *MsgDepositDeployment) Unmarshal(dAtA []byte) error
- func (msg MsgDepositDeployment) ValidateBasic() error
- func (m *MsgDepositDeployment) XXX_DiscardUnknown()
- func (m *MsgDepositDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositDeployment) XXX_Merge(src proto.Message)
- func (m *MsgDepositDeployment) XXX_Size() int
- func (m *MsgDepositDeployment) XXX_Unmarshal(b []byte) error
- type MsgDepositDeploymentResponse
- func (*MsgDepositDeploymentResponse) Descriptor() ([]byte, []int)
- func (m *MsgDepositDeploymentResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositDeploymentResponse) ProtoMessage()
- func (m *MsgDepositDeploymentResponse) Reset()
- func (m *MsgDepositDeploymentResponse) Size() (n int)
- func (m *MsgDepositDeploymentResponse) String() string
- func (m *MsgDepositDeploymentResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDepositDeploymentResponse) XXX_DiscardUnknown()
- func (m *MsgDepositDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositDeploymentResponse) XXX_Merge(src proto.Message)
- func (m *MsgDepositDeploymentResponse) XXX_Size() int
- func (m *MsgDepositDeploymentResponse) XXX_Unmarshal(b []byte) error
- type MsgPauseGroup
- func (*MsgPauseGroup) Descriptor() ([]byte, []int)
- func (m *MsgPauseGroup) GetID() GroupID
- func (msg MsgPauseGroup) GetSignBytes() []byte
- func (msg MsgPauseGroup) GetSigners() []sdk.AccAddress
- func (m *MsgPauseGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgPauseGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPauseGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPauseGroup) ProtoMessage()
- func (m *MsgPauseGroup) Reset()
- func (msg MsgPauseGroup) Route() string
- func (m *MsgPauseGroup) Size() (n int)
- func (m *MsgPauseGroup) String() string
- func (msg MsgPauseGroup) Type() string
- func (m *MsgPauseGroup) Unmarshal(dAtA []byte) error
- func (msg MsgPauseGroup) ValidateBasic() error
- func (m *MsgPauseGroup) XXX_DiscardUnknown()
- func (m *MsgPauseGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPauseGroup) XXX_Merge(src proto.Message)
- func (m *MsgPauseGroup) XXX_Size() int
- func (m *MsgPauseGroup) XXX_Unmarshal(b []byte) error
- type MsgPauseGroupResponse
- func (*MsgPauseGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgPauseGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPauseGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPauseGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPauseGroupResponse) ProtoMessage()
- func (m *MsgPauseGroupResponse) Reset()
- func (m *MsgPauseGroupResponse) Size() (n int)
- func (m *MsgPauseGroupResponse) String() string
- func (m *MsgPauseGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPauseGroupResponse) XXX_DiscardUnknown()
- func (m *MsgPauseGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPauseGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgPauseGroupResponse) XXX_Size() int
- func (m *MsgPauseGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgStartGroup
- func (*MsgStartGroup) Descriptor() ([]byte, []int)
- func (m *MsgStartGroup) GetID() GroupID
- func (msg MsgStartGroup) GetSignBytes() []byte
- func (msg MsgStartGroup) GetSigners() []sdk.AccAddress
- func (m *MsgStartGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgStartGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStartGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStartGroup) ProtoMessage()
- func (m *MsgStartGroup) Reset()
- func (msg MsgStartGroup) Route() string
- func (m *MsgStartGroup) Size() (n int)
- func (m *MsgStartGroup) String() string
- func (msg MsgStartGroup) Type() string
- func (m *MsgStartGroup) Unmarshal(dAtA []byte) error
- func (msg MsgStartGroup) ValidateBasic() error
- func (m *MsgStartGroup) XXX_DiscardUnknown()
- func (m *MsgStartGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStartGroup) XXX_Merge(src proto.Message)
- func (m *MsgStartGroup) XXX_Size() int
- func (m *MsgStartGroup) XXX_Unmarshal(b []byte) error
- type MsgStartGroupResponse
- func (*MsgStartGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgStartGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStartGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStartGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStartGroupResponse) ProtoMessage()
- func (m *MsgStartGroupResponse) Reset()
- func (m *MsgStartGroupResponse) Size() (n int)
- func (m *MsgStartGroupResponse) String() string
- func (m *MsgStartGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStartGroupResponse) XXX_DiscardUnknown()
- func (m *MsgStartGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStartGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgStartGroupResponse) XXX_Size() int
- func (m *MsgStartGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateDeployment
- func (*MsgUpdateDeployment) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDeployment) GetGroups() []GroupSpec
- func (m *MsgUpdateDeployment) GetID() DeploymentID
- func (msg MsgUpdateDeployment) GetSignBytes() []byte
- func (msg MsgUpdateDeployment) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateDeployment) GetVersion() []byte
- func (m *MsgUpdateDeployment) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDeployment) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDeployment) ProtoMessage()
- func (m *MsgUpdateDeployment) Reset()
- func (msg MsgUpdateDeployment) Route() string
- func (m *MsgUpdateDeployment) Size() (n int)
- func (m *MsgUpdateDeployment) String() string
- func (msg MsgUpdateDeployment) Type() string
- func (m *MsgUpdateDeployment) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateDeployment) ValidateBasic() error
- func (m *MsgUpdateDeployment) XXX_DiscardUnknown()
- func (m *MsgUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDeployment) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDeployment) XXX_Size() int
- func (m *MsgUpdateDeployment) XXX_Unmarshal(b []byte) error
- type MsgUpdateDeploymentResponse
- func (*MsgUpdateDeploymentResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDeploymentResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDeploymentResponse) ProtoMessage()
- func (m *MsgUpdateDeploymentResponse) Reset()
- func (m *MsgUpdateDeploymentResponse) Size() (n int)
- func (m *MsgUpdateDeploymentResponse) String() string
- func (m *MsgUpdateDeploymentResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateDeploymentResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDeploymentResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDeploymentResponse) XXX_Size() int
- func (m *MsgUpdateDeploymentResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDeploymentMinDeposit() types.Coin
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDeploymentRequest
- func (*QueryDeploymentRequest) Descriptor() ([]byte, []int)
- func (m *QueryDeploymentRequest) GetID() DeploymentID
- func (m *QueryDeploymentRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDeploymentRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDeploymentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDeploymentRequest) ProtoMessage()
- func (m *QueryDeploymentRequest) Reset()
- func (m *QueryDeploymentRequest) Size() (n int)
- func (m *QueryDeploymentRequest) String() string
- func (m *QueryDeploymentRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDeploymentRequest) XXX_DiscardUnknown()
- func (m *QueryDeploymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDeploymentRequest) XXX_Merge(src proto.Message)
- func (m *QueryDeploymentRequest) XXX_Size() int
- func (m *QueryDeploymentRequest) XXX_Unmarshal(b []byte) error
- type QueryDeploymentResponse
- func (*QueryDeploymentResponse) Descriptor() ([]byte, []int)
- func (m *QueryDeploymentResponse) GetDeployment() Deployment
- func (m *QueryDeploymentResponse) GetEscrowAccount() types.Account
- func (m *QueryDeploymentResponse) GetGroups() []Group
- func (m *QueryDeploymentResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDeploymentResponse) ProtoMessage()
- func (m *QueryDeploymentResponse) Reset()
- func (m *QueryDeploymentResponse) Size() (n int)
- func (m *QueryDeploymentResponse) String() string
- func (m *QueryDeploymentResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDeploymentResponse) XXX_DiscardUnknown()
- func (m *QueryDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDeploymentResponse) XXX_Merge(src proto.Message)
- func (m *QueryDeploymentResponse) XXX_Size() int
- func (m *QueryDeploymentResponse) XXX_Unmarshal(b []byte) error
- type QueryDeploymentsRequest
- func (*QueryDeploymentsRequest) Descriptor() ([]byte, []int)
- func (m *QueryDeploymentsRequest) GetFilters() DeploymentFilters
- func (m *QueryDeploymentsRequest) GetPagination() *query.PageRequest
- func (m *QueryDeploymentsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDeploymentsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDeploymentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDeploymentsRequest) ProtoMessage()
- func (m *QueryDeploymentsRequest) Reset()
- func (m *QueryDeploymentsRequest) Size() (n int)
- func (m *QueryDeploymentsRequest) String() string
- func (m *QueryDeploymentsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDeploymentsRequest) XXX_DiscardUnknown()
- func (m *QueryDeploymentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDeploymentsRequest) XXX_Merge(src proto.Message)
- func (m *QueryDeploymentsRequest) XXX_Size() int
- func (m *QueryDeploymentsRequest) XXX_Unmarshal(b []byte) error
- type QueryDeploymentsResponse
- func (*QueryDeploymentsResponse) Descriptor() ([]byte, []int)
- func (m *QueryDeploymentsResponse) GetDeployments() DeploymentResponses
- func (m *QueryDeploymentsResponse) GetPagination() *query.PageResponse
- func (m *QueryDeploymentsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDeploymentsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDeploymentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDeploymentsResponse) ProtoMessage()
- func (m *QueryDeploymentsResponse) Reset()
- func (m *QueryDeploymentsResponse) Size() (n int)
- func (m *QueryDeploymentsResponse) String() string
- func (m *QueryDeploymentsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDeploymentsResponse) XXX_DiscardUnknown()
- func (m *QueryDeploymentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDeploymentsResponse) XXX_Merge(src proto.Message)
- func (m *QueryDeploymentsResponse) XXX_Size() int
- func (m *QueryDeploymentsResponse) XXX_Unmarshal(b []byte) error
- type QueryGroupRequest
- func (*QueryGroupRequest) Descriptor() ([]byte, []int)
- func (m *QueryGroupRequest) GetID() GroupID
- func (m *QueryGroupRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGroupRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGroupRequest) ProtoMessage()
- func (m *QueryGroupRequest) Reset()
- func (m *QueryGroupRequest) Size() (n int)
- func (m *QueryGroupRequest) String() string
- func (m *QueryGroupRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGroupRequest) XXX_DiscardUnknown()
- func (m *QueryGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGroupRequest) XXX_Merge(src proto.Message)
- func (m *QueryGroupRequest) XXX_Size() int
- func (m *QueryGroupRequest) XXX_Unmarshal(b []byte) error
- type QueryGroupResponse
- func (*QueryGroupResponse) Descriptor() ([]byte, []int)
- func (m *QueryGroupResponse) GetGroup() Group
- func (m *QueryGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGroupResponse) ProtoMessage()
- func (m *QueryGroupResponse) Reset()
- func (m *QueryGroupResponse) Size() (n int)
- func (m *QueryGroupResponse) String() string
- func (m *QueryGroupResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGroupResponse) XXX_DiscardUnknown()
- func (m *QueryGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGroupResponse) XXX_Merge(src proto.Message)
- func (m *QueryGroupResponse) XXX_Size() int
- func (m *QueryGroupResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (r Resource) FullPrice() sdk.Coin
- func (m *Resource) GetCount() uint32
- func (m *Resource) GetPrice() types1.Coin
- func (m *Resource) GetResources() types.ResourceUnits
- func (m *Resource) Marshal() (dAtA []byte, err error)
- func (m *Resource) MarshalTo(dAtA []byte) (int, error)
- func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Resource) ProtoMessage()
- func (m *Resource) Reset()
- func (m *Resource) Size() (n int)
- func (m *Resource) String() string
- func (m *Resource) Unmarshal(dAtA []byte) error
- func (m *Resource) XXX_DiscardUnknown()
- func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resource) XXX_Merge(src proto.Message)
- func (m *Resource) XXX_Size() int
- func (m *Resource) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CloseDeployment(ctx context.Context, req *MsgCloseDeployment) (*MsgCloseDeploymentResponse, error)
- func (*UnimplementedMsgServer) CloseGroup(ctx context.Context, req *MsgCloseGroup) (*MsgCloseGroupResponse, error)
- func (*UnimplementedMsgServer) CreateDeployment(ctx context.Context, req *MsgCreateDeployment) (*MsgCreateDeploymentResponse, error)
- func (*UnimplementedMsgServer) DepositDeployment(ctx context.Context, req *MsgDepositDeployment) (*MsgDepositDeploymentResponse, error)
- func (*UnimplementedMsgServer) PauseGroup(ctx context.Context, req *MsgPauseGroup) (*MsgPauseGroupResponse, error)
- func (*UnimplementedMsgServer) StartGroup(ctx context.Context, req *MsgStartGroup) (*MsgStartGroupResponse, error)
- func (*UnimplementedMsgServer) UpdateDeployment(ctx context.Context, req *MsgUpdateDeployment) (*MsgUpdateDeploymentResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Deployment(ctx context.Context, req *QueryDeploymentRequest) (*QueryDeploymentResponse, error)
- func (*UnimplementedQueryServer) Deployments(ctx context.Context, req *QueryDeploymentsRequest) (*QueryDeploymentsResponse, error)
- func (*UnimplementedQueryServer) Group(ctx context.Context, req *QueryGroupRequest) (*QueryGroupResponse, error)
- type ValidationConfig
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "deployment" // StoreKey is the store key string for deployment StoreKey = ModuleName // RouterKey is the message route for deployment RouterKey = ModuleName )
const ( MsgTypeCreateDeployment = "create-deployment" MsgTypeDepositDeployment = "deposit-deployment" MsgTypeUpdateDeployment = "update-deployment" MsgTypeCloseDeployment = "close-deployment" MsgTypeCloseGroup = "close-group" MsgTypePauseGroup = "pause-group" MsgTypeStartGroup = "start-group" )
const ( // ManifestVersionLength is the length of manifest version ManifestVersionLength = 32 // DefaultOrderBiddingDuration is the default time limit for an Order being active. // After the duration, the Order is automatically closed. // ( 24(hr) * 3600(seconds per hour) ) / 7s-Block DefaultOrderBiddingDuration = int64(12342) // MaxBiddingDuration is roughly 30 days of block height MaxBiddingDuration = DefaultOrderBiddingDuration * int64(30) )
const (
EscrowScope = "deployment"
)
Variables ¶
var ( ErrInvalidLengthDeployment = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDeployment = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDeployment = fmt.Errorf("proto: unexpected end of group") )
var ( // ErrNameDoesNotExist is the error when name does not exist ErrNameDoesNotExist = sdkerrors.Register(ModuleName, errNameDoesNotExist, "Name does not exist") // ErrInvalidRequest is the error for invalid request ErrInvalidRequest = sdkerrors.Register(ModuleName, errInvalidRequest, "Invalid request") // ErrDeploymentExists is the error when already deployment exists ErrDeploymentExists = sdkerrors.Register(ModuleName, errDeploymentExists, "Deployment exists") // ErrDeploymentNotFound is the error when deployment not found ErrDeploymentNotFound = sdkerrors.Register(ModuleName, errDeploymentNotFound, "Deployment not found") // ErrDeploymentClosed is the error when deployment is closed ErrDeploymentClosed = sdkerrors.Register(ModuleName, errDeploymentClosed, "Deployment closed") // ErrOwnerAcctMissing is the error for owner account missing ErrOwnerAcctMissing = sdkerrors.Register(ModuleName, errOwnerAcctMissing, "Owner account missing") // ErrInvalidGroups is the error when groups are empty ErrInvalidGroups = sdkerrors.Register(ModuleName, errInvalidGroups, "Invalid groups") // ErrInvalidDeploymentID is the error for invalid deployment id ErrInvalidDeploymentID = sdkerrors.Register(ModuleName, errInvalidDeploymentID, "Invalid: deployment id") // ErrEmptyVersion is the error when version is empty ErrEmptyVersion = sdkerrors.Register(ModuleName, errEmptyVersion, "Invalid: empty version") // ErrInvalidVersion is the error when version is invalid ErrInvalidVersion = sdkerrors.Register(ModuleName, errInvalidVersion, "Invalid: deployment version") // ErrInternal is the error for internal error ErrInternal = sdkerrors.Register(ModuleName, errInternal, "internal error") // ErrInvalidDeployment = is the error when deployment does not pass validation ErrInvalidDeployment = sdkerrors.Register(ModuleName, errInvalidDeployment, "Invalid deployment") // ErrInvalidGroupID is the error when already deployment exists ErrInvalidGroupID = sdkerrors.Register(ModuleName, errInvalidGroupID, "Deployment exists") // ErrGroupNotFound is the keeper's error for not finding a group ErrGroupNotFound = sdkerrors.Register(ModuleName, errGroupNotFound, "Group not found") // ErrGroupClosed is the error when deployment is closed ErrGroupClosed = sdkerrors.Register(ModuleName, errGroupClosed, "Group already closed") // ErrGroupOpen is the error when deployment is closed ErrGroupOpen = sdkerrors.Register(ModuleName, errGroupOpen, "Group open") // ErrGroupPaused is the error when deployment is closed ErrGroupPaused = sdkerrors.Register(ModuleName, errGroupPaused, "Group paused") // ErrGroupNotOpen indicates the Group state has progressed beyond initial Open. ErrGroupNotOpen = sdkerrors.Register(ModuleName, errGroupNotOpen, "Group not open") // ErrGroupSpecInvalid indicates a GroupSpec has invalid configuration ErrGroupSpecInvalid = sdkerrors.Register(ModuleName, errGroupSpec, "GroupSpec invalid") // ErrInvalidDeposit indicates an invalid deposit ErrInvalidDeposit = sdkerrors.Register(ModuleName, errInvalidDeposit, "Deposit invalid") // ErrInvalidIDPath indicates an invalid ID path ErrInvalidIDPath = sdkerrors.Register(ModuleName, errInvalidIDPath, "ID path invalid") // ErrInvalidParam indicates an invalid chain parameter ErrInvalidParam = sdkerrors.Register(ModuleName, errInvalidParam, "parameter invalid") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGroup = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGroup = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGroup = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrNoGroupsPresent = errors.New("validation: no groups present") ErrGroupEmptyName = errors.New("validation: group has empty name") )
var (
DefaultDeploymentMinDeposit = sdk.NewCoin("uakt", sdk.NewInt(5000000))
)
var Deployment_State_name = map[int32]string{
0: "invalid",
1: "active",
2: "closed",
}
var Deployment_State_value = map[string]int32{
"invalid": 0,
"active": 1,
"closed": 2,
}
var Group_State_name = map[int32]string{
0: "invalid",
1: "open",
2: "paused",
3: "insufficient_funds",
4: "closed",
}
var Group_State_value = map[string]int32{
"invalid": 0,
"open": 1,
"paused": 2,
"insufficient_funds": 3,
"closed": 4,
}
var ( // ModuleCdc references the global x/deployment module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/deployment and // defined at the application level. ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
Functions ¶
func DeploymentIDEVAttributes ¶
func DeploymentIDEVAttributes(id DeploymentID) []sdk.Attribute
DeploymentIDEVAttributes returns event attribues for given DeploymentID
func EscrowAccountForDeployment ¶ added in v0.10.0
func EscrowAccountForDeployment(id DeploymentID) etypes.AccountID
func GroupIDEVAttributes ¶
GroupIDEVAttributes returns event attribues for given GroupID
func ParamKeyTable ¶ added in v0.10.0
func ParamKeyTable() paramtypes.KeyTable
func ParseEVDeploymentVersion ¶ added in v0.7.8
ParseEVDeploymentVersion returns the Deployment's SDL sha256 sum
func ParseEvent ¶
func ParseEvent(ev sdkutil.Event) (sdkutil.ModuleEvent, error)
ParseEvent parses event and returns details of event and error if occurred
func RegisterInterfaces ¶ added in v0.9.1
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/deployment interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶ added in v0.9.1
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec register concrete types on codec
func RegisterMsgServer ¶ added in v0.9.1
func RegisterQueryHandler ¶ added in v0.9.1
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.9.1
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.9.1
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.9.1
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.9.1
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateDeploymentGroups ¶ added in v0.9.1
ValidateDeploymentGroups does validation for all deployment groups
func ValidateResourceList ¶ added in v0.9.1
func ValidateResourceList(rlist types.ResourceGroup) error
Types ¶
type Deployment ¶
type Deployment struct { DeploymentID DeploymentID `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"id" yaml:"id"` State Deployment_State `protobuf:"varint,2,opt,name=state,proto3,enum=akash.deployment.v1beta1.Deployment_State" json:"state" yaml:"state"` Version []byte `protobuf:"bytes,3,opt,name=version,proto3" json:"version" yaml:"version"` CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` }
Deployment stores deploymentID, state and version details
func (*Deployment) Descriptor ¶ added in v0.9.1
func (*Deployment) Descriptor() ([]byte, []int)
func (*Deployment) GetCreatedAt ¶ added in v0.10.0
func (m *Deployment) GetCreatedAt() int64
func (*Deployment) GetDeploymentID ¶ added in v0.9.1
func (m *Deployment) GetDeploymentID() DeploymentID
func (*Deployment) GetState ¶ added in v0.9.1
func (m *Deployment) GetState() Deployment_State
func (*Deployment) GetVersion ¶ added in v0.9.1
func (m *Deployment) GetVersion() []byte
func (Deployment) ID ¶
func (obj Deployment) ID() DeploymentID
ID method returns DeploymentID details of specific deployment
func (*Deployment) Marshal ¶ added in v0.9.1
func (m *Deployment) Marshal() (dAtA []byte, err error)
func (*Deployment) MarshalTo ¶ added in v0.9.1
func (m *Deployment) MarshalTo(dAtA []byte) (int, error)
func (*Deployment) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Deployment) ProtoMessage ¶ added in v0.9.1
func (*Deployment) ProtoMessage()
func (*Deployment) Reset ¶ added in v0.9.1
func (m *Deployment) Reset()
func (*Deployment) Size ¶ added in v0.9.1
func (m *Deployment) Size() (n int)
func (*Deployment) String ¶ added in v0.9.1
func (m *Deployment) String() string
func (*Deployment) Unmarshal ¶ added in v0.9.1
func (m *Deployment) Unmarshal(dAtA []byte) error
func (*Deployment) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Deployment) XXX_DiscardUnknown()
func (*Deployment) XXX_Marshal ¶ added in v0.9.1
func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Deployment) XXX_Merge ¶ added in v0.9.1
func (m *Deployment) XXX_Merge(src proto.Message)
func (*Deployment) XXX_Size ¶ added in v0.9.1
func (m *Deployment) XXX_Size() int
func (*Deployment) XXX_Unmarshal ¶ added in v0.9.1
func (m *Deployment) XXX_Unmarshal(b []byte) error
type DeploymentFilters ¶
type DeploymentFilters struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state" yaml:"state"` }
DeploymentFilters defines filters used to filter deployments
func (DeploymentFilters) Accept ¶ added in v0.9.1
func (filters DeploymentFilters) Accept(obj Deployment, stateVal Deployment_State) bool
Accept returns whether deployment filters valid or not
func (*DeploymentFilters) Descriptor ¶ added in v0.9.1
func (*DeploymentFilters) Descriptor() ([]byte, []int)
func (*DeploymentFilters) GetDSeq ¶ added in v0.9.1
func (m *DeploymentFilters) GetDSeq() uint64
func (*DeploymentFilters) GetOwner ¶ added in v0.9.1
func (m *DeploymentFilters) GetOwner() string
func (*DeploymentFilters) GetState ¶ added in v0.9.1
func (m *DeploymentFilters) GetState() string
func (*DeploymentFilters) Marshal ¶ added in v0.9.1
func (m *DeploymentFilters) Marshal() (dAtA []byte, err error)
func (*DeploymentFilters) MarshalTo ¶ added in v0.9.1
func (m *DeploymentFilters) MarshalTo(dAtA []byte) (int, error)
func (*DeploymentFilters) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *DeploymentFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeploymentFilters) ProtoMessage ¶ added in v0.9.1
func (*DeploymentFilters) ProtoMessage()
func (*DeploymentFilters) Reset ¶ added in v0.9.1
func (m *DeploymentFilters) Reset()
func (*DeploymentFilters) Size ¶ added in v0.9.1
func (m *DeploymentFilters) Size() (n int)
func (*DeploymentFilters) String ¶ added in v0.9.1
func (m *DeploymentFilters) String() string
func (*DeploymentFilters) Unmarshal ¶ added in v0.9.1
func (m *DeploymentFilters) Unmarshal(dAtA []byte) error
func (*DeploymentFilters) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *DeploymentFilters) XXX_DiscardUnknown()
func (*DeploymentFilters) XXX_Marshal ¶ added in v0.9.1
func (m *DeploymentFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeploymentFilters) XXX_Merge ¶ added in v0.9.1
func (m *DeploymentFilters) XXX_Merge(src proto.Message)
func (*DeploymentFilters) XXX_Size ¶ added in v0.9.1
func (m *DeploymentFilters) XXX_Size() int
func (*DeploymentFilters) XXX_Unmarshal ¶ added in v0.9.1
func (m *DeploymentFilters) XXX_Unmarshal(b []byte) error
type DeploymentID ¶
type DeploymentID struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"` }
DeploymentID stores owner and sequence number
func DeploymentIDFromEscrowAccount ¶ added in v0.10.0
func DeploymentIDFromEscrowAccount(id etypes.AccountID) (DeploymentID, bool)
func ParseDeploymentID ¶ added in v0.10.0
func ParseDeploymentID(val string) (DeploymentID, error)
func ParseDeploymentPath ¶ added in v0.10.0
func ParseDeploymentPath(parts []string) (DeploymentID, error)
ParseDeploymentPath returns DeploymentID details with provided queries, and return error if occurred due to wrong query
func ParseEVDeploymentID ¶
func ParseEVDeploymentID(attrs []sdk.Attribute) (DeploymentID, error)
ParseEVDeploymentID returns deploymentID details for given event attributes
func (*DeploymentID) Descriptor ¶ added in v0.9.1
func (*DeploymentID) Descriptor() ([]byte, []int)
func (DeploymentID) Equals ¶
func (id DeploymentID) Equals(other DeploymentID) bool
Equals method compares specific deployment with provided deployment
func (*DeploymentID) GetDSeq ¶ added in v0.9.1
func (m *DeploymentID) GetDSeq() uint64
func (*DeploymentID) GetOwner ¶ added in v0.9.1
func (m *DeploymentID) GetOwner() string
func (*DeploymentID) Marshal ¶ added in v0.9.1
func (m *DeploymentID) Marshal() (dAtA []byte, err error)
func (*DeploymentID) MarshalTo ¶ added in v0.9.1
func (m *DeploymentID) MarshalTo(dAtA []byte) (int, error)
func (*DeploymentID) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *DeploymentID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeploymentID) ProtoMessage ¶ added in v0.9.1
func (*DeploymentID) ProtoMessage()
func (*DeploymentID) Reset ¶ added in v0.9.1
func (m *DeploymentID) Reset()
func (*DeploymentID) Size ¶ added in v0.9.1
func (m *DeploymentID) Size() (n int)
func (DeploymentID) String ¶ added in v0.7.8
func (id DeploymentID) String() string
String method for deployment IDs
func (*DeploymentID) Unmarshal ¶ added in v0.9.1
func (m *DeploymentID) Unmarshal(dAtA []byte) error
func (DeploymentID) Validate ¶
func (id DeploymentID) Validate() error
Validate method for DeploymentID and returns nil
func (*DeploymentID) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *DeploymentID) XXX_DiscardUnknown()
func (*DeploymentID) XXX_Marshal ¶ added in v0.9.1
func (m *DeploymentID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeploymentID) XXX_Merge ¶ added in v0.9.1
func (m *DeploymentID) XXX_Merge(src proto.Message)
func (*DeploymentID) XXX_Size ¶ added in v0.9.1
func (m *DeploymentID) XXX_Size() int
func (*DeploymentID) XXX_Unmarshal ¶ added in v0.9.1
func (m *DeploymentID) XXX_Unmarshal(b []byte) error
type DeploymentResponses ¶ added in v0.9.1
type DeploymentResponses []QueryDeploymentResponse
DeploymentResponses is a collection of DeploymentResponse
func (DeploymentResponses) String ¶ added in v0.9.1
func (ds DeploymentResponses) String() string
type Deployment_State ¶ added in v0.9.1
type Deployment_State int32
State is an enum which refers to state of deployment
const ( // Prefix should start with 0 in enum. So declaring dummy state DeploymentStateInvalid Deployment_State = 0 // DeploymentActive denotes state for deployment active DeploymentActive Deployment_State = 1 // DeploymentClosed denotes state for deployment closed DeploymentClosed Deployment_State = 2 )
func (Deployment_State) EnumDescriptor ¶ added in v0.9.1
func (Deployment_State) EnumDescriptor() ([]byte, []int)
func (Deployment_State) String ¶ added in v0.9.1
func (x Deployment_State) String() string
type EventDeploymentClosed ¶ added in v0.7.6
type EventDeploymentClosed struct { Context sdkutil.BaseModuleEvent `json:"context"` ID DeploymentID `json:"id"` }
EventDeploymentClosed struct
func NewEventDeploymentClosed ¶ added in v0.7.6
func NewEventDeploymentClosed(id DeploymentID) EventDeploymentClosed
func (EventDeploymentClosed) ToSDKEvent ¶ added in v0.7.6
func (ev EventDeploymentClosed) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventDeploymentClosed struct
type EventDeploymentCreated ¶ added in v0.7.6
type EventDeploymentCreated struct { Context sdkutil.BaseModuleEvent `json:"context"` ID DeploymentID `json:"id"` Version []byte `json:"version"` }
EventDeploymentCreated struct
func NewEventDeploymentCreated ¶ added in v0.7.6
func NewEventDeploymentCreated(id DeploymentID, version []byte) EventDeploymentCreated
NewEventDeploymentCreated initializes creation event.
func (EventDeploymentCreated) ToSDKEvent ¶ added in v0.7.6
func (ev EventDeploymentCreated) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventDeploymentCreated struct
type EventDeploymentUpdated ¶ added in v0.7.6
type EventDeploymentUpdated struct { Context sdkutil.BaseModuleEvent `json:"context"` ID DeploymentID `json:"id"` Version []byte `json:"version"` }
EventDeploymentUpdated struct
func NewEventDeploymentUpdated ¶ added in v0.7.6
func NewEventDeploymentUpdated(id DeploymentID, version []byte) EventDeploymentUpdated
NewEventDeploymentUpdated initializes SDK type
func (EventDeploymentUpdated) ToSDKEvent ¶ added in v0.7.6
func (ev EventDeploymentUpdated) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventDeploymentUpdated struct
type EventGroupClosed ¶ added in v0.7.6
type EventGroupClosed struct { Context sdkutil.BaseModuleEvent `json:"context"` ID GroupID `json:"id"` }
EventGroupClosed provides SDK event to signal group termination
func NewEventGroupClosed ¶ added in v0.7.6
func NewEventGroupClosed(id GroupID) EventGroupClosed
func (EventGroupClosed) ToSDKEvent ¶ added in v0.7.6
func (ev EventGroupClosed) ToSDKEvent() sdk.Event
ToSDKEvent produces the SDK notification for Event
type EventGroupPaused ¶ added in v0.10.0
type EventGroupPaused struct { Context sdkutil.BaseModuleEvent `json:"context"` ID GroupID `json:"id"` }
EventGroupPaused provides SDK event to signal group termination
func NewEventGroupPaused ¶ added in v0.10.0
func NewEventGroupPaused(id GroupID) EventGroupPaused
func (EventGroupPaused) ToSDKEvent ¶ added in v0.10.0
func (ev EventGroupPaused) ToSDKEvent() sdk.Event
ToSDKEvent produces the SDK notification for Event
type EventGroupStarted ¶ added in v0.10.0
type EventGroupStarted struct { Context sdkutil.BaseModuleEvent `json:"context"` ID GroupID `json:"id"` }
EventGroupStarted provides SDK event to signal group termination
func NewEventGroupStarted ¶ added in v0.10.0
func NewEventGroupStarted(id GroupID) EventGroupStarted
func (EventGroupStarted) ToSDKEvent ¶ added in v0.10.0
func (ev EventGroupStarted) ToSDKEvent() sdk.Event
ToSDKEvent produces the SDK notification for Event
type GenesisDeployment ¶ added in v0.9.1
type GenesisDeployment struct { Deployment Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment" yaml:"deployment"` Groups []Group `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups" yaml:"groups"` }
GenesisDeployment defines the basic genesis state used by deployment module
func (*GenesisDeployment) Descriptor ¶ added in v0.9.1
func (*GenesisDeployment) Descriptor() ([]byte, []int)
func (*GenesisDeployment) GetDeployment ¶ added in v0.9.1
func (m *GenesisDeployment) GetDeployment() Deployment
func (*GenesisDeployment) GetGroups ¶ added in v0.9.1
func (m *GenesisDeployment) GetGroups() []Group
func (*GenesisDeployment) Marshal ¶ added in v0.9.1
func (m *GenesisDeployment) Marshal() (dAtA []byte, err error)
func (*GenesisDeployment) MarshalTo ¶ added in v0.9.1
func (m *GenesisDeployment) MarshalTo(dAtA []byte) (int, error)
func (*GenesisDeployment) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *GenesisDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisDeployment) ProtoMessage ¶ added in v0.9.1
func (*GenesisDeployment) ProtoMessage()
func (*GenesisDeployment) Reset ¶ added in v0.9.1
func (m *GenesisDeployment) Reset()
func (*GenesisDeployment) Size ¶ added in v0.9.1
func (m *GenesisDeployment) Size() (n int)
func (*GenesisDeployment) String ¶ added in v0.9.1
func (m *GenesisDeployment) String() string
func (*GenesisDeployment) Unmarshal ¶ added in v0.9.1
func (m *GenesisDeployment) Unmarshal(dAtA []byte) error
func (*GenesisDeployment) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *GenesisDeployment) XXX_DiscardUnknown()
func (*GenesisDeployment) XXX_Marshal ¶ added in v0.9.1
func (m *GenesisDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisDeployment) XXX_Merge ¶ added in v0.9.1
func (m *GenesisDeployment) XXX_Merge(src proto.Message)
func (*GenesisDeployment) XXX_Size ¶ added in v0.9.1
func (m *GenesisDeployment) XXX_Size() int
func (*GenesisDeployment) XXX_Unmarshal ¶ added in v0.9.1
func (m *GenesisDeployment) XXX_Unmarshal(b []byte) error
type GenesisState ¶ added in v0.9.1
type GenesisState struct { Deployments []GenesisDeployment `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments" yaml:"deployments"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params" yaml:"params"` }
GenesisState stores slice of genesis deployment instance
func (*GenesisState) Descriptor ¶ added in v0.9.1
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDeployments ¶ added in v0.9.1
func (m *GenesisState) GetDeployments() []GenesisDeployment
func (*GenesisState) GetParams ¶ added in v0.10.0
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶ added in v0.9.1
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.9.1
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.9.1
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.9.1
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.9.1
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.9.1
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.9.1
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.9.1
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.9.1
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.9.1
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.9.1
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Group ¶
type Group struct { GroupID GroupID `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"id" yaml:"id"` State Group_State `protobuf:"varint,2,opt,name=state,proto3,enum=akash.deployment.v1beta1.Group_State" json:"state" yaml:"state"` GroupSpec GroupSpec `protobuf:"bytes,3,opt,name=group_spec,json=groupSpec,proto3" json:"spec" yaml:"spec"` CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` }
Group stores group id, state and specifications of group
func (*Group) Descriptor ¶ added in v0.9.1
func (*Group) GetCreatedAt ¶ added in v0.10.0
func (*Group) GetGroupID ¶ added in v0.9.1
func (*Group) GetGroupSpec ¶ added in v0.9.1
func (Group) GetResources ¶ added in v0.9.1
GetResources method returns resources list in group
func (*Group) GetState ¶ added in v0.9.1
func (m *Group) GetState() Group_State
func (*Group) MarshalToSizedBuffer ¶ added in v0.9.1
func (*Group) ProtoMessage ¶ added in v0.9.1
func (*Group) ProtoMessage()
func (Group) ValidateClosable ¶ added in v0.7.5
ValidateClosable provides error response if group is already closed, and thus should not be closed again, else nil.
func (Group) ValidatePausable ¶ added in v0.10.0
ValidatePausable provides error response if group is not pausable
func (Group) ValidateStartable ¶ added in v0.10.0
ValidatePausable provides error response if group is not pausable
func (*Group) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Group) XXX_DiscardUnknown()
func (*Group) XXX_Marshal ¶ added in v0.9.1
func (*Group) XXX_Unmarshal ¶ added in v0.9.1
type GroupID ¶
type GroupID struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"` GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"` }
GroupID stores owner, deployment sequence number and group sequence number
func MakeGroupID ¶
func MakeGroupID(id DeploymentID, gseq uint32) GroupID
MakeGroupID returns GroupID instance with provided deployment details and group sequence number.
func ParseEVGroupID ¶
ParseEVGroupID returns GroupID details for given event attributes
func (GroupID) DeploymentID ¶
func (id GroupID) DeploymentID() DeploymentID
DeploymentID method returns DeploymentID details with specific group details
func (*GroupID) Descriptor ¶ added in v0.9.1
func (*GroupID) MarshalToSizedBuffer ¶ added in v0.9.1
func (*GroupID) ProtoMessage ¶ added in v0.9.1
func (*GroupID) ProtoMessage()
func (GroupID) String ¶ added in v0.7.8
String method provides human readable representation of GroupID.
func (*GroupID) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *GroupID) XXX_DiscardUnknown()
func (*GroupID) XXX_Marshal ¶ added in v0.9.1
func (*GroupID) XXX_Unmarshal ¶ added in v0.9.1
type GroupSpec ¶
type GroupSpec struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"` Requirements types.PlacementRequirements `protobuf:"bytes,2,opt,name=requirements,proto3" json:"requirements" yaml:"requirements"` Resources []Resource `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources" yaml:"resources"` }
GroupSpec stores group specifications
func (*GroupSpec) Descriptor ¶ added in v0.9.1
func (GroupSpec) GetResources ¶
GetResources method returns resources list in group
func (*GroupSpec) MarshalToSizedBuffer ¶ added in v0.9.1
func (GroupSpec) MatchAttributes ¶
func (g GroupSpec) MatchAttributes(attr types.Attributes) bool
MatchAttributes method compares provided attributes with specific group attributes
func (GroupSpec) MatchRequirements ¶ added in v0.9.1
MatchRequirements method compares provided attributes with specific group attributes. Argument provider is a bit cumbersome. First element is attributes from x/provider store in case tenant does not need signed attributes at all rest of elements (if any) are attributes signed by various auditors
func (*GroupSpec) ProtoMessage ¶ added in v0.9.1
func (*GroupSpec) ProtoMessage()
func (GroupSpec) ValidateBasic ¶ added in v0.7.8
ValidateBasic asserts non-zero values TODO: This is causing an import cycle. I think there is some pattern here I'm missing tho..
func (*GroupSpec) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *GroupSpec) XXX_DiscardUnknown()
func (*GroupSpec) XXX_Marshal ¶ added in v0.9.1
func (*GroupSpec) XXX_Unmarshal ¶ added in v0.9.1
type Group_State ¶ added in v0.9.1
type Group_State int32
State is an enum which refers to state of group
const ( // Prefix should start with 0 in enum. So declaring dummy state GroupStateInvalid Group_State = 0 // GroupOpen denotes state for group open GroupOpen Group_State = 1 // GroupOrdered denotes state for group ordered GroupPaused Group_State = 2 // GroupInsufficientFunds denotes state for group insufficient_funds GroupInsufficientFunds Group_State = 3 // GroupClosed denotes state for group closed GroupClosed Group_State = 4 )
func (Group_State) EnumDescriptor ¶ added in v0.9.1
func (Group_State) EnumDescriptor() ([]byte, []int)
func (Group_State) String ¶ added in v0.9.1
func (x Group_State) String() string
type MsgClient ¶ added in v0.9.1
type MsgClient interface { // CreateDeployment defines a method to create new deployment given proper inputs. CreateDeployment(ctx context.Context, in *MsgCreateDeployment, opts ...grpc.CallOption) (*MsgCreateDeploymentResponse, error) // DepositDeployment deposits more funds into the deployment account DepositDeployment(ctx context.Context, in *MsgDepositDeployment, opts ...grpc.CallOption) (*MsgDepositDeploymentResponse, error) // UpdateDeployment defines a method to update a deployment given proper inputs. UpdateDeployment(ctx context.Context, in *MsgUpdateDeployment, opts ...grpc.CallOption) (*MsgUpdateDeploymentResponse, error) // CloseDeployment defines a method to close a deployment given proper inputs. CloseDeployment(ctx context.Context, in *MsgCloseDeployment, opts ...grpc.CallOption) (*MsgCloseDeploymentResponse, error) // CloseGroup defines a method to close a group of a deployment given proper inputs. CloseGroup(ctx context.Context, in *MsgCloseGroup, opts ...grpc.CallOption) (*MsgCloseGroupResponse, error) // PauseGroup defines a method to close a group of a deployment given proper inputs. PauseGroup(ctx context.Context, in *MsgPauseGroup, opts ...grpc.CallOption) (*MsgPauseGroupResponse, error) // StartGroup defines a method to close a group of a deployment given proper inputs. StartGroup(ctx context.Context, in *MsgStartGroup, opts ...grpc.CallOption) (*MsgStartGroupResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶ added in v0.9.1
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCloseDeployment ¶ added in v0.6.5
type MsgCloseDeployment struct {
ID DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}
MsgCloseDeployment defines an SDK message for closing deployment
func NewMsgCloseDeployment ¶ added in v0.9.1
func NewMsgCloseDeployment(id DeploymentID) *MsgCloseDeployment
NewMsgCloseDeployment creates a new MsgCloseDeployment instance
func (*MsgCloseDeployment) Descriptor ¶ added in v0.9.1
func (*MsgCloseDeployment) Descriptor() ([]byte, []int)
func (*MsgCloseDeployment) GetID ¶ added in v0.9.1
func (m *MsgCloseDeployment) GetID() DeploymentID
func (MsgCloseDeployment) GetSignBytes ¶ added in v0.6.5
func (msg MsgCloseDeployment) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCloseDeployment) GetSigners ¶ added in v0.6.5
func (msg MsgCloseDeployment) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgCloseDeployment) Marshal ¶ added in v0.9.1
func (m *MsgCloseDeployment) Marshal() (dAtA []byte, err error)
func (*MsgCloseDeployment) MarshalTo ¶ added in v0.9.1
func (m *MsgCloseDeployment) MarshalTo(dAtA []byte) (int, error)
func (*MsgCloseDeployment) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCloseDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseDeployment) ProtoMessage ¶ added in v0.9.1
func (*MsgCloseDeployment) ProtoMessage()
func (*MsgCloseDeployment) Reset ¶ added in v0.9.1
func (m *MsgCloseDeployment) Reset()
func (MsgCloseDeployment) Route ¶ added in v0.6.5
func (msg MsgCloseDeployment) Route() string
Route implements the sdk.Msg interface
func (*MsgCloseDeployment) Size ¶ added in v0.9.1
func (m *MsgCloseDeployment) Size() (n int)
func (*MsgCloseDeployment) String ¶ added in v0.9.1
func (m *MsgCloseDeployment) String() string
func (MsgCloseDeployment) Type ¶ added in v0.6.5
func (msg MsgCloseDeployment) Type() string
Type implements the sdk.Msg interface
func (*MsgCloseDeployment) Unmarshal ¶ added in v0.9.1
func (m *MsgCloseDeployment) Unmarshal(dAtA []byte) error
func (MsgCloseDeployment) ValidateBasic ¶ added in v0.6.5
func (msg MsgCloseDeployment) ValidateBasic() error
ValidateBasic does basic validation with deployment details
func (*MsgCloseDeployment) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCloseDeployment) XXX_DiscardUnknown()
func (*MsgCloseDeployment) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCloseDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseDeployment) XXX_Merge ¶ added in v0.9.1
func (m *MsgCloseDeployment) XXX_Merge(src proto.Message)
func (*MsgCloseDeployment) XXX_Size ¶ added in v0.9.1
func (m *MsgCloseDeployment) XXX_Size() int
func (*MsgCloseDeployment) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCloseDeployment) XXX_Unmarshal(b []byte) error
type MsgCloseDeploymentResponse ¶ added in v0.9.1
type MsgCloseDeploymentResponse struct { }
MsgCloseDeploymentResponse defines the Msg/CloseDeployment response type.
func (*MsgCloseDeploymentResponse) Descriptor ¶ added in v0.9.1
func (*MsgCloseDeploymentResponse) Descriptor() ([]byte, []int)
func (*MsgCloseDeploymentResponse) Marshal ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) Marshal() (dAtA []byte, err error)
func (*MsgCloseDeploymentResponse) MarshalTo ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCloseDeploymentResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseDeploymentResponse) ProtoMessage ¶ added in v0.9.1
func (*MsgCloseDeploymentResponse) ProtoMessage()
func (*MsgCloseDeploymentResponse) Reset ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) Reset()
func (*MsgCloseDeploymentResponse) Size ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) Size() (n int)
func (*MsgCloseDeploymentResponse) String ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) String() string
func (*MsgCloseDeploymentResponse) Unmarshal ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) Unmarshal(dAtA []byte) error
func (*MsgCloseDeploymentResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) XXX_DiscardUnknown()
func (*MsgCloseDeploymentResponse) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseDeploymentResponse) XXX_Merge ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) XXX_Merge(src proto.Message)
func (*MsgCloseDeploymentResponse) XXX_Size ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) XXX_Size() int
func (*MsgCloseDeploymentResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCloseDeploymentResponse) XXX_Unmarshal(b []byte) error
type MsgCloseGroup ¶ added in v0.7.5
type MsgCloseGroup struct {
ID GroupID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}
MsgCloseGroup defines SDK message to close a single Group within a Deployment.
func NewMsgCloseGroup ¶ added in v0.9.1
func NewMsgCloseGroup(id GroupID) *MsgCloseGroup
NewMsgCloseGroup creates a new MsgCloseGroup instance
func (*MsgCloseGroup) Descriptor ¶ added in v0.9.1
func (*MsgCloseGroup) Descriptor() ([]byte, []int)
func (*MsgCloseGroup) GetID ¶ added in v0.9.1
func (m *MsgCloseGroup) GetID() GroupID
func (MsgCloseGroup) GetSignBytes ¶ added in v0.7.5
func (msg MsgCloseGroup) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCloseGroup) GetSigners ¶ added in v0.7.5
func (msg MsgCloseGroup) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgCloseGroup) Marshal ¶ added in v0.9.1
func (m *MsgCloseGroup) Marshal() (dAtA []byte, err error)
func (*MsgCloseGroup) MarshalTo ¶ added in v0.9.1
func (m *MsgCloseGroup) MarshalTo(dAtA []byte) (int, error)
func (*MsgCloseGroup) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCloseGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseGroup) ProtoMessage ¶ added in v0.9.1
func (*MsgCloseGroup) ProtoMessage()
func (*MsgCloseGroup) Reset ¶ added in v0.9.1
func (m *MsgCloseGroup) Reset()
func (MsgCloseGroup) Route ¶ added in v0.7.5
func (msg MsgCloseGroup) Route() string
Route implements the sdk.Msg interface for routing
func (*MsgCloseGroup) Size ¶ added in v0.9.1
func (m *MsgCloseGroup) Size() (n int)
func (*MsgCloseGroup) String ¶ added in v0.9.1
func (m *MsgCloseGroup) String() string
func (MsgCloseGroup) Type ¶ added in v0.7.5
func (msg MsgCloseGroup) Type() string
Type implements the sdk.Msg interface exposing message type
func (*MsgCloseGroup) Unmarshal ¶ added in v0.9.1
func (m *MsgCloseGroup) Unmarshal(dAtA []byte) error
func (MsgCloseGroup) ValidateBasic ¶ added in v0.7.5
func (msg MsgCloseGroup) ValidateBasic() error
ValidateBasic calls underlying GroupID.Validate() check and returns result
func (*MsgCloseGroup) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCloseGroup) XXX_DiscardUnknown()
func (*MsgCloseGroup) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCloseGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseGroup) XXX_Merge ¶ added in v0.9.1
func (m *MsgCloseGroup) XXX_Merge(src proto.Message)
func (*MsgCloseGroup) XXX_Size ¶ added in v0.9.1
func (m *MsgCloseGroup) XXX_Size() int
func (*MsgCloseGroup) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCloseGroup) XXX_Unmarshal(b []byte) error
type MsgCloseGroupResponse ¶ added in v0.9.1
type MsgCloseGroupResponse struct { }
MsgCloseGroupResponse defines the Msg/CloseGroup response type.
func (*MsgCloseGroupResponse) Descriptor ¶ added in v0.9.1
func (*MsgCloseGroupResponse) Descriptor() ([]byte, []int)
func (*MsgCloseGroupResponse) Marshal ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) Marshal() (dAtA []byte, err error)
func (*MsgCloseGroupResponse) MarshalTo ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCloseGroupResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseGroupResponse) ProtoMessage ¶ added in v0.9.1
func (*MsgCloseGroupResponse) ProtoMessage()
func (*MsgCloseGroupResponse) Reset ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) Reset()
func (*MsgCloseGroupResponse) Size ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) Size() (n int)
func (*MsgCloseGroupResponse) String ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) String() string
func (*MsgCloseGroupResponse) Unmarshal ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) Unmarshal(dAtA []byte) error
func (*MsgCloseGroupResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) XXX_DiscardUnknown()
func (*MsgCloseGroupResponse) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseGroupResponse) XXX_Merge ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) XXX_Merge(src proto.Message)
func (*MsgCloseGroupResponse) XXX_Size ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) XXX_Size() int
func (*MsgCloseGroupResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCloseGroupResponse) XXX_Unmarshal(b []byte) error
type MsgCreateDeployment ¶ added in v0.6.5
type MsgCreateDeployment struct { ID DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"` Groups []GroupSpec `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups" yaml:"groups"` Version []byte `protobuf:"bytes,3,opt,name=version,proto3" json:"version" yaml:"version"` Deposit types.Coin `protobuf:"bytes,4,opt,name=deposit,proto3" json:"deposit" yaml:"deposit"` }
MsgCreateDeployment defines an SDK message for creating deployment
func NewMsgCreateDeployment ¶ added in v0.9.1
func NewMsgCreateDeployment(id DeploymentID, groups []GroupSpec, version []byte, deposit sdk.Coin) *MsgCreateDeployment
NewMsgCreateDeployment creates a new MsgCreateDeployment instance
func (*MsgCreateDeployment) Descriptor ¶ added in v0.9.1
func (*MsgCreateDeployment) Descriptor() ([]byte, []int)
func (*MsgCreateDeployment) GetDeposit ¶ added in v0.10.0
func (m *MsgCreateDeployment) GetDeposit() types.Coin
func (*MsgCreateDeployment) GetGroups ¶ added in v0.9.1
func (m *MsgCreateDeployment) GetGroups() []GroupSpec
func (*MsgCreateDeployment) GetID ¶ added in v0.9.1
func (m *MsgCreateDeployment) GetID() DeploymentID
func (MsgCreateDeployment) GetSignBytes ¶ added in v0.6.5
func (msg MsgCreateDeployment) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCreateDeployment) GetSigners ¶ added in v0.6.5
func (msg MsgCreateDeployment) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgCreateDeployment) GetVersion ¶ added in v0.9.1
func (m *MsgCreateDeployment) GetVersion() []byte
func (*MsgCreateDeployment) Marshal ¶ added in v0.9.1
func (m *MsgCreateDeployment) Marshal() (dAtA []byte, err error)
func (*MsgCreateDeployment) MarshalTo ¶ added in v0.9.1
func (m *MsgCreateDeployment) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateDeployment) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCreateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDeployment) ProtoMessage ¶ added in v0.9.1
func (*MsgCreateDeployment) ProtoMessage()
func (*MsgCreateDeployment) Reset ¶ added in v0.9.1
func (m *MsgCreateDeployment) Reset()
func (MsgCreateDeployment) Route ¶ added in v0.6.5
func (msg MsgCreateDeployment) Route() string
Route implements the sdk.Msg interface
func (*MsgCreateDeployment) Size ¶ added in v0.9.1
func (m *MsgCreateDeployment) Size() (n int)
func (*MsgCreateDeployment) String ¶ added in v0.9.1
func (m *MsgCreateDeployment) String() string
func (MsgCreateDeployment) Type ¶ added in v0.6.5
func (msg MsgCreateDeployment) Type() string
Type implements the sdk.Msg interface
func (*MsgCreateDeployment) Unmarshal ¶ added in v0.9.1
func (m *MsgCreateDeployment) Unmarshal(dAtA []byte) error
func (MsgCreateDeployment) ValidateBasic ¶ added in v0.6.5
func (msg MsgCreateDeployment) ValidateBasic() error
ValidateBasic does basic validation like check owner and groups length
func (*MsgCreateDeployment) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCreateDeployment) XXX_DiscardUnknown()
func (*MsgCreateDeployment) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCreateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDeployment) XXX_Merge ¶ added in v0.9.1
func (m *MsgCreateDeployment) XXX_Merge(src proto.Message)
func (*MsgCreateDeployment) XXX_Size ¶ added in v0.9.1
func (m *MsgCreateDeployment) XXX_Size() int
func (*MsgCreateDeployment) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCreateDeployment) XXX_Unmarshal(b []byte) error
type MsgCreateDeploymentResponse ¶ added in v0.9.1
type MsgCreateDeploymentResponse struct { }
MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type.
func (*MsgCreateDeploymentResponse) Descriptor ¶ added in v0.9.1
func (*MsgCreateDeploymentResponse) Descriptor() ([]byte, []int)
func (*MsgCreateDeploymentResponse) Marshal ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateDeploymentResponse) MarshalTo ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateDeploymentResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDeploymentResponse) ProtoMessage ¶ added in v0.9.1
func (*MsgCreateDeploymentResponse) ProtoMessage()
func (*MsgCreateDeploymentResponse) Reset ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) Reset()
func (*MsgCreateDeploymentResponse) Size ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) Size() (n int)
func (*MsgCreateDeploymentResponse) String ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) String() string
func (*MsgCreateDeploymentResponse) Unmarshal ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateDeploymentResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) XXX_DiscardUnknown()
func (*MsgCreateDeploymentResponse) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDeploymentResponse) XXX_Merge ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) XXX_Merge(src proto.Message)
func (*MsgCreateDeploymentResponse) XXX_Size ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) XXX_Size() int
func (*MsgCreateDeploymentResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCreateDeploymentResponse) XXX_Unmarshal(b []byte) error
type MsgDepositDeployment ¶ added in v0.10.0
type MsgDepositDeployment struct { ID DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"` }
MsgDepositDeployment deposits more funds into the deposit account
func NewMsgDepositDeployment ¶ added in v0.10.0
func NewMsgDepositDeployment(id DeploymentID, amount sdk.Coin) *MsgDepositDeployment
NewMsgDepositDeployment creates a new MsgDepositDeployment instance
func (*MsgDepositDeployment) Descriptor ¶ added in v0.10.0
func (*MsgDepositDeployment) Descriptor() ([]byte, []int)
func (*MsgDepositDeployment) GetAmount ¶ added in v0.10.0
func (m *MsgDepositDeployment) GetAmount() types.Coin
func (*MsgDepositDeployment) GetID ¶ added in v0.10.0
func (m *MsgDepositDeployment) GetID() DeploymentID
func (MsgDepositDeployment) GetSignBytes ¶ added in v0.10.0
func (msg MsgDepositDeployment) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgDepositDeployment) GetSigners ¶ added in v0.10.0
func (msg MsgDepositDeployment) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgDepositDeployment) Marshal ¶ added in v0.10.0
func (m *MsgDepositDeployment) Marshal() (dAtA []byte, err error)
func (*MsgDepositDeployment) MarshalTo ¶ added in v0.10.0
func (m *MsgDepositDeployment) MarshalTo(dAtA []byte) (int, error)
func (*MsgDepositDeployment) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgDepositDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositDeployment) ProtoMessage ¶ added in v0.10.0
func (*MsgDepositDeployment) ProtoMessage()
func (*MsgDepositDeployment) Reset ¶ added in v0.10.0
func (m *MsgDepositDeployment) Reset()
func (MsgDepositDeployment) Route ¶ added in v0.10.0
func (msg MsgDepositDeployment) Route() string
Route implements the sdk.Msg interface
func (*MsgDepositDeployment) Size ¶ added in v0.10.0
func (m *MsgDepositDeployment) Size() (n int)
func (*MsgDepositDeployment) String ¶ added in v0.10.0
func (m *MsgDepositDeployment) String() string
func (MsgDepositDeployment) Type ¶ added in v0.10.0
func (msg MsgDepositDeployment) Type() string
Type implements the sdk.Msg interface
func (*MsgDepositDeployment) Unmarshal ¶ added in v0.10.0
func (m *MsgDepositDeployment) Unmarshal(dAtA []byte) error
func (MsgDepositDeployment) ValidateBasic ¶ added in v0.10.0
func (msg MsgDepositDeployment) ValidateBasic() error
ValidateBasic does basic validation like check owner and groups length
func (*MsgDepositDeployment) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgDepositDeployment) XXX_DiscardUnknown()
func (*MsgDepositDeployment) XXX_Marshal ¶ added in v0.10.0
func (m *MsgDepositDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositDeployment) XXX_Merge ¶ added in v0.10.0
func (m *MsgDepositDeployment) XXX_Merge(src proto.Message)
func (*MsgDepositDeployment) XXX_Size ¶ added in v0.10.0
func (m *MsgDepositDeployment) XXX_Size() int
func (*MsgDepositDeployment) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgDepositDeployment) XXX_Unmarshal(b []byte) error
type MsgDepositDeploymentResponse ¶ added in v0.10.0
type MsgDepositDeploymentResponse struct { }
MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type.
func (*MsgDepositDeploymentResponse) Descriptor ¶ added in v0.10.0
func (*MsgDepositDeploymentResponse) Descriptor() ([]byte, []int)
func (*MsgDepositDeploymentResponse) Marshal ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) Marshal() (dAtA []byte, err error)
func (*MsgDepositDeploymentResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDepositDeploymentResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositDeploymentResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgDepositDeploymentResponse) ProtoMessage()
func (*MsgDepositDeploymentResponse) Reset ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) Reset()
func (*MsgDepositDeploymentResponse) Size ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) Size() (n int)
func (*MsgDepositDeploymentResponse) String ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) String() string
func (*MsgDepositDeploymentResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) Unmarshal(dAtA []byte) error
func (*MsgDepositDeploymentResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) XXX_DiscardUnknown()
func (*MsgDepositDeploymentResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositDeploymentResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) XXX_Merge(src proto.Message)
func (*MsgDepositDeploymentResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) XXX_Size() int
func (*MsgDepositDeploymentResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgDepositDeploymentResponse) XXX_Unmarshal(b []byte) error
type MsgPauseGroup ¶ added in v0.10.0
type MsgPauseGroup struct {
ID GroupID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}
MsgPauseGroup defines SDK message to close a single Group within a Deployment.
func NewMsgPauseGroup ¶ added in v0.10.0
func NewMsgPauseGroup(id GroupID) *MsgPauseGroup
NewMsgPauseGroup creates a new MsgPauseGroup instance
func (*MsgPauseGroup) Descriptor ¶ added in v0.10.0
func (*MsgPauseGroup) Descriptor() ([]byte, []int)
func (*MsgPauseGroup) GetID ¶ added in v0.10.0
func (m *MsgPauseGroup) GetID() GroupID
func (MsgPauseGroup) GetSignBytes ¶ added in v0.10.0
func (msg MsgPauseGroup) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgPauseGroup) GetSigners ¶ added in v0.10.0
func (msg MsgPauseGroup) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgPauseGroup) Marshal ¶ added in v0.10.0
func (m *MsgPauseGroup) Marshal() (dAtA []byte, err error)
func (*MsgPauseGroup) MarshalTo ¶ added in v0.10.0
func (m *MsgPauseGroup) MarshalTo(dAtA []byte) (int, error)
func (*MsgPauseGroup) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgPauseGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPauseGroup) ProtoMessage ¶ added in v0.10.0
func (*MsgPauseGroup) ProtoMessage()
func (*MsgPauseGroup) Reset ¶ added in v0.10.0
func (m *MsgPauseGroup) Reset()
func (MsgPauseGroup) Route ¶ added in v0.10.0
func (msg MsgPauseGroup) Route() string
Route implements the sdk.Msg interface for routing
func (*MsgPauseGroup) Size ¶ added in v0.10.0
func (m *MsgPauseGroup) Size() (n int)
func (*MsgPauseGroup) String ¶ added in v0.10.0
func (m *MsgPauseGroup) String() string
func (MsgPauseGroup) Type ¶ added in v0.10.0
func (msg MsgPauseGroup) Type() string
Type implements the sdk.Msg interface exposing message type
func (*MsgPauseGroup) Unmarshal ¶ added in v0.10.0
func (m *MsgPauseGroup) Unmarshal(dAtA []byte) error
func (MsgPauseGroup) ValidateBasic ¶ added in v0.10.0
func (msg MsgPauseGroup) ValidateBasic() error
ValidateBasic calls underlying GroupID.Validate() check and returns result
func (*MsgPauseGroup) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgPauseGroup) XXX_DiscardUnknown()
func (*MsgPauseGroup) XXX_Marshal ¶ added in v0.10.0
func (m *MsgPauseGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPauseGroup) XXX_Merge ¶ added in v0.10.0
func (m *MsgPauseGroup) XXX_Merge(src proto.Message)
func (*MsgPauseGroup) XXX_Size ¶ added in v0.10.0
func (m *MsgPauseGroup) XXX_Size() int
func (*MsgPauseGroup) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgPauseGroup) XXX_Unmarshal(b []byte) error
type MsgPauseGroupResponse ¶ added in v0.10.0
type MsgPauseGroupResponse struct { }
MsgPauseGroupResponse defines the Msg/PauseGroup response type.
func (*MsgPauseGroupResponse) Descriptor ¶ added in v0.10.0
func (*MsgPauseGroupResponse) Descriptor() ([]byte, []int)
func (*MsgPauseGroupResponse) Marshal ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) Marshal() (dAtA []byte, err error)
func (*MsgPauseGroupResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPauseGroupResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPauseGroupResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgPauseGroupResponse) ProtoMessage()
func (*MsgPauseGroupResponse) Reset ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) Reset()
func (*MsgPauseGroupResponse) Size ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) Size() (n int)
func (*MsgPauseGroupResponse) String ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) String() string
func (*MsgPauseGroupResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) Unmarshal(dAtA []byte) error
func (*MsgPauseGroupResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) XXX_DiscardUnknown()
func (*MsgPauseGroupResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPauseGroupResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) XXX_Merge(src proto.Message)
func (*MsgPauseGroupResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) XXX_Size() int
func (*MsgPauseGroupResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgPauseGroupResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v0.9.1
type MsgServer interface { // CreateDeployment defines a method to create new deployment given proper inputs. CreateDeployment(context.Context, *MsgCreateDeployment) (*MsgCreateDeploymentResponse, error) // DepositDeployment deposits more funds into the deployment account DepositDeployment(context.Context, *MsgDepositDeployment) (*MsgDepositDeploymentResponse, error) // UpdateDeployment defines a method to update a deployment given proper inputs. UpdateDeployment(context.Context, *MsgUpdateDeployment) (*MsgUpdateDeploymentResponse, error) // CloseDeployment defines a method to close a deployment given proper inputs. CloseDeployment(context.Context, *MsgCloseDeployment) (*MsgCloseDeploymentResponse, error) // CloseGroup defines a method to close a group of a deployment given proper inputs. CloseGroup(context.Context, *MsgCloseGroup) (*MsgCloseGroupResponse, error) // PauseGroup defines a method to close a group of a deployment given proper inputs. PauseGroup(context.Context, *MsgPauseGroup) (*MsgPauseGroupResponse, error) // StartGroup defines a method to close a group of a deployment given proper inputs. StartGroup(context.Context, *MsgStartGroup) (*MsgStartGroupResponse, error) }
MsgServer is the server API for Msg service.
type MsgStartGroup ¶ added in v0.10.0
type MsgStartGroup struct {
ID GroupID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}
MsgStartGroup defines SDK message to close a single Group within a Deployment.
func NewMsgStartGroup ¶ added in v0.10.0
func NewMsgStartGroup(id GroupID) *MsgStartGroup
NewMsgStartGroup creates a new MsgStartGroup instance
func (*MsgStartGroup) Descriptor ¶ added in v0.10.0
func (*MsgStartGroup) Descriptor() ([]byte, []int)
func (*MsgStartGroup) GetID ¶ added in v0.10.0
func (m *MsgStartGroup) GetID() GroupID
func (MsgStartGroup) GetSignBytes ¶ added in v0.10.0
func (msg MsgStartGroup) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgStartGroup) GetSigners ¶ added in v0.10.0
func (msg MsgStartGroup) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgStartGroup) Marshal ¶ added in v0.10.0
func (m *MsgStartGroup) Marshal() (dAtA []byte, err error)
func (*MsgStartGroup) MarshalTo ¶ added in v0.10.0
func (m *MsgStartGroup) MarshalTo(dAtA []byte) (int, error)
func (*MsgStartGroup) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgStartGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStartGroup) ProtoMessage ¶ added in v0.10.0
func (*MsgStartGroup) ProtoMessage()
func (*MsgStartGroup) Reset ¶ added in v0.10.0
func (m *MsgStartGroup) Reset()
func (MsgStartGroup) Route ¶ added in v0.10.0
func (msg MsgStartGroup) Route() string
Route implements the sdk.Msg interface for routing
func (*MsgStartGroup) Size ¶ added in v0.10.0
func (m *MsgStartGroup) Size() (n int)
func (*MsgStartGroup) String ¶ added in v0.10.0
func (m *MsgStartGroup) String() string
func (MsgStartGroup) Type ¶ added in v0.10.0
func (msg MsgStartGroup) Type() string
Type implements the sdk.Msg interface exposing message type
func (*MsgStartGroup) Unmarshal ¶ added in v0.10.0
func (m *MsgStartGroup) Unmarshal(dAtA []byte) error
func (MsgStartGroup) ValidateBasic ¶ added in v0.10.0
func (msg MsgStartGroup) ValidateBasic() error
ValidateBasic calls underlying GroupID.Validate() check and returns result
func (*MsgStartGroup) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgStartGroup) XXX_DiscardUnknown()
func (*MsgStartGroup) XXX_Marshal ¶ added in v0.10.0
func (m *MsgStartGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStartGroup) XXX_Merge ¶ added in v0.10.0
func (m *MsgStartGroup) XXX_Merge(src proto.Message)
func (*MsgStartGroup) XXX_Size ¶ added in v0.10.0
func (m *MsgStartGroup) XXX_Size() int
func (*MsgStartGroup) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgStartGroup) XXX_Unmarshal(b []byte) error
type MsgStartGroupResponse ¶ added in v0.10.0
type MsgStartGroupResponse struct { }
MsgStartGroupResponse defines the Msg/StartGroup response type.
func (*MsgStartGroupResponse) Descriptor ¶ added in v0.10.0
func (*MsgStartGroupResponse) Descriptor() ([]byte, []int)
func (*MsgStartGroupResponse) Marshal ¶ added in v0.10.0
func (m *MsgStartGroupResponse) Marshal() (dAtA []byte, err error)
func (*MsgStartGroupResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgStartGroupResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgStartGroupResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgStartGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStartGroupResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgStartGroupResponse) ProtoMessage()
func (*MsgStartGroupResponse) Reset ¶ added in v0.10.0
func (m *MsgStartGroupResponse) Reset()
func (*MsgStartGroupResponse) Size ¶ added in v0.10.0
func (m *MsgStartGroupResponse) Size() (n int)
func (*MsgStartGroupResponse) String ¶ added in v0.10.0
func (m *MsgStartGroupResponse) String() string
func (*MsgStartGroupResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgStartGroupResponse) Unmarshal(dAtA []byte) error
func (*MsgStartGroupResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgStartGroupResponse) XXX_DiscardUnknown()
func (*MsgStartGroupResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgStartGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStartGroupResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgStartGroupResponse) XXX_Merge(src proto.Message)
func (*MsgStartGroupResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgStartGroupResponse) XXX_Size() int
func (*MsgStartGroupResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgStartGroupResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateDeployment ¶ added in v0.6.5
type MsgUpdateDeployment struct { ID DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"` Groups []GroupSpec `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups" yaml:"groups"` Version []byte `protobuf:"bytes,3,opt,name=version,proto3" json:"version" yaml:"version"` }
MsgUpdateDeployment defines an SDK message for updating deployment
func NewMsgUpdateDeployment ¶ added in v0.9.1
func NewMsgUpdateDeployment(id DeploymentID, groups []GroupSpec, version []byte) *MsgUpdateDeployment
NewMsgUpdateDeployment creates a new MsgUpdateDeployment instance
func (*MsgUpdateDeployment) Descriptor ¶ added in v0.9.1
func (*MsgUpdateDeployment) Descriptor() ([]byte, []int)
func (*MsgUpdateDeployment) GetGroups ¶ added in v0.9.1
func (m *MsgUpdateDeployment) GetGroups() []GroupSpec
func (*MsgUpdateDeployment) GetID ¶ added in v0.9.1
func (m *MsgUpdateDeployment) GetID() DeploymentID
func (MsgUpdateDeployment) GetSignBytes ¶ added in v0.6.5
func (msg MsgUpdateDeployment) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgUpdateDeployment) GetSigners ¶ added in v0.6.5
func (msg MsgUpdateDeployment) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgUpdateDeployment) GetVersion ¶ added in v0.9.1
func (m *MsgUpdateDeployment) GetVersion() []byte
func (*MsgUpdateDeployment) Marshal ¶ added in v0.9.1
func (m *MsgUpdateDeployment) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDeployment) MarshalTo ¶ added in v0.9.1
func (m *MsgUpdateDeployment) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDeployment) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDeployment) ProtoMessage ¶ added in v0.9.1
func (*MsgUpdateDeployment) ProtoMessage()
func (*MsgUpdateDeployment) Reset ¶ added in v0.9.1
func (m *MsgUpdateDeployment) Reset()
func (MsgUpdateDeployment) Route ¶ added in v0.6.5
func (msg MsgUpdateDeployment) Route() string
Route implements the sdk.Msg interface
func (*MsgUpdateDeployment) Size ¶ added in v0.9.1
func (m *MsgUpdateDeployment) Size() (n int)
func (*MsgUpdateDeployment) String ¶ added in v0.9.1
func (m *MsgUpdateDeployment) String() string
func (MsgUpdateDeployment) Type ¶ added in v0.6.5
func (msg MsgUpdateDeployment) Type() string
Type implements the sdk.Msg interface
func (*MsgUpdateDeployment) Unmarshal ¶ added in v0.9.1
func (m *MsgUpdateDeployment) Unmarshal(dAtA []byte) error
func (MsgUpdateDeployment) ValidateBasic ¶ added in v0.6.5
func (msg MsgUpdateDeployment) ValidateBasic() error
ValidateBasic does basic validation
func (*MsgUpdateDeployment) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgUpdateDeployment) XXX_DiscardUnknown()
func (*MsgUpdateDeployment) XXX_Marshal ¶ added in v0.9.1
func (m *MsgUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDeployment) XXX_Merge ¶ added in v0.9.1
func (m *MsgUpdateDeployment) XXX_Merge(src proto.Message)
func (*MsgUpdateDeployment) XXX_Size ¶ added in v0.9.1
func (m *MsgUpdateDeployment) XXX_Size() int
func (*MsgUpdateDeployment) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgUpdateDeployment) XXX_Unmarshal(b []byte) error
type MsgUpdateDeploymentResponse ¶ added in v0.9.1
type MsgUpdateDeploymentResponse struct { }
MsgUpdateDeploymentResponse defines the Msg/UpdateDeployment response type.
func (*MsgUpdateDeploymentResponse) Descriptor ¶ added in v0.9.1
func (*MsgUpdateDeploymentResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateDeploymentResponse) Marshal ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDeploymentResponse) MarshalTo ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDeploymentResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDeploymentResponse) ProtoMessage ¶ added in v0.9.1
func (*MsgUpdateDeploymentResponse) ProtoMessage()
func (*MsgUpdateDeploymentResponse) Reset ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) Reset()
func (*MsgUpdateDeploymentResponse) Size ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) Size() (n int)
func (*MsgUpdateDeploymentResponse) String ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) String() string
func (*MsgUpdateDeploymentResponse) Unmarshal ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateDeploymentResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) XXX_DiscardUnknown()
func (*MsgUpdateDeploymentResponse) XXX_Marshal ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDeploymentResponse) XXX_Merge ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateDeploymentResponse) XXX_Size ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) XXX_Size() int
func (*MsgUpdateDeploymentResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgUpdateDeploymentResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.10.0
type Params struct {
DeploymentMinDeposit types.Coin `` /* 143-byte string literal not displayed */
}
Params defines the parameters for the x/deployment package
func DefaultParams ¶ added in v0.10.0
func DefaultParams() Params
func (*Params) Descriptor ¶ added in v0.10.0
func (*Params) GetDeploymentMinDeposit ¶ added in v0.10.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.10.0
func (*Params) ParamSetPairs ¶ added in v0.10.0
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶ added in v0.10.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.10.0
func (*Params) XXX_Unmarshal ¶ added in v0.10.0
type QueryClient ¶ added in v0.9.1
type QueryClient interface { // Deployments queries deployments Deployments(ctx context.Context, in *QueryDeploymentsRequest, opts ...grpc.CallOption) (*QueryDeploymentsResponse, error) // Deployment queries deployment details Deployment(ctx context.Context, in *QueryDeploymentRequest, opts ...grpc.CallOption) (*QueryDeploymentResponse, error) // Group queries group details Group(ctx context.Context, in *QueryGroupRequest, opts ...grpc.CallOption) (*QueryGroupResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v0.9.1
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryDeploymentRequest ¶ added in v0.9.1
type QueryDeploymentRequest struct {
ID DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
}
QueryDeploymentRequest is request type for the Query/Deployment RPC method
func (*QueryDeploymentRequest) Descriptor ¶ added in v0.9.1
func (*QueryDeploymentRequest) Descriptor() ([]byte, []int)
func (*QueryDeploymentRequest) GetID ¶ added in v0.9.1
func (m *QueryDeploymentRequest) GetID() DeploymentID
func (*QueryDeploymentRequest) Marshal ¶ added in v0.9.1
func (m *QueryDeploymentRequest) Marshal() (dAtA []byte, err error)
func (*QueryDeploymentRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryDeploymentRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDeploymentRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryDeploymentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDeploymentRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryDeploymentRequest) ProtoMessage()
func (*QueryDeploymentRequest) Reset ¶ added in v0.9.1
func (m *QueryDeploymentRequest) Reset()
func (*QueryDeploymentRequest) Size ¶ added in v0.9.1
func (m *QueryDeploymentRequest) Size() (n int)
func (*QueryDeploymentRequest) String ¶ added in v0.9.1
func (m *QueryDeploymentRequest) String() string
func (*QueryDeploymentRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryDeploymentRequest) Unmarshal(dAtA []byte) error
func (*QueryDeploymentRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryDeploymentRequest) XXX_DiscardUnknown()
func (*QueryDeploymentRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryDeploymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDeploymentRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryDeploymentRequest) XXX_Merge(src proto.Message)
func (*QueryDeploymentRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryDeploymentRequest) XXX_Size() int
func (*QueryDeploymentRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryDeploymentRequest) XXX_Unmarshal(b []byte) error
type QueryDeploymentResponse ¶ added in v0.9.1
type QueryDeploymentResponse struct { Deployment Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment" yaml:"deployment"` Groups []Group `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups" yaml:"groups"` EscrowAccount types.Account `protobuf:"bytes,3,opt,name=escrow_account,json=escrowAccount,proto3" json:"escrow_account"` }
QueryDeploymentResponse is response type for the Query/Deployment RPC method
func (*QueryDeploymentResponse) Descriptor ¶ added in v0.9.1
func (*QueryDeploymentResponse) Descriptor() ([]byte, []int)
func (*QueryDeploymentResponse) GetDeployment ¶ added in v0.9.1
func (m *QueryDeploymentResponse) GetDeployment() Deployment
func (*QueryDeploymentResponse) GetEscrowAccount ¶ added in v0.10.0
func (m *QueryDeploymentResponse) GetEscrowAccount() types.Account
func (*QueryDeploymentResponse) GetGroups ¶ added in v0.10.0
func (m *QueryDeploymentResponse) GetGroups() []Group
func (*QueryDeploymentResponse) Marshal ¶ added in v0.9.1
func (m *QueryDeploymentResponse) Marshal() (dAtA []byte, err error)
func (*QueryDeploymentResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryDeploymentResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDeploymentResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDeploymentResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryDeploymentResponse) ProtoMessage()
func (*QueryDeploymentResponse) Reset ¶ added in v0.9.1
func (m *QueryDeploymentResponse) Reset()
func (*QueryDeploymentResponse) Size ¶ added in v0.9.1
func (m *QueryDeploymentResponse) Size() (n int)
func (*QueryDeploymentResponse) String ¶ added in v0.9.1
func (m *QueryDeploymentResponse) String() string
func (*QueryDeploymentResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryDeploymentResponse) Unmarshal(dAtA []byte) error
func (*QueryDeploymentResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryDeploymentResponse) XXX_DiscardUnknown()
func (*QueryDeploymentResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDeploymentResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryDeploymentResponse) XXX_Merge(src proto.Message)
func (*QueryDeploymentResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryDeploymentResponse) XXX_Size() int
func (*QueryDeploymentResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryDeploymentResponse) XXX_Unmarshal(b []byte) error
type QueryDeploymentsRequest ¶ added in v0.9.1
type QueryDeploymentsRequest struct { Filters DeploymentFilters `protobuf:"bytes,1,opt,name=filters,proto3" json:"filters"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryDeploymentsRequest is request type for the Query/Deployments RPC method
func (*QueryDeploymentsRequest) Descriptor ¶ added in v0.9.1
func (*QueryDeploymentsRequest) Descriptor() ([]byte, []int)
func (*QueryDeploymentsRequest) GetFilters ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) GetFilters() DeploymentFilters
func (*QueryDeploymentsRequest) GetPagination ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) GetPagination() *query.PageRequest
func (*QueryDeploymentsRequest) Marshal ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) Marshal() (dAtA []byte, err error)
func (*QueryDeploymentsRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDeploymentsRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDeploymentsRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryDeploymentsRequest) ProtoMessage()
func (*QueryDeploymentsRequest) Reset ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) Reset()
func (*QueryDeploymentsRequest) Size ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) Size() (n int)
func (*QueryDeploymentsRequest) String ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) String() string
func (*QueryDeploymentsRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) Unmarshal(dAtA []byte) error
func (*QueryDeploymentsRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) XXX_DiscardUnknown()
func (*QueryDeploymentsRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDeploymentsRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) XXX_Merge(src proto.Message)
func (*QueryDeploymentsRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) XXX_Size() int
func (*QueryDeploymentsRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryDeploymentsRequest) XXX_Unmarshal(b []byte) error
type QueryDeploymentsResponse ¶ added in v0.9.1
type QueryDeploymentsResponse struct { Deployments DeploymentResponses `protobuf:"bytes,1,rep,name=deployments,proto3,castrepeated=DeploymentResponses" json:"deployments"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryDeploymentsResponse is response type for the Query/Deployments RPC method
func (*QueryDeploymentsResponse) Descriptor ¶ added in v0.9.1
func (*QueryDeploymentsResponse) Descriptor() ([]byte, []int)
func (*QueryDeploymentsResponse) GetDeployments ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) GetDeployments() DeploymentResponses
func (*QueryDeploymentsResponse) GetPagination ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) GetPagination() *query.PageResponse
func (*QueryDeploymentsResponse) Marshal ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) Marshal() (dAtA []byte, err error)
func (*QueryDeploymentsResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDeploymentsResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDeploymentsResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryDeploymentsResponse) ProtoMessage()
func (*QueryDeploymentsResponse) Reset ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) Reset()
func (*QueryDeploymentsResponse) Size ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) Size() (n int)
func (*QueryDeploymentsResponse) String ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) String() string
func (*QueryDeploymentsResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) Unmarshal(dAtA []byte) error
func (*QueryDeploymentsResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) XXX_DiscardUnknown()
func (*QueryDeploymentsResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDeploymentsResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) XXX_Merge(src proto.Message)
func (*QueryDeploymentsResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) XXX_Size() int
func (*QueryDeploymentsResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryDeploymentsResponse) XXX_Unmarshal(b []byte) error
type QueryGroupRequest ¶ added in v0.9.1
type QueryGroupRequest struct {
ID GroupID `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
}
QueryGroupRequest is request type for the Query/Group RPC method
func (*QueryGroupRequest) Descriptor ¶ added in v0.9.1
func (*QueryGroupRequest) Descriptor() ([]byte, []int)
func (*QueryGroupRequest) GetID ¶ added in v0.9.1
func (m *QueryGroupRequest) GetID() GroupID
func (*QueryGroupRequest) Marshal ¶ added in v0.9.1
func (m *QueryGroupRequest) Marshal() (dAtA []byte, err error)
func (*QueryGroupRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryGroupRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGroupRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGroupRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryGroupRequest) ProtoMessage()
func (*QueryGroupRequest) Reset ¶ added in v0.9.1
func (m *QueryGroupRequest) Reset()
func (*QueryGroupRequest) Size ¶ added in v0.9.1
func (m *QueryGroupRequest) Size() (n int)
func (*QueryGroupRequest) String ¶ added in v0.9.1
func (m *QueryGroupRequest) String() string
func (*QueryGroupRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryGroupRequest) Unmarshal(dAtA []byte) error
func (*QueryGroupRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryGroupRequest) XXX_DiscardUnknown()
func (*QueryGroupRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGroupRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryGroupRequest) XXX_Merge(src proto.Message)
func (*QueryGroupRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryGroupRequest) XXX_Size() int
func (*QueryGroupRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryGroupRequest) XXX_Unmarshal(b []byte) error
type QueryGroupResponse ¶ added in v0.9.1
type QueryGroupResponse struct {
Group Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group"`
}
QueryGroupResponse is response type for the Query/Group RPC method
func (*QueryGroupResponse) Descriptor ¶ added in v0.9.1
func (*QueryGroupResponse) Descriptor() ([]byte, []int)
func (*QueryGroupResponse) GetGroup ¶ added in v0.9.1
func (m *QueryGroupResponse) GetGroup() Group
func (*QueryGroupResponse) Marshal ¶ added in v0.9.1
func (m *QueryGroupResponse) Marshal() (dAtA []byte, err error)
func (*QueryGroupResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryGroupResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGroupResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGroupResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryGroupResponse) ProtoMessage()
func (*QueryGroupResponse) Reset ¶ added in v0.9.1
func (m *QueryGroupResponse) Reset()
func (*QueryGroupResponse) Size ¶ added in v0.9.1
func (m *QueryGroupResponse) Size() (n int)
func (*QueryGroupResponse) String ¶ added in v0.9.1
func (m *QueryGroupResponse) String() string
func (*QueryGroupResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryGroupResponse) Unmarshal(dAtA []byte) error
func (*QueryGroupResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryGroupResponse) XXX_DiscardUnknown()
func (*QueryGroupResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGroupResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryGroupResponse) XXX_Merge(src proto.Message)
func (*QueryGroupResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryGroupResponse) XXX_Size() int
func (*QueryGroupResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryGroupResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.9.1
type QueryServer interface { // Deployments queries deployments Deployments(context.Context, *QueryDeploymentsRequest) (*QueryDeploymentsResponse, error) // Deployment queries deployment details Deployment(context.Context, *QueryDeploymentRequest) (*QueryDeploymentResponse, error) // Group queries group details Group(context.Context, *QueryGroupRequest) (*QueryGroupResponse, error) }
QueryServer is the server API for Query service.
type Resource ¶
type Resource struct { Resources types.ResourceUnits `protobuf:"bytes,1,opt,name=resources,proto3" json:"unit" yaml:"unit"` Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count" yaml:"count"` Price types1.Coin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"` }
Resource stores unit, total count and price of resource
func (*Resource) Descriptor ¶ added in v0.9.1
func (*Resource) GetResources ¶ added in v0.9.1
func (m *Resource) GetResources() types.ResourceUnits
func (*Resource) MarshalToSizedBuffer ¶ added in v0.9.1
func (*Resource) ProtoMessage ¶ added in v0.9.1
func (*Resource) ProtoMessage()
func (*Resource) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Resource) XXX_DiscardUnknown()
func (*Resource) XXX_Marshal ¶ added in v0.9.1
func (*Resource) XXX_Unmarshal ¶ added in v0.9.1
type UnimplementedMsgServer ¶ added in v0.9.1
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CloseDeployment ¶ added in v0.9.1
func (*UnimplementedMsgServer) CloseDeployment(ctx context.Context, req *MsgCloseDeployment) (*MsgCloseDeploymentResponse, error)
func (*UnimplementedMsgServer) CloseGroup ¶ added in v0.9.1
func (*UnimplementedMsgServer) CloseGroup(ctx context.Context, req *MsgCloseGroup) (*MsgCloseGroupResponse, error)
func (*UnimplementedMsgServer) CreateDeployment ¶ added in v0.9.1
func (*UnimplementedMsgServer) CreateDeployment(ctx context.Context, req *MsgCreateDeployment) (*MsgCreateDeploymentResponse, error)
func (*UnimplementedMsgServer) DepositDeployment ¶ added in v0.10.0
func (*UnimplementedMsgServer) DepositDeployment(ctx context.Context, req *MsgDepositDeployment) (*MsgDepositDeploymentResponse, error)
func (*UnimplementedMsgServer) PauseGroup ¶ added in v0.10.0
func (*UnimplementedMsgServer) PauseGroup(ctx context.Context, req *MsgPauseGroup) (*MsgPauseGroupResponse, error)
func (*UnimplementedMsgServer) StartGroup ¶ added in v0.10.0
func (*UnimplementedMsgServer) StartGroup(ctx context.Context, req *MsgStartGroup) (*MsgStartGroupResponse, error)
func (*UnimplementedMsgServer) UpdateDeployment ¶ added in v0.9.1
func (*UnimplementedMsgServer) UpdateDeployment(ctx context.Context, req *MsgUpdateDeployment) (*MsgUpdateDeploymentResponse, error)
type UnimplementedQueryServer ¶ added in v0.9.1
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Deployment ¶ added in v0.9.1
func (*UnimplementedQueryServer) Deployment(ctx context.Context, req *QueryDeploymentRequest) (*QueryDeploymentResponse, error)
func (*UnimplementedQueryServer) Deployments ¶ added in v0.9.1
func (*UnimplementedQueryServer) Deployments(ctx context.Context, req *QueryDeploymentsRequest) (*QueryDeploymentsResponse, error)
func (*UnimplementedQueryServer) Group ¶ added in v0.9.1
func (*UnimplementedQueryServer) Group(ctx context.Context, req *QueryGroupRequest) (*QueryGroupResponse, error)
type ValidationConfig ¶ added in v0.10.0
type ValidationConfig struct { // MaxUnitCPU is the maximum number of milli (1/1000) cpu units a unit can consume. MaxUnitCPU uint // MaxUnitMemory is the maximum number of bytes of memory that a unit can consume MaxUnitMemory uint64 // MaxUnitStorage is the maximum number of bytes of storage that a unit can consume MaxUnitStorage uint64 // MaxUnitCount is the maximum number of replias of a service MaxUnitCount uint // MaxUnitPrice is the maximum price that a unit can have MaxUnitPrice uint64 MinUnitCPU uint MinUnitMemory uint64 MinUnitStorage uint64 MinUnitCount uint MinUnitPrice uint64 // MaxGroupCount is the maximum number of groups allowed per deployment MaxGroupCount int // MaxGroupUnits is the maximum number services per group MaxGroupUnits int // MaxGroupCPU is the maximum total amount of CPU requested per group MaxGroupCPU uint64 // MaxGroupMemory is the maximum total amount of memory requested per group MaxGroupMemory uint64 // MaxGroupStorage is the maximum total amount of storage requested per group MaxGroupStorage uint64 }
func GetValidationConfig ¶ added in v0.10.0
func GetValidationConfig() ValidationConfig