package gcppb
import "github.com/google/trillian/skylog/storage/gcp/gcppb"
Package gcppb contains proto messages for GCP-based Skylog storage.
Index ¶
- Variables
- type BuildJob
- func (*BuildJob) Descriptor() ([]byte, []int)
- func (x *BuildJob) GetBegin() uint64
- func (x *BuildJob) GetEnd() uint64
- func (x *BuildJob) GetSeqSharding() *SequenceSharding
- func (x *BuildJob) GetTreeId() int64
- func (x *BuildJob) GetTreeSharding() *TreeSharding
- func (*BuildJob) ProtoMessage()
- func (x *BuildJob) ProtoReflect() protoreflect.Message
- func (x *BuildJob) Reset()
- func (x *BuildJob) String() string
- type SequenceSharding
- func (*SequenceSharding) Descriptor() ([]byte, []int)
- func (x *SequenceSharding) GetShards() uint32
- func (x *SequenceSharding) GetSize() uint64
- func (*SequenceSharding) ProtoMessage()
- func (x *SequenceSharding) ProtoReflect() protoreflect.Message
- func (x *SequenceSharding) Reset()
- func (x *SequenceSharding) String() string
- type TreeSharding
Variables ¶
var File_gcp_proto protoreflect.FileDescriptor
Types ¶
type BuildJob ¶
type BuildJob struct { // The tree ID to build a subtree of. TreeId int64 `protobuf:"varint,1,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"` // The beginning of the leaves range (inclusive). Begin uint64 `protobuf:"varint,2,opt,name=begin,proto3" json:"begin,omitempty"` // The ending of the leaves range (exclusive). End uint64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` // The tree sharding scheme that the build worker should use. Since builders // are stateless it is more efficient to pass it in from the master rather // than fetch it from storage on each job invocation. TreeSharding *TreeSharding `protobuf:"bytes,4,opt,name=tree_sharding,json=treeSharding,proto3" json:"tree_sharding,omitempty"` // The sequence sharding scheme that the build worker should use. It is // provided for the same reason as the tree sharding field. SeqSharding *SequenceSharding `protobuf:"bytes,5,opt,name=seq_sharding,json=seqSharding,proto3" json:"seq_sharding,omitempty"` // contains filtered or unexported fields }
BuildJob is a Merke tree building job. It instructs workers to build a subtree covering leaves of the [begin, end) range for the specified tree.
func (*BuildJob) Descriptor ¶
Deprecated: Use BuildJob.ProtoReflect.Descriptor instead.
func (*BuildJob) GetBegin ¶
func (*BuildJob) GetEnd ¶
func (*BuildJob) GetSeqSharding ¶
func (x *BuildJob) GetSeqSharding() *SequenceSharding
func (*BuildJob) GetTreeId ¶
func (*BuildJob) GetTreeSharding ¶
func (x *BuildJob) GetTreeSharding() *TreeSharding
func (*BuildJob) ProtoMessage ¶
func (*BuildJob) ProtoMessage()
func (*BuildJob) ProtoReflect ¶
func (x *BuildJob) ProtoReflect() protoreflect.Message
func (*BuildJob) Reset ¶
func (x *BuildJob) Reset()
func (*BuildJob) String ¶
type SequenceSharding ¶
type SequenceSharding struct { Shards uint32 `protobuf:"varint,1,opt,name=shards,proto3" json:"shards,omitempty"` Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
SequenceSharding describes the sequenced log entries sharding scheme.
The sequence is split into the specified number of shards, where each shard stores a periodic sub-sequence consisting of stripes of the specified size.
See the sequence storage comments for more details.
func (*SequenceSharding) Descriptor ¶
func (*SequenceSharding) Descriptor() ([]byte, []int)
Deprecated: Use SequenceSharding.ProtoReflect.Descriptor instead.
func (*SequenceSharding) GetShards ¶
func (x *SequenceSharding) GetShards() uint32
func (*SequenceSharding) GetSize ¶
func (x *SequenceSharding) GetSize() uint64
func (*SequenceSharding) ProtoMessage ¶
func (*SequenceSharding) ProtoMessage()
func (*SequenceSharding) ProtoReflect ¶
func (x *SequenceSharding) ProtoReflect() protoreflect.Message
func (*SequenceSharding) Reset ¶
func (x *SequenceSharding) Reset()
func (*SequenceSharding) String ¶
func (x *SequenceSharding) String() string
type TreeSharding ¶
type TreeSharding struct { Levels uint32 `protobuf:"varint,1,opt,name=levels,proto3" json:"levels,omitempty"` Shards uint32 `protobuf:"varint,2,opt,name=shards,proto3" json:"shards,omitempty"` // contains filtered or unexported fields }
TreeSharding describes the tree nodes sharding scheme.
The specified number of lower tree levels are split into the specified number of shards, where each shard stores a periodic sub-structure of perfect subtrees. There is one extra shard covering the upper tree levels.
See the tree storage comments for more details.
func (*TreeSharding) Descriptor ¶
func (*TreeSharding) Descriptor() ([]byte, []int)
Deprecated: Use TreeSharding.ProtoReflect.Descriptor instead.
func (*TreeSharding) GetLevels ¶
func (x *TreeSharding) GetLevels() uint32
func (*TreeSharding) GetShards ¶
func (x *TreeSharding) GetShards() uint32
func (*TreeSharding) ProtoMessage ¶
func (*TreeSharding) ProtoMessage()
func (*TreeSharding) ProtoReflect ¶
func (x *TreeSharding) ProtoReflect() protoreflect.Message
func (*TreeSharding) Reset ¶
func (x *TreeSharding) Reset()
func (*TreeSharding) String ¶
func (x *TreeSharding) String() string
Source Files ¶
- Version
- v1.3.9
- Published
- Jun 22, 2020
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 6 hours ago –
Tools for package owners.