proto

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthChangelog        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowChangelog          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupChangelog = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCommitInfo        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommitInfo          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCommitInfo = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ChangelogEntry added in v0.0.8

type ChangelogEntry struct {
	Version    int64              `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Changesets []*NamedChangeSet  `protobuf:"bytes,2,rep,name=changesets,proto3" json:"changesets,omitempty"`
	Upgrades   []*TreeNameUpgrade `protobuf:"bytes,3,rep,name=upgrades,proto3" json:"upgrades,omitempty"`
}

ChangelogEntry is a single entry in the changelog

func (*ChangelogEntry) Descriptor added in v0.0.8

func (*ChangelogEntry) Descriptor() ([]byte, []int)

func (*ChangelogEntry) GetChangesets added in v0.0.8

func (m *ChangelogEntry) GetChangesets() []*NamedChangeSet

func (*ChangelogEntry) GetUpgrades added in v0.0.8

func (m *ChangelogEntry) GetUpgrades() []*TreeNameUpgrade

func (*ChangelogEntry) GetVersion added in v0.0.8

func (m *ChangelogEntry) GetVersion() int64

func (*ChangelogEntry) Marshal added in v0.0.8

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

func (*ChangelogEntry) MarshalTo added in v0.0.8

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

func (*ChangelogEntry) MarshalToSizedBuffer added in v0.0.8

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

func (*ChangelogEntry) ProtoMessage added in v0.0.8

func (*ChangelogEntry) ProtoMessage()

func (*ChangelogEntry) Reset added in v0.0.8

func (m *ChangelogEntry) Reset()

func (*ChangelogEntry) Size added in v0.0.8

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

func (*ChangelogEntry) String added in v0.0.8

func (m *ChangelogEntry) String() string

func (*ChangelogEntry) Unmarshal added in v0.0.8

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

func (*ChangelogEntry) XXX_DiscardUnknown added in v0.0.8

func (m *ChangelogEntry) XXX_DiscardUnknown()

func (*ChangelogEntry) XXX_Marshal added in v0.0.8

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

func (*ChangelogEntry) XXX_Merge added in v0.0.8

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

func (*ChangelogEntry) XXX_Size added in v0.0.8

func (m *ChangelogEntry) XXX_Size() int

func (*ChangelogEntry) XXX_Unmarshal added in v0.0.8

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

type CommitID

type CommitID struct {
	Version int64  `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Hash    []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
}

CommitID defines the commitment information when a specific store is committed.

func (*CommitID) Descriptor

func (*CommitID) Descriptor() ([]byte, []int)

func (*CommitID) GetHash

func (m *CommitID) GetHash() []byte

func (*CommitID) GetVersion

func (m *CommitID) GetVersion() int64

func (*CommitID) Marshal

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

func (*CommitID) MarshalTo

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

func (*CommitID) MarshalToSizedBuffer

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

func (*CommitID) ProtoMessage

func (*CommitID) ProtoMessage()

func (*CommitID) Reset

func (m *CommitID) Reset()

func (*CommitID) Size

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

func (CommitID) String

func (cid CommitID) String() string

func (*CommitID) Unmarshal

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

func (*CommitID) XXX_DiscardUnknown

func (m *CommitID) XXX_DiscardUnknown()

func (*CommitID) XXX_Marshal

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

func (*CommitID) XXX_Merge

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

func (*CommitID) XXX_Size

func (m *CommitID) XXX_Size() int

func (*CommitID) XXX_Unmarshal

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

type CommitInfo

