Documentation ¶
Index ¶
- Variables
- type GenesisDeployment
- func (*GenesisDeployment) Descriptor() ([]byte, []int)
- func (m *GenesisDeployment) GetDeployment() types.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() types.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() types.GroupID
- func (m *Group) GetGroupSpec() GroupSpec
- func (m *Group) GetState() Group_State
- 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 (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 GroupSpec
- func (*GroupSpec) Descriptor() ([]byte, []int)
- 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 (*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 (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 Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (m *Resource) GetCount() uint32
- func (m *Resource) GetPrice() types.Coin
- func (m *Resource) GetResources() legacy.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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthGroup = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGroup = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthGroupspec = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGroupspec = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGroupspec = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthResource = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowResource = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupResource = fmt.Errorf("proto: unexpected end of group") )
View Source
var Group_State_name = map[int32]string{
0: "invalid",
1: "open",
2: "paused",
3: "insufficient_funds",
4: "closed",
}
View Source
var Group_State_value = map[string]int32{
"invalid": 0,
"open": 1,
"paused": 2,
"insufficient_funds": 3,
"closed": 4,
}
Functions ¶
This section is empty.
Types ¶
type GenesisDeployment ¶
type GenesisDeployment struct { Deployment types.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 ¶
func (*GenesisDeployment) Descriptor() ([]byte, []int)
func (*GenesisDeployment) GetDeployment ¶
func (m *GenesisDeployment) GetDeployment() types.Deployment
func (*GenesisDeployment) GetGroups ¶
func (m *GenesisDeployment) GetGroups() []Group
func (*GenesisDeployment) Marshal ¶
func (m *GenesisDeployment) Marshal() (dAtA []byte, err error)
func (*GenesisDeployment) MarshalTo ¶
func (m *GenesisDeployment) MarshalTo(dAtA []byte) (int, error)
func (*GenesisDeployment) MarshalToSizedBuffer ¶
func (m *GenesisDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisDeployment) ProtoMessage ¶
func (*GenesisDeployment) ProtoMessage()
func (*GenesisDeployment) Reset ¶
func (m *GenesisDeployment) Reset()
func (*GenesisDeployment) Size ¶
func (m *GenesisDeployment) Size() (n int)
func (*GenesisDeployment) String ¶
func (m *GenesisDeployment) String() string
func (*GenesisDeployment) Unmarshal ¶
func (m *GenesisDeployment) Unmarshal(dAtA []byte) error
func (*GenesisDeployment) XXX_DiscardUnknown ¶
func (m *GenesisDeployment) XXX_DiscardUnknown()
func (*GenesisDeployment) XXX_Marshal ¶
func (m *GenesisDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisDeployment) XXX_Merge ¶
func (m *GenesisDeployment) XXX_Merge(src proto.Message)
func (*GenesisDeployment) XXX_Size ¶
func (m *GenesisDeployment) XXX_Size() int
func (*GenesisDeployment) XXX_Unmarshal ¶
func (m *GenesisDeployment) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Deployments []GenesisDeployment `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments" yaml:"deployments"` Params types.Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params" yaml:"params"` }
GenesisState stores slice of genesis deployment instance
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDeployments ¶
func (m *GenesisState) GetDeployments() []GenesisDeployment
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() types.Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Group ¶
type Group struct { GroupID types.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.v1beta1legacy.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 ¶
func (*Group) GetCreatedAt ¶
func (*Group) GetGroupID ¶
func (*Group) GetGroupSpec ¶
func (*Group) GetState ¶
func (m *Group) GetState() Group_State
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) XXX_DiscardUnknown ¶
func (m *Group) XXX_DiscardUnknown()
func (*Group) XXX_Marshal ¶
func (*Group) XXX_Unmarshal ¶
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 ¶
func (*GroupSpec) MarshalToSizedBuffer ¶
func (*GroupSpec) ProtoMessage ¶
func (*GroupSpec) ProtoMessage()
func (*GroupSpec) XXX_DiscardUnknown ¶
func (m *GroupSpec) XXX_DiscardUnknown()
func (*GroupSpec) XXX_Marshal ¶
func (*GroupSpec) XXX_Unmarshal ¶
type Group_State ¶
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 ¶
func (Group_State) EnumDescriptor() ([]byte, []int)
func (Group_State) String ¶
func (x Group_State) String() string
type Resource ¶
type Resource struct { Resources legacy.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 types.Coin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"` }
Resource stores unit, total count and price of resource
func (*Resource) Descriptor ¶
func (*Resource) GetResources ¶
func (m *Resource) GetResources() legacy.ResourceUnits
func (*Resource) MarshalToSizedBuffer ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) XXX_DiscardUnknown ¶
func (m *Resource) XXX_DiscardUnknown()
func (*Resource) XXX_Marshal ¶
func (*Resource) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.