legacy

package
v0.15.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Group) GetCreatedAt

func (m *Group) GetCreatedAt() int64

func (*Group) GetGroupID

func (m *Group) GetGroupID() types.GroupID

func (*Group) GetGroupSpec

func (m *Group) GetGroupSpec() GroupSpec

func (*Group) GetState

func (m *Group) GetState() Group_State

func (*Group) Marshal

func (m *Group) Marshal() (dAtA []byte, err error)

func (*Group) MarshalTo

func (m *Group) MarshalTo(dAtA []byte) (int, error)

func (*Group) MarshalToSizedBuffer

func (m *Group) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) Reset

func (m *Group) Reset()

func (*Group) Size

func (m *Group) Size() (n int)

func (*Group) String

func (m *Group) String() string

func (*Group) Unmarshal

func (m *Group) Unmarshal(dAtA []byte) error

func (*Group) XXX_DiscardUnknown

func (m *Group) XXX_DiscardUnknown()

func (*Group) XXX_Marshal

func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Group) XXX_Merge

func (m *Group) XXX_Merge(src proto.Message)

func (*Group) XXX_Size

func (m *Group) XXX_Size() int

func (*Group) XXX_Unmarshal

func (m *Group) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*GroupSpec) Marshal

func (m *GroupSpec) Marshal() (dAtA []byte, err error)

func (*GroupSpec) MarshalTo

func (m *GroupSpec) MarshalTo(dAtA []byte) (int, error)

func (*GroupSpec) MarshalToSizedBuffer

func (m *GroupSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupSpec) ProtoMessage

func (*GroupSpec) ProtoMessage()

func (*GroupSpec) Reset

func (m *GroupSpec) Reset()

func (*GroupSpec) Size

func (m *GroupSpec) Size() (n int)

func (*GroupSpec) String

func (m *GroupSpec) String() string

func (*GroupSpec) Unmarshal

func (m *GroupSpec) Unmarshal(dAtA []byte) error

func (*GroupSpec) XXX_DiscardUnknown

func (m *GroupSpec) XXX_DiscardUnknown()

func (*GroupSpec) XXX_Marshal

func (m *GroupSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupSpec) XXX_Merge

func (m *GroupSpec) XXX_Merge(src proto.Message)

func (*GroupSpec) XXX_Size

func (m *GroupSpec) XXX_Size() int

func (*GroupSpec) XXX_Unmarshal

func (m *GroupSpec) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Resource) GetCount

func (m *Resource) GetCount() uint32

func (*Resource) GetPrice

func (m *Resource) GetPrice() types.Coin

func (*Resource) GetResources

func (m *Resource) GetResources() legacy.ResourceUnits

func (*Resource) Marshal

func (m *Resource) Marshal() (dAtA []byte, err error)

func (*Resource) MarshalTo

func (m *Resource) MarshalTo(dAtA []byte) (int, error)

func (*Resource) MarshalToSizedBuffer

func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) Size

func (m *Resource) Size() (n int)

func (*Resource) String

func (m *Resource) String() string

func (*Resource) Unmarshal

func (m *Resource) Unmarshal(dAtA []byte) error

func (*Resource) XXX_DiscardUnknown

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal

func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Resource) XXX_Merge

func (m *Resource) XXX_Merge(src proto.Message)

func (*Resource) XXX_Size

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal

func (m *Resource) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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