type CommitInfo struct {
	Version    int64       `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	StoreInfos []StoreInfo `protobuf:"bytes,2,rep,name=store_infos,json=storeInfos,proto3" json:"store_infos"`
}

CommitInfo defines commit information used by the multi-store when committing a version/height.

func (*CommitInfo) Descriptor

func (*CommitInfo) Descriptor() ([]byte, []int)

func (*CommitInfo) GetStoreInfos

func (m *CommitInfo) GetStoreInfos() []StoreInfo

func (*CommitInfo) GetVersion

func (m *CommitInfo) GetVersion() int64

func (*CommitInfo) Marshal

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

func (*CommitInfo) MarshalTo

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

func (*CommitInfo) MarshalToSizedBuffer

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

func (*CommitInfo) ProtoMessage

func (*CommitInfo) ProtoMessage()

func (*CommitInfo) Reset

func (m *CommitInfo) Reset()

func (*CommitInfo) Size

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

func (*CommitInfo) String

func (m *CommitInfo) String() string

func (*CommitInfo) Unmarshal

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

func (*CommitInfo) XXX_DiscardUnknown

func (m *CommitInfo) XXX_DiscardUnknown()

func (*CommitInfo) XXX_Marshal

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

func (*CommitInfo) XXX_Merge

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

func (*CommitInfo) XXX_Size

func (m *CommitInfo) XXX_Size() int

func (*CommitInfo) XXX_Unmarshal

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

type MultiTreeMetadata

type MultiTreeMetadata struct {
	CommitInfo     *CommitInfo `protobuf:"bytes,1,opt,name=commit_info,json=commitInfo,proto3" json:"commit_info,omitempty"`
	InitialVersion int64       `protobuf:"varint,2,opt,name=initial_version,json=initialVersion,proto3" json:"initial_version,omitempty"`
}

MultiTreeMetadata stores the metadata for MultiTree

func (*MultiTreeMetadata) Descriptor

func (*MultiTreeMetadata) Descriptor() ([]byte, []int)

func (*MultiTreeMetadata) GetCommitInfo

func (m *MultiTreeMetadata) GetCommitInfo() *CommitInfo

func (*MultiTreeMetadata) GetInitialVersion

func (m *MultiTreeMetadata) GetInitialVersion() int64

func (*MultiTreeMetadata) Marshal

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

func (*MultiTreeMetadata) MarshalTo

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

func (*MultiTreeMetadata) MarshalToSizedBuffer

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

func (*MultiTreeMetadata) ProtoMessage

func (*MultiTreeMetadata) ProtoMessage()

func (*MultiTreeMetadata) Reset

func (m *MultiTreeMetadata) Reset()

func (*MultiTreeMetadata) Size

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

func (*MultiTreeMetadata) String

func (m *MultiTreeMetadata) String() string

func (*MultiTreeMetadata) Unmarshal

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

func (*MultiTreeMetadata) XXX_DiscardUnknown

func (m *MultiTreeMetadata) XXX_DiscardUnknown()

func (*MultiTreeMetadata) XXX_Marshal

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

func (*MultiTreeMetadata) XXX_Merge

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

func (*MultiTreeMetadata) XXX_Size

func (m *MultiTreeMetadata) XXX_Size() int

func (*MultiTreeMetadata) XXX_Unmarshal

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

type NamedChangeSet

type NamedChangeSet struct {
	Changeset iavl.ChangeSet `protobuf:"bytes,1,opt,name=changeset,proto3" json:"changeset"`
	Name      string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

NamedChangeSet combine a tree name with the changeset

func (*NamedChangeSet) Descriptor

func (*NamedChangeSet) Descriptor() ([]byte, []int)

func (*NamedChangeSet) GetChangeset

func (m *NamedChangeSet) GetChangeset() iavl.ChangeSet

func (*NamedChangeSet) GetName

func (m *NamedChangeSet) GetName() string

func (*NamedChangeSet) Marshal

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

func (*NamedChangeSet) MarshalTo

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

func (*NamedChangeSet) MarshalToSizedBuffer

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

func (*NamedChangeSet) ProtoMessage

func (*NamedChangeSet) ProtoMessage()

func (*NamedChangeSet) Reset

func (m *NamedChangeSet) Reset()

func (*NamedChangeSet) Size

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

func (*NamedChangeSet) String

func (m *NamedChangeSet) String() string

func (*NamedChangeSet) Unmarshal

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

func (*NamedChangeSet) XXX_DiscardUnknown

func (m *NamedChangeSet) XXX_DiscardUnknown()

func (*NamedChangeSet) XXX_Marshal

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

func (*NamedChangeSet) XXX_Merge

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

func (*NamedChangeSet) XXX_Size

func (m *NamedChangeSet) XXX_Size() int

func (*NamedChangeSet) XXX_Unmarshal

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

type StoreInfo

type StoreInfo struct {
	Name     string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CommitId CommitID `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id"`
}

StoreInfo defines store-specific commit information. It contains a reference between a store name and the commit ID.

func (*StoreInfo) Descriptor

func (*StoreInfo) Descriptor() ([]byte, []int)

func (*StoreInfo) GetCommitId

func (m *StoreInfo) GetCommitId() CommitID

func (*StoreInfo) GetName

func (m *StoreInfo) GetName() string

func (*StoreInfo) Marshal

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

func (*StoreInfo) MarshalTo

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

func (*StoreInfo) MarshalToSizedBuffer

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

func (*StoreInfo) ProtoMessage

func (*StoreInfo) ProtoMessage()

func (*StoreInfo) Reset

func (m *StoreInfo) Reset()

func (*StoreInfo) Size

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

func (*StoreInfo) String

func (m *StoreInfo) String() string

func (*StoreInfo) Unmarshal

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

func (*StoreInfo) XXX_DiscardUnknown

func (m *StoreInfo) XXX_DiscardUnknown()

func (*StoreInfo) XXX_Marshal

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

func (*StoreInfo) XXX_Merge

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

func (*StoreInfo) XXX_Size

func (m *StoreInfo) XXX_Size() int

func (*StoreInfo) XXX_Unmarshal

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

type TreeNameUpgrade

type TreeNameUpgrade struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	RenameFrom string `protobuf:"bytes,2,opt,name=rename_from,json=renameFrom,proto3" json:"rename_from,omitempty"`
	Delete     bool   `protobuf:"varint,3,opt,name=delete,proto3" json:"delete,omitempty"`
}

TreeNameUpgrade defines upgrade of tree names: - New tree: { name: "tree" } - Delete tree: { name: "tree", delete: true } - Rename tree: { name: "new-tree", rename_from: "old-tree" }

func (*TreeNameUpgrade) Descriptor

func (*TreeNameUpgrade) Descriptor() ([]byte, []int)

func (*TreeNameUpgrade) GetDelete

func (m *TreeNameUpgrade) GetDelete() bool

func (*TreeNameUpgrade) GetName

func (m *TreeNameUpgrade) GetName() string

func (*TreeNameUpgrade) GetRenameFrom

func (m *TreeNameUpgrade) GetRenameFrom() string

func (*TreeNameUpgrade) Marshal

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

func (*TreeNameUpgrade) MarshalTo

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

func (*TreeNameUpgrade) MarshalToSizedBuffer

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

func (*TreeNameUpgrade) ProtoMessage

func (*TreeNameUpgrade) ProtoMessage()

func (*TreeNameUpgrade) Reset

func (m *TreeNameUpgrade) Reset()

func (*TreeNameUpgrade) Size

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

func (*TreeNameUpgrade) String

func (m *TreeNameUpgrade) String() string

func (*TreeNameUpgrade) Unmarshal

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

func (*TreeNameUpgrade) XXX_DiscardUnknown

func (m *TreeNameUpgrade) XXX_DiscardUnknown()

func (*TreeNameUpgrade) XXX_Marshal

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

func (*TreeNameUpgrade) XXX_Merge

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

func (*TreeNameUpgrade) XXX_Size

func (m *TreeNameUpgrade) XXX_Size() int

func (*TreeNameUpgrade) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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