trillian: github.com/google/trillian Index | Files | Directories

package trillian

import "github.com/google/trillian"

Index

Package Files

gen.go trillian.pb.go trillian_admin_api.pb.go trillian_log_api.pb.go trillian_log_sequencer_api.pb.go trillian_map_api.pb.go

Variables

var (
    LogRootFormat_name = map[int32]string{
        0:  "LOG_ROOT_FORMAT_UNKNOWN",
        1:  "LOG_ROOT_FORMAT_V1",
    }
    LogRootFormat_value = map[string]int32{
        "LOG_ROOT_FORMAT_UNKNOWN": 0,
        "LOG_ROOT_FORMAT_V1":      1,
    }
)

Enum value maps for LogRootFormat.

var (
    MapRootFormat_name = map[int32]string{
        0:  "MAP_ROOT_FORMAT_UNKNOWN",
        1:  "MAP_ROOT_FORMAT_V1",
    }
    MapRootFormat_value = map[string]int32{
        "MAP_ROOT_FORMAT_UNKNOWN": 0,
        "MAP_ROOT_FORMAT_V1":      1,
    }
)

Enum value maps for MapRootFormat.

var (
    HashStrategy_name = map[int32]string{
        0:  "UNKNOWN_HASH_STRATEGY",
        1:  "RFC6962_SHA256",
        2:  "TEST_MAP_HASHER",
        3:  "OBJECT_RFC6962_SHA256",
        4:  "CONIKS_SHA512_256",
        5:  "CONIKS_SHA256",
    }
    HashStrategy_value = map[string]int32{
        "UNKNOWN_HASH_STRATEGY": 0,
        "RFC6962_SHA256":        1,
        "TEST_MAP_HASHER":       2,
        "OBJECT_RFC6962_SHA256": 3,
        "CONIKS_SHA512_256":     4,
        "CONIKS_SHA256":         5,
    }
)

Enum value maps for HashStrategy.

var (
    TreeState_name = map[int32]string{
        0:  "UNKNOWN_TREE_STATE",
        1:  "ACTIVE",
        2:  "FROZEN",
        3:  "DEPRECATED_SOFT_DELETED",
        4:  "DEPRECATED_HARD_DELETED",
        5:  "DRAINING",
    }
    TreeState_value = map[string]int32{
        "UNKNOWN_TREE_STATE":      0,
        "ACTIVE":                  1,
        "FROZEN":                  2,
        "DEPRECATED_SOFT_DELETED": 3,
        "DEPRECATED_HARD_DELETED": 4,
        "DRAINING":                5,
    }
)

Enum value maps for TreeState.

var (
    TreeType_name = map[int32]string{
        0:  "UNKNOWN_TREE_TYPE",
        1:  "LOG",
        2:  "MAP",
        3:  "PREORDERED_LOG",
    }
    TreeType_value = map[string]int32{
        "UNKNOWN_TREE_TYPE": 0,
        "LOG":               1,
        "MAP":               2,
        "PREORDERED_LOG":    3,
    }
)

Enum value maps for TreeType.

var File_trillian_admin_api_proto protoreflect.FileDescriptor
var File_trillian_log_api_proto protoreflect.FileDescriptor
var File_trillian_log_sequencer_api_proto protoreflect.FileDescriptor
var File_trillian_map_api_proto protoreflect.FileDescriptor
var File_trillian_proto protoreflect.FileDescriptor

func RegisterTrillianAdminServer Uses

func RegisterTrillianAdminServer(s *grpc.Server, srv TrillianAdminServer)

func RegisterTrillianLogSequencerServer Uses

func RegisterTrillianLogSequencerServer(s *grpc.Server, srv TrillianLogSequencerServer)

func RegisterTrillianLogServer Uses

func RegisterTrillianLogServer(s *grpc.Server, srv TrillianLogServer)

func RegisterTrillianMapServer Uses

func RegisterTrillianMapServer(s *grpc.Server, srv TrillianMapServer)

func RegisterTrillianMapWriteServer Uses

func RegisterTrillianMapWriteServer(s *grpc.Server, srv TrillianMapWriteServer)

type AddSequencedLeafRequest Uses

type AddSequencedLeafRequest struct {
    LogId    int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    Leaf     *LogLeaf  `protobuf:"bytes,2,opt,name=leaf,proto3" json:"leaf,omitempty"`
    ChargeTo *ChargeTo `protobuf:"bytes,3,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*AddSequencedLeafRequest) Descriptor Uses

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

Deprecated: Use AddSequencedLeafRequest.ProtoReflect.Descriptor instead.

func (*AddSequencedLeafRequest) GetChargeTo Uses

func (x *AddSequencedLeafRequest) GetChargeTo() *ChargeTo

func (*AddSequencedLeafRequest) GetLeaf Uses

func (x *AddSequencedLeafRequest) GetLeaf() *LogLeaf

func (*AddSequencedLeafRequest) GetLogId Uses

func (x *AddSequencedLeafRequest) GetLogId() int64

func (*AddSequencedLeafRequest) ProtoMessage Uses

func (*AddSequencedLeafRequest) ProtoMessage()

func (*AddSequencedLeafRequest) ProtoReflect Uses

func (x *AddSequencedLeafRequest) ProtoReflect() protoreflect.Message

func (*AddSequencedLeafRequest) Reset Uses

func (x *AddSequencedLeafRequest) Reset()

func (*AddSequencedLeafRequest) String Uses

func (x *AddSequencedLeafRequest) String() string

type AddSequencedLeafResponse Uses

type AddSequencedLeafResponse struct {
    Result *QueuedLogLeaf `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
    // contains filtered or unexported fields
}

func (*AddSequencedLeafResponse) Descriptor Uses

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

Deprecated: Use AddSequencedLeafResponse.ProtoReflect.Descriptor instead.

func (*AddSequencedLeafResponse) GetResult Uses

func (x *AddSequencedLeafResponse) GetResult() *QueuedLogLeaf

func (*AddSequencedLeafResponse) ProtoMessage Uses

func (*AddSequencedLeafResponse) ProtoMessage()

func (*AddSequencedLeafResponse) ProtoReflect Uses

func (x *AddSequencedLeafResponse) ProtoReflect() protoreflect.Message

func (*AddSequencedLeafResponse) Reset Uses

func (x *AddSequencedLeafResponse) Reset()

func (*AddSequencedLeafResponse) String Uses

func (x *AddSequencedLeafResponse) String() string

type AddSequencedLeavesRequest Uses

type AddSequencedLeavesRequest struct {
    LogId    int64      `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    Leaves   []*LogLeaf `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
    ChargeTo *ChargeTo  `protobuf:"bytes,4,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*AddSequencedLeavesRequest) Descriptor Uses

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

Deprecated: Use AddSequencedLeavesRequest.ProtoReflect.Descriptor instead.

func (*AddSequencedLeavesRequest) GetChargeTo Uses

func (x *AddSequencedLeavesRequest) GetChargeTo() *ChargeTo

func (*AddSequencedLeavesRequest) GetLeaves Uses

func (x *AddSequencedLeavesRequest) GetLeaves() []*LogLeaf

func (*AddSequencedLeavesRequest) GetLogId Uses

func (x *AddSequencedLeavesRequest) GetLogId() int64

func (*AddSequencedLeavesRequest) ProtoMessage Uses

func (*AddSequencedLeavesRequest) ProtoMessage()

func (*AddSequencedLeavesRequest) ProtoReflect Uses

func (x *AddSequencedLeavesRequest) ProtoReflect() protoreflect.Message

func (*AddSequencedLeavesRequest) Reset Uses

func (x *AddSequencedLeavesRequest) Reset()

func (*AddSequencedLeavesRequest) String Uses

func (x *AddSequencedLeavesRequest) String() string

type AddSequencedLeavesResponse Uses

type AddSequencedLeavesResponse struct {

    // Same number and order as in the corresponding request.
    Results []*QueuedLogLeaf `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
    // contains filtered or unexported fields
}

func (*AddSequencedLeavesResponse) Descriptor Uses

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

Deprecated: Use AddSequencedLeavesResponse.ProtoReflect.Descriptor instead.

func (*AddSequencedLeavesResponse) GetResults Uses

func (x *AddSequencedLeavesResponse) GetResults() []*QueuedLogLeaf

func (*AddSequencedLeavesResponse) ProtoMessage Uses

func (*AddSequencedLeavesResponse) ProtoMessage()

func (*AddSequencedLeavesResponse) ProtoReflect Uses

func (x *AddSequencedLeavesResponse) ProtoReflect() protoreflect.Message

func (*AddSequencedLeavesResponse) Reset Uses

func (x *AddSequencedLeavesResponse) Reset()

func (*AddSequencedLeavesResponse) String Uses

func (x *AddSequencedLeavesResponse) String() string

type ChargeTo Uses

type ChargeTo struct {

    // user is a list of personality-defined strings.
    // Trillian will treat them as /User/%{user}/... keys when checking and
    // charging quota.
    // If one or more of the specified users has insufficient quota, the
    // request will be denied.
    //
    // As an example, a Certificate Transparency frontend might set the following
    // user strings when sending a QueueLeaves request to the Trillian log:
    //   - The requesting IP address.
    //     This would limit the number of requests per IP.
    //   - The "intermediate-<hash>" for each of the intermediate certificates in
    //     the submitted chain.
    //     This would have the effect of limiting the rate of submissions under
    //     a given intermediate/root.
    User []string `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
    // contains filtered or unexported fields
}

ChargeTo describes the user(s) associated with the request whose quota should be checked and charged.

func (*ChargeTo) Descriptor Uses

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

Deprecated: Use ChargeTo.ProtoReflect.Descriptor instead.

func (*ChargeTo) GetUser Uses

func (x *ChargeTo) GetUser() []string

func (*ChargeTo) ProtoMessage Uses

func (*ChargeTo) ProtoMessage()

func (*ChargeTo) ProtoReflect Uses

func (x *ChargeTo) ProtoReflect() protoreflect.Message

func (*ChargeTo) Reset Uses

func (x *ChargeTo) Reset()

func (*ChargeTo) String Uses

func (x *ChargeTo) String() string

type CreateTreeRequest Uses

type CreateTreeRequest struct {

    // Tree to be created. See Tree and CreateTree for more details.
    Tree *Tree `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree,omitempty"`
    // Describes how the tree's private key should be generated.
    // Only needs to be set if tree.private_key is not set.
    KeySpec *keyspb.Specification `protobuf:"bytes,2,opt,name=key_spec,json=keySpec,proto3" json:"key_spec,omitempty"`
    // contains filtered or unexported fields
}

CreateTree request.

func (*CreateTreeRequest) Descriptor Uses

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

Deprecated: Use CreateTreeRequest.ProtoReflect.Descriptor instead.

func (*CreateTreeRequest) GetKeySpec Uses

func (x *CreateTreeRequest) GetKeySpec() *keyspb.Specification

func (*CreateTreeRequest) GetTree Uses

func (x *CreateTreeRequest) GetTree() *Tree

func (*CreateTreeRequest) ProtoMessage Uses

func (*CreateTreeRequest) ProtoMessage()

func (*CreateTreeRequest) ProtoReflect Uses

func (x *CreateTreeRequest) ProtoReflect() protoreflect.Message

func (*CreateTreeRequest) Reset Uses

func (x *CreateTreeRequest) Reset()

func (*CreateTreeRequest) String Uses

func (x *CreateTreeRequest) String() string

type DeleteTreeRequest Uses

type DeleteTreeRequest struct {

    // ID of the tree to delete.
    TreeId int64 `protobuf:"varint,1,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"`
    // contains filtered or unexported fields
}

DeleteTree request.

func (*DeleteTreeRequest) Descriptor Uses

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

Deprecated: Use DeleteTreeRequest.ProtoReflect.Descriptor instead.

func (*DeleteTreeRequest) GetTreeId Uses

func (x *DeleteTreeRequest) GetTreeId() int64

func (*DeleteTreeRequest) ProtoMessage Uses

func (*DeleteTreeRequest) ProtoMessage()

func (*DeleteTreeRequest) ProtoReflect Uses

func (x *DeleteTreeRequest) ProtoReflect() protoreflect.Message

func (*DeleteTreeRequest) Reset Uses

func (x *DeleteTreeRequest) Reset()

func (*DeleteTreeRequest) String Uses

func (x *DeleteTreeRequest) String() string

type GetConsistencyProofRequest Uses

type GetConsistencyProofRequest struct {
    LogId          int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    FirstTreeSize  int64     `protobuf:"varint,2,opt,name=first_tree_size,json=firstTreeSize,proto3" json:"first_tree_size,omitempty"`
    SecondTreeSize int64     `protobuf:"varint,3,opt,name=second_tree_size,json=secondTreeSize,proto3" json:"second_tree_size,omitempty"`
    ChargeTo       *ChargeTo `protobuf:"bytes,4,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*GetConsistencyProofRequest) Descriptor Uses

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

Deprecated: Use GetConsistencyProofRequest.ProtoReflect.Descriptor instead.

func (*GetConsistencyProofRequest) GetChargeTo Uses

func (x *GetConsistencyProofRequest) GetChargeTo() *ChargeTo

func (*GetConsistencyProofRequest) GetFirstTreeSize Uses

func (x *GetConsistencyProofRequest) GetFirstTreeSize() int64

func (*GetConsistencyProofRequest) GetLogId Uses

func (x *GetConsistencyProofRequest) GetLogId() int64

func (*GetConsistencyProofRequest) GetSecondTreeSize Uses

func (x *GetConsistencyProofRequest) GetSecondTreeSize() int64

func (*GetConsistencyProofRequest) ProtoMessage Uses

func (*GetConsistencyProofRequest) ProtoMessage()

func (*GetConsistencyProofRequest) ProtoReflect Uses

func (x *GetConsistencyProofRequest) ProtoReflect() protoreflect.Message

func (*GetConsistencyProofRequest) Reset Uses

func (x *GetConsistencyProofRequest) Reset()

func (*GetConsistencyProofRequest) String Uses

func (x *GetConsistencyProofRequest) String() string

type GetConsistencyProofResponse Uses

type GetConsistencyProofResponse struct {

    // The proof field may be empty if the requested tree_size was larger
    // than that available at the server (e.g. because there is skew between
    // server instances, and an earlier client request was processed by a
    // more up-to-date instance).  In this case, the signed_log_root
    // field will indicate the tree size that the server is aware of, and
    // the proof field will be empty.
    Proof         *Proof         `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
    SignedLogRoot *SignedLogRoot `protobuf:"bytes,3,opt,name=signed_log_root,json=signedLogRoot,proto3" json:"signed_log_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetConsistencyProofResponse) Descriptor Uses

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

Deprecated: Use GetConsistencyProofResponse.ProtoReflect.Descriptor instead.

func (*GetConsistencyProofResponse) GetProof Uses

func (x *GetConsistencyProofResponse) GetProof() *Proof

func (*GetConsistencyProofResponse) GetSignedLogRoot Uses

func (x *GetConsistencyProofResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetConsistencyProofResponse) ProtoMessage Uses

func (*GetConsistencyProofResponse) ProtoMessage()

func (*GetConsistencyProofResponse) ProtoReflect Uses

func (x *GetConsistencyProofResponse) ProtoReflect() protoreflect.Message

func (*GetConsistencyProofResponse) Reset Uses

func (x *GetConsistencyProofResponse) Reset()

func (*GetConsistencyProofResponse) String Uses

func (x *GetConsistencyProofResponse) String() string

type GetEntryAndProofRequest Uses

type GetEntryAndProofRequest struct {
    LogId     int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    LeafIndex int64     `protobuf:"varint,2,opt,name=leaf_index,json=leafIndex,proto3" json:"leaf_index,omitempty"`
    TreeSize  int64     `protobuf:"varint,3,opt,name=tree_size,json=treeSize,proto3" json:"tree_size,omitempty"`
    ChargeTo  *ChargeTo `protobuf:"bytes,4,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*GetEntryAndProofRequest) Descriptor Uses

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

Deprecated: Use GetEntryAndProofRequest.ProtoReflect.Descriptor instead.

func (*GetEntryAndProofRequest) GetChargeTo Uses

func (x *GetEntryAndProofRequest) GetChargeTo() *ChargeTo

func (*GetEntryAndProofRequest) GetLeafIndex Uses

func (x *GetEntryAndProofRequest) GetLeafIndex() int64

func (*GetEntryAndProofRequest) GetLogId Uses

func (x *GetEntryAndProofRequest) GetLogId() int64

func (*GetEntryAndProofRequest) GetTreeSize Uses

func (x *GetEntryAndProofRequest) GetTreeSize() int64

func (*GetEntryAndProofRequest) ProtoMessage Uses

func (*GetEntryAndProofRequest) ProtoMessage()

func (*GetEntryAndProofRequest) ProtoReflect Uses

func (x *GetEntryAndProofRequest) ProtoReflect() protoreflect.Message

func (*GetEntryAndProofRequest) Reset Uses

func (x *GetEntryAndProofRequest) Reset()

func (*GetEntryAndProofRequest) String Uses

func (x *GetEntryAndProofRequest) String() string

type GetEntryAndProofResponse Uses

type GetEntryAndProofResponse struct {
    Proof         *Proof         `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
    Leaf          *LogLeaf       `protobuf:"bytes,3,opt,name=leaf,proto3" json:"leaf,omitempty"`
    SignedLogRoot *SignedLogRoot `protobuf:"bytes,4,opt,name=signed_log_root,json=signedLogRoot,proto3" json:"signed_log_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetEntryAndProofResponse) Descriptor Uses

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

Deprecated: Use GetEntryAndProofResponse.ProtoReflect.Descriptor instead.

func (*GetEntryAndProofResponse) GetLeaf Uses

func (x *GetEntryAndProofResponse) GetLeaf() *LogLeaf

func (*GetEntryAndProofResponse) GetProof Uses

func (x *GetEntryAndProofResponse) GetProof() *Proof

func (*GetEntryAndProofResponse) GetSignedLogRoot Uses

func (x *GetEntryAndProofResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetEntryAndProofResponse) ProtoMessage Uses

func (*GetEntryAndProofResponse) ProtoMessage()

func (*GetEntryAndProofResponse) ProtoReflect Uses

func (x *GetEntryAndProofResponse) ProtoReflect() protoreflect.Message

func (*GetEntryAndProofResponse) Reset Uses

func (x *GetEntryAndProofResponse) Reset()

func (*GetEntryAndProofResponse) String Uses

func (x *GetEntryAndProofResponse) String() string

type GetInclusionProofByHashRequest Uses

type GetInclusionProofByHashRequest struct {
    LogId int64 `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    // The leaf hash field provides the Merkle tree hash of the leaf entry
    // to be retrieved.
    LeafHash        []byte    `protobuf:"bytes,2,opt,name=leaf_hash,json=leafHash,proto3" json:"leaf_hash,omitempty"`
    TreeSize        int64     `protobuf:"varint,3,opt,name=tree_size,json=treeSize,proto3" json:"tree_size,omitempty"`
    OrderBySequence bool      `protobuf:"varint,4,opt,name=order_by_sequence,json=orderBySequence,proto3" json:"order_by_sequence,omitempty"`
    ChargeTo        *ChargeTo `protobuf:"bytes,5,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*GetInclusionProofByHashRequest) Descriptor Uses

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

Deprecated: Use GetInclusionProofByHashRequest.ProtoReflect.Descriptor instead.

func (*GetInclusionProofByHashRequest) GetChargeTo Uses

func (x *GetInclusionProofByHashRequest) GetChargeTo() *ChargeTo

func (*GetInclusionProofByHashRequest) GetLeafHash Uses

func (x *GetInclusionProofByHashRequest) GetLeafHash() []byte

func (*GetInclusionProofByHashRequest) GetLogId Uses

func (x *GetInclusionProofByHashRequest) GetLogId() int64

func (*GetInclusionProofByHashRequest) GetOrderBySequence Uses

func (x *GetInclusionProofByHashRequest) GetOrderBySequence() bool

func (*GetInclusionProofByHashRequest) GetTreeSize Uses

func (x *GetInclusionProofByHashRequest) GetTreeSize() int64

func (*GetInclusionProofByHashRequest) ProtoMessage Uses

func (*GetInclusionProofByHashRequest) ProtoMessage()

func (*GetInclusionProofByHashRequest) ProtoReflect Uses

func (x *GetInclusionProofByHashRequest) ProtoReflect() protoreflect.Message

func (*GetInclusionProofByHashRequest) Reset Uses

func (x *GetInclusionProofByHashRequest) Reset()

func (*GetInclusionProofByHashRequest) String Uses

func (x *GetInclusionProofByHashRequest) String() string

type GetInclusionProofByHashResponse Uses

type GetInclusionProofByHashResponse struct {

    // Logs can potentially contain leaves with duplicate hashes so it's possible
    // for this to return multiple proofs.  If the leaf index for a particular
    // instance of the requested Merkle leaf hash is beyond the requested tree
    // size, the corresponding proof entry will be missing.
    Proof         []*Proof       `protobuf:"bytes,2,rep,name=proof,proto3" json:"proof,omitempty"`
    SignedLogRoot *SignedLogRoot `protobuf:"bytes,3,opt,name=signed_log_root,json=signedLogRoot,proto3" json:"signed_log_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetInclusionProofByHashResponse) Descriptor Uses

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

Deprecated: Use GetInclusionProofByHashResponse.ProtoReflect.Descriptor instead.

func (*GetInclusionProofByHashResponse) GetProof Uses

func (x *GetInclusionProofByHashResponse) GetProof() []*Proof

func (*GetInclusionProofByHashResponse) GetSignedLogRoot Uses

func (x *GetInclusionProofByHashResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetInclusionProofByHashResponse) ProtoMessage Uses

func (*GetInclusionProofByHashResponse) ProtoMessage()

func (*GetInclusionProofByHashResponse) ProtoReflect Uses

func (x *GetInclusionProofByHashResponse) ProtoReflect() protoreflect.Message

func (*GetInclusionProofByHashResponse) Reset Uses

func (x *GetInclusionProofByHashResponse) Reset()

func (*GetInclusionProofByHashResponse) String Uses

func (x *GetInclusionProofByHashResponse) String() string

type GetInclusionProofRequest Uses

type GetInclusionProofRequest struct {
    LogId     int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    LeafIndex int64     `protobuf:"varint,2,opt,name=leaf_index,json=leafIndex,proto3" json:"leaf_index,omitempty"`
    TreeSize  int64     `protobuf:"varint,3,opt,name=tree_size,json=treeSize,proto3" json:"tree_size,omitempty"`
    ChargeTo  *ChargeTo `protobuf:"bytes,4,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*GetInclusionProofRequest) Descriptor Uses

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

Deprecated: Use GetInclusionProofRequest.ProtoReflect.Descriptor instead.

func (*GetInclusionProofRequest) GetChargeTo Uses

func (x *GetInclusionProofRequest) GetChargeTo() *ChargeTo

func (*GetInclusionProofRequest) GetLeafIndex Uses

func (x *GetInclusionProofRequest) GetLeafIndex() int64

func (*GetInclusionProofRequest) GetLogId Uses

func (x *GetInclusionProofRequest) GetLogId() int64

func (*GetInclusionProofRequest) GetTreeSize Uses

func (x *GetInclusionProofRequest) GetTreeSize() int64

func (*GetInclusionProofRequest) ProtoMessage Uses

func (*GetInclusionProofRequest) ProtoMessage()

func (*GetInclusionProofRequest) ProtoReflect Uses

func (x *GetInclusionProofRequest) ProtoReflect() protoreflect.Message

func (*GetInclusionProofRequest) Reset Uses

func (x *GetInclusionProofRequest) Reset()

func (*GetInclusionProofRequest) String Uses

func (x *GetInclusionProofRequest) String() string

type GetInclusionProofResponse Uses

type GetInclusionProofResponse struct {

    // The proof field may be empty if the requested tree_size was larger
    // than that available at the server (e.g. because there is skew between
    // server instances, and an earlier client request was processed by a
    // more up-to-date instance).  In this case, the signed_log_root
    // field will indicate the tree size that the server is aware of, and
    // the proof field will be empty.
    Proof         *Proof         `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
    SignedLogRoot *SignedLogRoot `protobuf:"bytes,3,opt,name=signed_log_root,json=signedLogRoot,proto3" json:"signed_log_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetInclusionProofResponse) Descriptor Uses

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

Deprecated: Use GetInclusionProofResponse.ProtoReflect.Descriptor instead.

func (*GetInclusionProofResponse) GetProof Uses

func (x *GetInclusionProofResponse) GetProof() *Proof

func (*GetInclusionProofResponse) GetSignedLogRoot Uses

func (x *GetInclusionProofResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetInclusionProofResponse) ProtoMessage Uses

func (*GetInclusionProofResponse) ProtoMessage()

func (*GetInclusionProofResponse) ProtoReflect Uses

func (x *GetInclusionProofResponse) ProtoReflect() protoreflect.Message

func (*GetInclusionProofResponse) Reset Uses

func (x *GetInclusionProofResponse) Reset()

func (*GetInclusionProofResponse) String Uses

func (x *GetInclusionProofResponse) String() string

type GetLastInRangeByRevisionRequest Uses

type GetLastInRangeByRevisionRequest struct {
    MapId    int64  `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    Revision int64  `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"`
    Prefix   []byte `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
    // prefix_bits is the number of bits to include, starting from the left, or
    // most significant bit (MSB).
    PrefixBits int32 `protobuf:"varint,4,opt,name=prefix_bits,json=prefixBits,proto3" json:"prefix_bits,omitempty"`
    // contains filtered or unexported fields
}

GetLastInRangeByRevisionRequest specifies a range in the map at a revision. The range is defined as the entire subtree below a particular point in the Merkle tree. Another way of saying this is that the range matches all leaves that share a common prefix of `prefix_bits` with `prefix`.

func (*GetLastInRangeByRevisionRequest) Descriptor Uses

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

Deprecated: Use GetLastInRangeByRevisionRequest.ProtoReflect.Descriptor instead.

func (*GetLastInRangeByRevisionRequest) GetMapId Uses

func (x *GetLastInRangeByRevisionRequest) GetMapId() int64

func (*GetLastInRangeByRevisionRequest) GetPrefix Uses

func (x *GetLastInRangeByRevisionRequest) GetPrefix() []byte

func (*GetLastInRangeByRevisionRequest) GetPrefixBits Uses

func (x *GetLastInRangeByRevisionRequest) GetPrefixBits() int32

func (*GetLastInRangeByRevisionRequest) GetRevision Uses

func (x *GetLastInRangeByRevisionRequest) GetRevision() int64

func (*GetLastInRangeByRevisionRequest) ProtoMessage Uses

func (*GetLastInRangeByRevisionRequest) ProtoMessage()

func (*GetLastInRangeByRevisionRequest) ProtoReflect Uses

func (x *GetLastInRangeByRevisionRequest) ProtoReflect() protoreflect.Message

func (*GetLastInRangeByRevisionRequest) Reset Uses

func (x *GetLastInRangeByRevisionRequest) Reset()

func (*GetLastInRangeByRevisionRequest) String Uses

func (x *GetLastInRangeByRevisionRequest) String() string

type GetLatestSignedLogRootRequest Uses

type GetLatestSignedLogRootRequest struct {
    LogId    int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    ChargeTo *ChargeTo `protobuf:"bytes,2,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // If first_tree_size is non-zero, the response will include a consistency
    // proof between first_tree_size and the new tree size (if not smaller).
    FirstTreeSize int64 `protobuf:"varint,3,opt,name=first_tree_size,json=firstTreeSize,proto3" json:"first_tree_size,omitempty"`
    // contains filtered or unexported fields
}

func (*GetLatestSignedLogRootRequest) Descriptor Uses

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

Deprecated: Use GetLatestSignedLogRootRequest.ProtoReflect.Descriptor instead.

func (*GetLatestSignedLogRootRequest) GetChargeTo Uses

func (x *GetLatestSignedLogRootRequest) GetChargeTo() *ChargeTo

func (*GetLatestSignedLogRootRequest) GetFirstTreeSize Uses

func (x *GetLatestSignedLogRootRequest) GetFirstTreeSize() int64

func (*GetLatestSignedLogRootRequest) GetLogId Uses

func (x *GetLatestSignedLogRootRequest) GetLogId() int64

func (*GetLatestSignedLogRootRequest) ProtoMessage Uses

func (*GetLatestSignedLogRootRequest) ProtoMessage()

func (*GetLatestSignedLogRootRequest) ProtoReflect Uses

func (x *GetLatestSignedLogRootRequest) ProtoReflect() protoreflect.Message

func (*GetLatestSignedLogRootRequest) Reset Uses

func (x *GetLatestSignedLogRootRequest) Reset()

func (*GetLatestSignedLogRootRequest) String Uses

func (x *GetLatestSignedLogRootRequest) String() string

type GetLatestSignedLogRootResponse Uses

type GetLatestSignedLogRootResponse struct {
    SignedLogRoot *SignedLogRoot `protobuf:"bytes,2,opt,name=signed_log_root,json=signedLogRoot,proto3" json:"signed_log_root,omitempty"`
    // proof is filled in with a consistency proof if first_tree_size in
    // GetLatestSignedLogRootRequest is non-zero (and within the tree size
    // available at the server).
    Proof *Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
    // contains filtered or unexported fields
}

func (*GetLatestSignedLogRootResponse) Descriptor Uses

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

Deprecated: Use GetLatestSignedLogRootResponse.ProtoReflect.Descriptor instead.

func (*GetLatestSignedLogRootResponse) GetProof Uses

func (x *GetLatestSignedLogRootResponse) GetProof() *Proof

func (*GetLatestSignedLogRootResponse) GetSignedLogRoot Uses

func (x *GetLatestSignedLogRootResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetLatestSignedLogRootResponse) ProtoMessage Uses

func (*GetLatestSignedLogRootResponse) ProtoMessage()

func (*GetLatestSignedLogRootResponse) ProtoReflect Uses

func (x *GetLatestSignedLogRootResponse) ProtoReflect() protoreflect.Message

func (*GetLatestSignedLogRootResponse) Reset Uses

func (x *GetLatestSignedLogRootResponse) Reset()

func (*GetLatestSignedLogRootResponse) String Uses

func (x *GetLatestSignedLogRootResponse) String() string

type GetLeavesByHashRequest Uses

type GetLeavesByHashRequest struct {
    LogId int64 `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    // The Merkle leaf hash of the leaf to be retrieved.
    LeafHash [][]byte `protobuf:"bytes,2,rep,name=leaf_hash,json=leafHash,proto3" json:"leaf_hash,omitempty"`
    // If order_by_sequence is set then leaves will be returned in order of ascending
    // leaf index.
    OrderBySequence bool      `protobuf:"varint,3,opt,name=order_by_sequence,json=orderBySequence,proto3" json:"order_by_sequence,omitempty"`
    ChargeTo        *ChargeTo `protobuf:"bytes,5,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*GetLeavesByHashRequest) Descriptor Uses

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

Deprecated: Use GetLeavesByHashRequest.ProtoReflect.Descriptor instead.

func (*GetLeavesByHashRequest) GetChargeTo Uses

func (x *GetLeavesByHashRequest) GetChargeTo() *ChargeTo

func (*GetLeavesByHashRequest) GetLeafHash Uses

func (x *GetLeavesByHashRequest) GetLeafHash() [][]byte

func (*GetLeavesByHashRequest) GetLogId Uses

func (x *GetLeavesByHashRequest) GetLogId() int64

func (*GetLeavesByHashRequest) GetOrderBySequence Uses

func (x *GetLeavesByHashRequest) GetOrderBySequence() bool

func (*GetLeavesByHashRequest) ProtoMessage Uses

func (*GetLeavesByHashRequest) ProtoMessage()

func (*GetLeavesByHashRequest) ProtoReflect Uses

func (x *GetLeavesByHashRequest) ProtoReflect() protoreflect.Message

func (*GetLeavesByHashRequest) Reset Uses

func (x *GetLeavesByHashRequest) Reset()

func (*GetLeavesByHashRequest) String Uses

func (x *GetLeavesByHashRequest) String() string

type GetLeavesByHashResponse Uses

type GetLeavesByHashResponse struct {
    Leaves        []*LogLeaf     `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
    SignedLogRoot *SignedLogRoot `protobuf:"bytes,3,opt,name=signed_log_root,json=signedLogRoot,proto3" json:"signed_log_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetLeavesByHashResponse) Descriptor Uses

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

Deprecated: Use GetLeavesByHashResponse.ProtoReflect.Descriptor instead.

func (*GetLeavesByHashResponse) GetLeaves Uses

func (x *GetLeavesByHashResponse) GetLeaves() []*LogLeaf

func (*GetLeavesByHashResponse) GetSignedLogRoot Uses

func (x *GetLeavesByHashResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetLeavesByHashResponse) ProtoMessage Uses

func (*GetLeavesByHashResponse) ProtoMessage()

func (*GetLeavesByHashResponse) ProtoReflect Uses

func (x *GetLeavesByHashResponse) ProtoReflect() protoreflect.Message

func (*GetLeavesByHashResponse) Reset Uses

func (x *GetLeavesByHashResponse) Reset()

func (*GetLeavesByHashResponse) String Uses

func (x *GetLeavesByHashResponse) String() string

type GetLeavesByIndexRequest Uses

type GetLeavesByIndexRequest struct {
    LogId     int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    LeafIndex []int64   `protobuf:"varint,2,rep,packed,name=leaf_index,json=leafIndex,proto3" json:"leaf_index,omitempty"`
    ChargeTo  *ChargeTo `protobuf:"bytes,5,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*GetLeavesByIndexRequest) Descriptor Uses

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

Deprecated: Use GetLeavesByIndexRequest.ProtoReflect.Descriptor instead.

func (*GetLeavesByIndexRequest) GetChargeTo Uses

func (x *GetLeavesByIndexRequest) GetChargeTo() *ChargeTo

func (*GetLeavesByIndexRequest) GetLeafIndex Uses

func (x *GetLeavesByIndexRequest) GetLeafIndex() []int64

func (*GetLeavesByIndexRequest) GetLogId Uses

func (x *GetLeavesByIndexRequest) GetLogId() int64

func (*GetLeavesByIndexRequest) ProtoMessage Uses

func (*GetLeavesByIndexRequest) ProtoMessage()

func (*GetLeavesByIndexRequest) ProtoReflect Uses

func (x *GetLeavesByIndexRequest) ProtoReflect() protoreflect.Message

func (*GetLeavesByIndexRequest) Reset Uses

func (x *GetLeavesByIndexRequest) Reset()

func (*GetLeavesByIndexRequest) String Uses

func (x *GetLeavesByIndexRequest) String() string

type GetLeavesByIndexResponse Uses

type GetLeavesByIndexResponse struct {

    // TODO(gbelvin): Response syntax does not allow for some requested leaves to be available, and some not (but using QueuedLogLeaf might)
    Leaves        []*LogLeaf     `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
    SignedLogRoot *SignedLogRoot `protobuf:"bytes,3,opt,name=signed_log_root,json=signedLogRoot,proto3" json:"signed_log_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetLeavesByIndexResponse) Descriptor Uses

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

Deprecated: Use GetLeavesByIndexResponse.ProtoReflect.Descriptor instead.

func (*GetLeavesByIndexResponse) GetLeaves Uses

func (x *GetLeavesByIndexResponse) GetLeaves() []*LogLeaf

func (*GetLeavesByIndexResponse) GetSignedLogRoot Uses

func (x *GetLeavesByIndexResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetLeavesByIndexResponse) ProtoMessage Uses

func (*GetLeavesByIndexResponse) ProtoMessage()

func (*GetLeavesByIndexResponse) ProtoReflect Uses

func (x *GetLeavesByIndexResponse) ProtoReflect() protoreflect.Message

func (*GetLeavesByIndexResponse) Reset Uses

func (x *GetLeavesByIndexResponse) Reset()

func (*GetLeavesByIndexResponse) String Uses

func (x *GetLeavesByIndexResponse) String() string

type GetLeavesByRangeRequest Uses

type GetLeavesByRangeRequest struct {
    LogId      int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    StartIndex int64     `protobuf:"varint,2,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"`
    Count      int64     `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
    ChargeTo   *ChargeTo `protobuf:"bytes,4,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*GetLeavesByRangeRequest) Descriptor Uses

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

Deprecated: Use GetLeavesByRangeRequest.ProtoReflect.Descriptor instead.

func (*GetLeavesByRangeRequest) GetChargeTo Uses

func (x *GetLeavesByRangeRequest) GetChargeTo() *ChargeTo

func (*GetLeavesByRangeRequest) GetCount Uses

func (x *GetLeavesByRangeRequest) GetCount() int64

func (*GetLeavesByRangeRequest) GetLogId Uses

func (x *GetLeavesByRangeRequest) GetLogId() int64

func (*GetLeavesByRangeRequest) GetStartIndex Uses

func (x *GetLeavesByRangeRequest) GetStartIndex() int64

func (*GetLeavesByRangeRequest) ProtoMessage Uses

func (*GetLeavesByRangeRequest) ProtoMessage()

func (*GetLeavesByRangeRequest) ProtoReflect Uses

func (x *GetLeavesByRangeRequest) ProtoReflect() protoreflect.Message

func (*GetLeavesByRangeRequest) Reset Uses

func (x *GetLeavesByRangeRequest) Reset()

func (*GetLeavesByRangeRequest) String Uses

func (x *GetLeavesByRangeRequest) String() string

type GetLeavesByRangeResponse Uses

type GetLeavesByRangeResponse struct {

    // Returned log leaves starting from the `start_index` of the request, in
    // order. There may be fewer than `request.count` leaves returned, if the
    // requested range extended beyond the size of the tree or if the server opted
    // to return fewer leaves than requested.
    Leaves        []*LogLeaf     `protobuf:"bytes,1,rep,name=leaves,proto3" json:"leaves,omitempty"`
    SignedLogRoot *SignedLogRoot `protobuf:"bytes,2,opt,name=signed_log_root,json=signedLogRoot,proto3" json:"signed_log_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetLeavesByRangeResponse) Descriptor Uses

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

Deprecated: Use GetLeavesByRangeResponse.ProtoReflect.Descriptor instead.

func (*GetLeavesByRangeResponse) GetLeaves Uses

func (x *GetLeavesByRangeResponse) GetLeaves() []*LogLeaf

func (*GetLeavesByRangeResponse) GetSignedLogRoot Uses

func (x *GetLeavesByRangeResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetLeavesByRangeResponse) ProtoMessage Uses

func (*GetLeavesByRangeResponse) ProtoMessage()

func (*GetLeavesByRangeResponse) ProtoReflect Uses

func (x *GetLeavesByRangeResponse) ProtoReflect() protoreflect.Message

func (*GetLeavesByRangeResponse) Reset Uses

func (x *GetLeavesByRangeResponse) Reset()

func (*GetLeavesByRangeResponse) String Uses

func (x *GetLeavesByRangeResponse) String() string

type GetMapLeafByRevisionRequest Uses

type GetMapLeafByRevisionRequest struct {
    MapId    int64  `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    Index    []byte `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"`
    Revision int64  `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
    // contains filtered or unexported fields
}

func (*GetMapLeafByRevisionRequest) Descriptor Uses

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

Deprecated: Use GetMapLeafByRevisionRequest.ProtoReflect.Descriptor instead.

func (*GetMapLeafByRevisionRequest) GetIndex Uses

func (x *GetMapLeafByRevisionRequest) GetIndex() []byte

func (*GetMapLeafByRevisionRequest) GetMapId Uses

func (x *GetMapLeafByRevisionRequest) GetMapId() int64

func (*GetMapLeafByRevisionRequest) GetRevision Uses

func (x *GetMapLeafByRevisionRequest) GetRevision() int64

func (*GetMapLeafByRevisionRequest) ProtoMessage Uses

func (*GetMapLeafByRevisionRequest) ProtoMessage()

func (*GetMapLeafByRevisionRequest) ProtoReflect Uses

func (x *GetMapLeafByRevisionRequest) ProtoReflect() protoreflect.Message

func (*GetMapLeafByRevisionRequest) Reset Uses

func (x *GetMapLeafByRevisionRequest) Reset()

func (*GetMapLeafByRevisionRequest) String Uses

func (x *GetMapLeafByRevisionRequest) String() string

type GetMapLeafRequest Uses

type GetMapLeafRequest struct {
    MapId int64  `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    Index []byte `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"`
    // contains filtered or unexported fields
}

func (*GetMapLeafRequest) Descriptor Uses

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

Deprecated: Use GetMapLeafRequest.ProtoReflect.Descriptor instead.

func (*GetMapLeafRequest) GetIndex Uses

func (x *GetMapLeafRequest) GetIndex() []byte

func (*GetMapLeafRequest) GetMapId Uses

func (x *GetMapLeafRequest) GetMapId() int64

func (*GetMapLeafRequest) ProtoMessage Uses

func (*GetMapLeafRequest) ProtoMessage()

func (*GetMapLeafRequest) ProtoReflect Uses

func (x *GetMapLeafRequest) ProtoReflect() protoreflect.Message

func (*GetMapLeafRequest) Reset Uses

func (x *GetMapLeafRequest) Reset()

func (*GetMapLeafRequest) String Uses

func (x *GetMapLeafRequest) String() string

type GetMapLeafResponse Uses

type GetMapLeafResponse struct {
    MapLeafInclusion *MapLeafInclusion `protobuf:"bytes,1,opt,name=map_leaf_inclusion,json=mapLeafInclusion,proto3" json:"map_leaf_inclusion,omitempty"`
    MapRoot          *SignedMapRoot    `protobuf:"bytes,2,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetMapLeafResponse) Descriptor Uses

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

Deprecated: Use GetMapLeafResponse.ProtoReflect.Descriptor instead.

func (*GetMapLeafResponse) GetMapLeafInclusion Uses

func (x *GetMapLeafResponse) GetMapLeafInclusion() *MapLeafInclusion

func (*GetMapLeafResponse) GetMapRoot Uses

func (x *GetMapLeafResponse) GetMapRoot() *SignedMapRoot

func (*GetMapLeafResponse) ProtoMessage Uses

func (*GetMapLeafResponse) ProtoMessage()

func (*GetMapLeafResponse) ProtoReflect Uses

func (x *GetMapLeafResponse) ProtoReflect() protoreflect.Message

func (*GetMapLeafResponse) Reset Uses

func (x *GetMapLeafResponse) Reset()

func (*GetMapLeafResponse) String Uses

func (x *GetMapLeafResponse) String() string

type GetMapLeavesByRevisionRequest Uses

type GetMapLeavesByRevisionRequest struct {
    MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    // index(es) to query.  It is an error to request the same index more than once.
    Index [][]byte `protobuf:"bytes,2,rep,name=index,proto3" json:"index,omitempty"`
    // revision >= 0.
    Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
    // contains filtered or unexported fields
}

This message replaces the current implementation of GetMapLeavesRequest with the difference that revision must be >=0.

func (*GetMapLeavesByRevisionRequest) Descriptor Uses

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

Deprecated: Use GetMapLeavesByRevisionRequest.ProtoReflect.Descriptor instead.

func (*GetMapLeavesByRevisionRequest) GetIndex Uses

func (x *GetMapLeavesByRevisionRequest) GetIndex() [][]byte

func (*GetMapLeavesByRevisionRequest) GetMapId Uses

func (x *GetMapLeavesByRevisionRequest) GetMapId() int64

func (*GetMapLeavesByRevisionRequest) GetRevision Uses

func (x *GetMapLeavesByRevisionRequest) GetRevision() int64

func (*GetMapLeavesByRevisionRequest) ProtoMessage Uses

func (*GetMapLeavesByRevisionRequest) ProtoMessage()

func (*GetMapLeavesByRevisionRequest) ProtoReflect Uses

func (x *GetMapLeavesByRevisionRequest) ProtoReflect() protoreflect.Message

func (*GetMapLeavesByRevisionRequest) Reset Uses

func (x *GetMapLeavesByRevisionRequest) Reset()

func (*GetMapLeavesByRevisionRequest) String Uses

func (x *GetMapLeavesByRevisionRequest) String() string

type GetMapLeavesRequest Uses

type GetMapLeavesRequest struct {
    MapId int64    `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    Index [][]byte `protobuf:"bytes,2,rep,name=index,proto3" json:"index,omitempty"`
    // contains filtered or unexported fields
}

func (*GetMapLeavesRequest) Descriptor Uses

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

Deprecated: Use GetMapLeavesRequest.ProtoReflect.Descriptor instead.

func (*GetMapLeavesRequest) GetIndex Uses

func (x *GetMapLeavesRequest) GetIndex() [][]byte

func (*GetMapLeavesRequest) GetMapId Uses

func (x *GetMapLeavesRequest) GetMapId() int64

func (*GetMapLeavesRequest) ProtoMessage Uses

func (*GetMapLeavesRequest) ProtoMessage()

func (*GetMapLeavesRequest) ProtoReflect Uses

func (x *GetMapLeavesRequest) ProtoReflect() protoreflect.Message

func (*GetMapLeavesRequest) Reset Uses

func (x *GetMapLeavesRequest) Reset()

func (*GetMapLeavesRequest) String Uses

func (x *GetMapLeavesRequest) String() string

type GetMapLeavesResponse Uses

type GetMapLeavesResponse struct {
    MapLeafInclusion []*MapLeafInclusion `protobuf:"bytes,2,rep,name=map_leaf_inclusion,json=mapLeafInclusion,proto3" json:"map_leaf_inclusion,omitempty"`
    MapRoot          *SignedMapRoot      `protobuf:"bytes,3,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetMapLeavesResponse) Descriptor Uses

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

Deprecated: Use GetMapLeavesResponse.ProtoReflect.Descriptor instead.

func (*GetMapLeavesResponse) GetMapLeafInclusion Uses

func (x *GetMapLeavesResponse) GetMapLeafInclusion() []*MapLeafInclusion

func (*GetMapLeavesResponse) GetMapRoot Uses

func (x *GetMapLeavesResponse) GetMapRoot() *SignedMapRoot

func (*GetMapLeavesResponse) ProtoMessage Uses

func (*GetMapLeavesResponse) ProtoMessage()

func (*GetMapLeavesResponse) ProtoReflect Uses

func (x *GetMapLeavesResponse) ProtoReflect() protoreflect.Message

func (*GetMapLeavesResponse) Reset Uses

func (x *GetMapLeavesResponse) Reset()

func (*GetMapLeavesResponse) String Uses

func (x *GetMapLeavesResponse) String() string

type GetSequencedLeafCountRequest Uses

type GetSequencedLeafCountRequest struct {
    LogId    int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    ChargeTo *ChargeTo `protobuf:"bytes,2,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

DO NOT USE - FOR DEBUGGING/TEST ONLY

(Use GetLatestSignedLogRoot then de-serialize the Log Root and use use the tree size field within.)

func (*GetSequencedLeafCountRequest) Descriptor Uses

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

Deprecated: Use GetSequencedLeafCountRequest.ProtoReflect.Descriptor instead.

func (*GetSequencedLeafCountRequest) GetChargeTo Uses

func (x *GetSequencedLeafCountRequest) GetChargeTo() *ChargeTo

func (*GetSequencedLeafCountRequest) GetLogId Uses

func (x *GetSequencedLeafCountRequest) GetLogId() int64

func (*GetSequencedLeafCountRequest) ProtoMessage Uses

func (*GetSequencedLeafCountRequest) ProtoMessage()

func (*GetSequencedLeafCountRequest) ProtoReflect Uses

func (x *GetSequencedLeafCountRequest) ProtoReflect() protoreflect.Message

func (*GetSequencedLeafCountRequest) Reset Uses

func (x *GetSequencedLeafCountRequest) Reset()

func (*GetSequencedLeafCountRequest) String Uses

func (x *GetSequencedLeafCountRequest) String() string

type GetSequencedLeafCountResponse Uses

type GetSequencedLeafCountResponse struct {
    LeafCount int64 `protobuf:"varint,2,opt,name=leaf_count,json=leafCount,proto3" json:"leaf_count,omitempty"`
    // contains filtered or unexported fields
}

func (*GetSequencedLeafCountResponse) Descriptor Uses

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

Deprecated: Use GetSequencedLeafCountResponse.ProtoReflect.Descriptor instead.

func (*GetSequencedLeafCountResponse) GetLeafCount Uses

func (x *GetSequencedLeafCountResponse) GetLeafCount() int64

func (*GetSequencedLeafCountResponse) ProtoMessage Uses

func (*GetSequencedLeafCountResponse) ProtoMessage()

func (*GetSequencedLeafCountResponse) ProtoReflect Uses

func (x *GetSequencedLeafCountResponse) ProtoReflect() protoreflect.Message

func (*GetSequencedLeafCountResponse) Reset Uses

func (x *GetSequencedLeafCountResponse) Reset()

func (*GetSequencedLeafCountResponse) String Uses

func (x *GetSequencedLeafCountResponse) String() string

type GetSignedMapRootByRevisionRequest Uses

type GetSignedMapRootByRevisionRequest struct {
    MapId    int64 `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"`
    // contains filtered or unexported fields
}

func (*GetSignedMapRootByRevisionRequest) Descriptor Uses

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

Deprecated: Use GetSignedMapRootByRevisionRequest.ProtoReflect.Descriptor instead.

func (*GetSignedMapRootByRevisionRequest) GetMapId Uses

func (x *GetSignedMapRootByRevisionRequest) GetMapId() int64

func (*GetSignedMapRootByRevisionRequest) GetRevision Uses

func (x *GetSignedMapRootByRevisionRequest) GetRevision() int64

func (*GetSignedMapRootByRevisionRequest) ProtoMessage Uses

func (*GetSignedMapRootByRevisionRequest) ProtoMessage()

func (*GetSignedMapRootByRevisionRequest) ProtoReflect Uses

func (x *GetSignedMapRootByRevisionRequest) ProtoReflect() protoreflect.Message

func (*GetSignedMapRootByRevisionRequest) Reset Uses

func (x *GetSignedMapRootByRevisionRequest) Reset()

func (*GetSignedMapRootByRevisionRequest) String Uses

func (x *GetSignedMapRootByRevisionRequest) String() string

type GetSignedMapRootRequest Uses

type GetSignedMapRootRequest struct {
    MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    // contains filtered or unexported fields
}

func (*GetSignedMapRootRequest) Descriptor Uses

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

Deprecated: Use GetSignedMapRootRequest.ProtoReflect.Descriptor instead.

func (*GetSignedMapRootRequest) GetMapId Uses

func (x *GetSignedMapRootRequest) GetMapId() int64

func (*GetSignedMapRootRequest) ProtoMessage Uses

func (*GetSignedMapRootRequest) ProtoMessage()

func (*GetSignedMapRootRequest) ProtoReflect Uses

func (x *GetSignedMapRootRequest) ProtoReflect() protoreflect.Message

func (*GetSignedMapRootRequest) Reset Uses

func (x *GetSignedMapRootRequest) Reset()

func (*GetSignedMapRootRequest) String Uses

func (x *GetSignedMapRootRequest) String() string

type GetSignedMapRootResponse Uses

type GetSignedMapRootResponse struct {
    MapRoot *SignedMapRoot `protobuf:"bytes,2,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
    // contains filtered or unexported fields
}

func (*GetSignedMapRootResponse) Descriptor Uses

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

Deprecated: Use GetSignedMapRootResponse.ProtoReflect.Descriptor instead.

func (*GetSignedMapRootResponse) GetMapRoot Uses

func (x *GetSignedMapRootResponse) GetMapRoot() *SignedMapRoot

func (*GetSignedMapRootResponse) ProtoMessage Uses

func (*GetSignedMapRootResponse) ProtoMessage()

func (*GetSignedMapRootResponse) ProtoReflect Uses

func (x *GetSignedMapRootResponse) ProtoReflect() protoreflect.Message

func (*GetSignedMapRootResponse) Reset Uses

func (x *GetSignedMapRootResponse) Reset()

func (*GetSignedMapRootResponse) String Uses

func (x *GetSignedMapRootResponse) String() string

type GetTreeRequest Uses

type GetTreeRequest struct {

    // ID of the tree to retrieve.
    TreeId int64 `protobuf:"varint,1,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"`
    // contains filtered or unexported fields
}

GetTree request.

func (*GetTreeRequest) Descriptor Uses

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

Deprecated: Use GetTreeRequest.ProtoReflect.Descriptor instead.

func (*GetTreeRequest) GetTreeId Uses

func (x *GetTreeRequest) GetTreeId() int64

func (*GetTreeRequest) ProtoMessage Uses

func (*GetTreeRequest) ProtoMessage()

func (*GetTreeRequest) ProtoReflect Uses

func (x *GetTreeRequest) ProtoReflect() protoreflect.Message

func (*GetTreeRequest) Reset Uses

func (x *GetTreeRequest) Reset()

func (*GetTreeRequest) String Uses

func (x *GetTreeRequest) String() string

type HashStrategy Uses

type HashStrategy int32

Defines the way empty / node / leaf hashes are constructed incorporating preimage protection, which can be application specific.

const (
    // Hash strategy cannot be determined. Included to enable detection of
    // mismatched proto versions being used. Represents an invalid value.
    HashStrategy_UNKNOWN_HASH_STRATEGY HashStrategy = 0
    // Certificate Transparency strategy: leaf hash prefix = 0x00, node prefix =
    // 0x01, empty hash is digest([]byte{}), as defined in the specification.
    HashStrategy_RFC6962_SHA256 HashStrategy = 1
    // Sparse Merkle Tree strategy:  leaf hash prefix = 0x00, node prefix = 0x01,
    // empty branch is recursively computed from empty leaf nodes.
    // NOT secure in a multi tree environment. For testing only.
    HashStrategy_TEST_MAP_HASHER HashStrategy = 2
    // Append-only log strategy where leaf nodes are defined as the ObjectHash.
    // All other properties are equal to RFC6962_SHA256.
    HashStrategy_OBJECT_RFC6962_SHA256 HashStrategy = 3
    // The CONIKS sparse tree hasher with SHA512_256 as the hash algorithm.
    HashStrategy_CONIKS_SHA512_256 HashStrategy = 4
    // The CONIKS sparse tree hasher with SHA256 as the hash algorithm.
    HashStrategy_CONIKS_SHA256 HashStrategy = 5
)

func (HashStrategy) Descriptor Uses

func (HashStrategy) Descriptor() protoreflect.EnumDescriptor

func (HashStrategy) Enum Uses

func (x HashStrategy) Enum() *HashStrategy

func (HashStrategy) EnumDescriptor Uses

func (HashStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use HashStrategy.Descriptor instead.

func (HashStrategy) Number Uses

func (x HashStrategy) Number() protoreflect.EnumNumber

func (HashStrategy) String Uses

func (x HashStrategy) String() string

func (HashStrategy) Type Uses

func (HashStrategy) Type() protoreflect.EnumType

type InitLogRequest Uses

type InitLogRequest struct {
    LogId    int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    ChargeTo *ChargeTo `protobuf:"bytes,2,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*InitLogRequest) Descriptor Uses

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

Deprecated: Use InitLogRequest.ProtoReflect.Descriptor instead.

func (*InitLogRequest) GetChargeTo Uses

func (x *InitLogRequest) GetChargeTo() *ChargeTo

func (*InitLogRequest) GetLogId Uses

func (x *InitLogRequest) GetLogId() int64

func (*InitLogRequest) ProtoMessage Uses

func (*InitLogRequest) ProtoMessage()

func (*InitLogRequest) ProtoReflect Uses

func (x *InitLogRequest) ProtoReflect() protoreflect.Message

func (*InitLogRequest) Reset Uses

func (x *InitLogRequest) Reset()

func (*InitLogRequest) String Uses

func (x *InitLogRequest) String() string

type InitLogResponse Uses

type InitLogResponse struct {
    Created *SignedLogRoot `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
    // contains filtered or unexported fields
}

func (*InitLogResponse) Descriptor Uses

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

Deprecated: Use InitLogResponse.ProtoReflect.Descriptor instead.

func (*InitLogResponse) GetCreated Uses

func (x *InitLogResponse) GetCreated() *SignedLogRoot

func (*InitLogResponse) ProtoMessage Uses

func (*InitLogResponse) ProtoMessage()

func (*InitLogResponse) ProtoReflect Uses

func (x *InitLogResponse) ProtoReflect() protoreflect.Message

func (*InitLogResponse) Reset Uses

func (x *InitLogResponse) Reset()

func (*InitLogResponse) String Uses

func (x *InitLogResponse) String() string

type InitMapRequest Uses

type InitMapRequest struct {
    MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    // contains filtered or unexported fields
}

func (*InitMapRequest) Descriptor Uses

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

Deprecated: Use InitMapRequest.ProtoReflect.Descriptor instead.

func (*InitMapRequest) GetMapId Uses

func (x *InitMapRequest) GetMapId() int64

func (*InitMapRequest) ProtoMessage Uses

func (*InitMapRequest) ProtoMessage()

func (*InitMapRequest) ProtoReflect Uses

func (x *InitMapRequest) ProtoReflect() protoreflect.Message

func (*InitMapRequest) Reset Uses

func (x *InitMapRequest) Reset()

func (*InitMapRequest) String Uses

func (x *InitMapRequest) String() string

type InitMapResponse Uses

type InitMapResponse struct {
    Created *SignedMapRoot `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
    // contains filtered or unexported fields
}

func (*InitMapResponse) Descriptor Uses

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

Deprecated: Use InitMapResponse.ProtoReflect.Descriptor instead.

func (*InitMapResponse) GetCreated Uses

func (x *InitMapResponse) GetCreated() *SignedMapRoot

func (*InitMapResponse) ProtoMessage Uses

func (*InitMapResponse) ProtoMessage()

func (*InitMapResponse) ProtoReflect Uses

func (x *InitMapResponse) ProtoReflect() protoreflect.Message

func (*InitMapResponse) Reset Uses

func (x *InitMapResponse) Reset()

func (*InitMapResponse) String Uses

func (x *InitMapResponse) String() string

type ListTreesRequest Uses

type ListTreesRequest struct {

    // If true, deleted trees are included in the response.
    ShowDeleted bool `protobuf:"varint,1,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
    // contains filtered or unexported fields
}

ListTrees request. No filters or pagination options are provided.

func (*ListTreesRequest) Descriptor Uses

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

Deprecated: Use ListTreesRequest.ProtoReflect.Descriptor instead.

func (*ListTreesRequest) GetShowDeleted Uses

func (x *ListTreesRequest) GetShowDeleted() bool

func (*ListTreesRequest) ProtoMessage Uses

func (*ListTreesRequest) ProtoMessage()

func (*ListTreesRequest) ProtoReflect Uses

func (x *ListTreesRequest) ProtoReflect() protoreflect.Message

func (*ListTreesRequest) Reset Uses

func (x *ListTreesRequest) Reset()

func (*ListTreesRequest) String Uses

func (x *ListTreesRequest) String() string

type ListTreesResponse Uses

type ListTreesResponse struct {

    // Trees matching the list request filters.
    Tree []*Tree `protobuf:"bytes,1,rep,name=tree,proto3" json:"tree,omitempty"`
    // contains filtered or unexported fields
}

ListTrees response. No pagination is provided, all trees the requester has access to are returned.

func (*ListTreesResponse) Descriptor Uses

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

Deprecated: Use ListTreesResponse.ProtoReflect.Descriptor instead.

func (*ListTreesResponse) GetTree Uses

func (x *ListTreesResponse) GetTree() []*Tree

func (*ListTreesResponse) ProtoMessage Uses

func (*ListTreesResponse) ProtoMessage()

func (*ListTreesResponse) ProtoReflect Uses

func (x *ListTreesResponse) ProtoReflect() protoreflect.Message

func (*ListTreesResponse) Reset Uses

func (x *ListTreesResponse) Reset()

func (*ListTreesResponse) String Uses

func (x *ListTreesResponse) String() string

type LogLeaf Uses

type LogLeaf struct {

    // merkle_leaf_hash holds the Merkle leaf hash over leaf_value.  This is
    // calculated by the Trillian server when leaves are added to the tree, using
    // the defined hashing algorithm and strategy for the tree; as such, the client
    // does not need to set it on leaf submissions.
    MerkleLeafHash []byte `protobuf:"bytes,1,opt,name=merkle_leaf_hash,json=merkleLeafHash,proto3" json:"merkle_leaf_hash,omitempty"`
    // leaf_value holds the data that forms the value of the Merkle tree leaf.
    // The client should set this field on all leaf submissions, and is
    // responsible for ensuring its validity (the Trillian server treats it as an
    // opaque blob).
    LeafValue []byte `protobuf:"bytes,2,opt,name=leaf_value,json=leafValue,proto3" json:"leaf_value,omitempty"`
    // extra_data holds additional data associated with the Merkle tree leaf.
    // The client may set this data on leaf submissions, and the Trillian server
    // will return it on subsequent read operations. However, the contents of
    // this field are not covered by and do not affect the Merkle tree hash
    // calculations.
    ExtraData []byte `protobuf:"bytes,3,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"`
    // leaf_index indicates the index of this leaf in the Merkle tree.
    // This field is returned on all read operations, but should only be
    // set for leaf submissions in PREORDERED_LOG mode (for a normal log
    // the leaf index is assigned by Trillian when the submitted leaf is
    // integrated into the Merkle tree).
    LeafIndex int64 `protobuf:"varint,4,opt,name=leaf_index,json=leafIndex,proto3" json:"leaf_index,omitempty"`
    // leaf_identity_hash provides a hash value that indicates the client's
    // concept of which leaf entries should be considered identical.
    //
    // This mechanism allows the client personality to indicate that two leaves
    // should be considered "duplicates" even though their `leaf_value`s differ.
    //
    // If this is not set on leaf submissions, the Trillian server will take its
    // value to be the same as merkle_leaf_hash (and thus only leaves with
    // identical leaf_value contents will be considered identical).
    //
    // For example, in Certificate Transparency each certificate submission is
    // associated with a submission timestamp, but subsequent submissions of the
    // same certificate should be considered identical.  This is achieved
    // by setting the leaf identity hash to a hash over (just) the certificate,
    // whereas the Merkle leaf hash encompasses both the certificate and its
    // submission time -- allowing duplicate certificates to be detected.
    //
    //
    // Continuing the CT example, for a CT mirror personality (which must allow
    // dupes since the source log could contain them), the part of the
    // personality which fetches and submits the entries might set
    // `leaf_identity_hash` to `H(leaf_index||cert)`.
    //
    // TODO(pavelkalinnikov): Consider instead using `H(cert)` and allowing
    // identity hash dupes in `PREORDERED_LOG` mode, for it can later be
    // upgraded to `LOG` which will need to correctly detect duplicates with
    // older entries when new ones get queued.
    LeafIdentityHash []byte `protobuf:"bytes,5,opt,name=leaf_identity_hash,json=leafIdentityHash,proto3" json:"leaf_identity_hash,omitempty"`
    // queue_timestamp holds the time at which this leaf was queued for
    // inclusion in the Log, or zero if the entry was submitted without
    // queuing. Clients should not set this field on submissions.
    QueueTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=queue_timestamp,json=queueTimestamp,proto3" json:"queue_timestamp,omitempty"`
    // integrate_timestamp holds the time at which this leaf was integrated into
    // the tree.  Clients should not set this field on submissions.
    IntegrateTimestamp *timestamp.Timestamp `protobuf:"bytes,7,opt,name=integrate_timestamp,json=integrateTimestamp,proto3" json:"integrate_timestamp,omitempty"`
    // contains filtered or unexported fields
}

LogLeaf describes a leaf in the Log's Merkle tree, corresponding to a single log entry. Each leaf has a unique leaf index in the scope of this tree. Clients submitting new leaf entries should only set the following fields:

- leaf_value
- extra_data (optionally)
- leaf_identity_hash (optionally)
- leaf_index (iff the log is a PREORDERED_LOG)

func (*LogLeaf) Descriptor Uses

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

Deprecated: Use LogLeaf.ProtoReflect.Descriptor instead.

func (*LogLeaf) GetExtraData Uses

func (x *LogLeaf) GetExtraData() []byte

func (*LogLeaf) GetIntegrateTimestamp Uses

func (x *LogLeaf) GetIntegrateTimestamp() *timestamp.Timestamp

func (*LogLeaf) GetLeafIdentityHash Uses

func (x *LogLeaf) GetLeafIdentityHash() []byte

func (*LogLeaf) GetLeafIndex Uses

func (x *LogLeaf) GetLeafIndex() int64

func (*LogLeaf) GetLeafValue Uses

func (x *LogLeaf) GetLeafValue() []byte

func (*LogLeaf) GetMerkleLeafHash Uses

func (x *LogLeaf) GetMerkleLeafHash() []byte

func (*LogLeaf) GetQueueTimestamp Uses

func (x *LogLeaf) GetQueueTimestamp() *timestamp.Timestamp

func (*LogLeaf) ProtoMessage Uses

func (*LogLeaf) ProtoMessage()

func (*LogLeaf) ProtoReflect Uses

func (x *LogLeaf) ProtoReflect() protoreflect.Message

func (*LogLeaf) Reset Uses

func (x *LogLeaf) Reset()

func (*LogLeaf) String Uses

func (x *LogLeaf) String() string

type LogRootFormat Uses

type LogRootFormat int32

LogRootFormat specifies the fields that are covered by the SignedLogRoot signature, as well as their ordering and formats.

const (
    LogRootFormat_LOG_ROOT_FORMAT_UNKNOWN LogRootFormat = 0
    LogRootFormat_LOG_ROOT_FORMAT_V1      LogRootFormat = 1
)

func (LogRootFormat) Descriptor Uses

func (LogRootFormat) Descriptor() protoreflect.EnumDescriptor

func (LogRootFormat) Enum Uses

func (x LogRootFormat) Enum() *LogRootFormat

func (LogRootFormat) EnumDescriptor Uses

func (LogRootFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogRootFormat.Descriptor instead.

func (LogRootFormat) Number Uses

func (x LogRootFormat) Number() protoreflect.EnumNumber

func (LogRootFormat) String Uses

func (x LogRootFormat) String() string

func (LogRootFormat) Type Uses

func (LogRootFormat) Type() protoreflect.EnumType

type MapLeaf Uses

type MapLeaf struct {

    // index is the location of this leaf.
    // All indexes for a given Map must contain a constant number of bits.
    // These are not numeric indices. Note that this is typically derived using a
    // hash and thus the length of all indices in the map will match the number
    // of bits in the hash function.
    Index []byte `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
    // leaf_hash is the tree hash of leaf_value.  This does not need to be set
    // on SetMapLeavesRequest; the server will fill it in.
    // For an empty leaf (len(leaf_value)==0), there may be two possible values
    // for this hash:
    //  - If the leaf has never been set, it counts as an empty subtree and
    //    a nil value is used.
    //  - If the leaf has been explicitly set to a zero-length entry, it no
    //    longer counts as empty and the value of hasher.HashLeaf(index, nil)
    //    will be used.
    LeafHash []byte `protobuf:"bytes,2,opt,name=leaf_hash,json=leafHash,proto3" json:"leaf_hash,omitempty"`
    // leaf_value is the data the tree commits to.
    LeafValue []byte `protobuf:"bytes,3,opt,name=leaf_value,json=leafValue,proto3" json:"leaf_value,omitempty"`
    // extra_data holds related contextual data, but is not covered by any hash.
    ExtraData []byte `protobuf:"bytes,4,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"`
    // contains filtered or unexported fields
}

MapLeaf represents the data behind Map leaves.

func (*MapLeaf) Descriptor Uses

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

Deprecated: Use MapLeaf.ProtoReflect.Descriptor instead.

func (*MapLeaf) GetExtraData Uses

func (x *MapLeaf) GetExtraData() []byte

func (*MapLeaf) GetIndex Uses

func (x *MapLeaf) GetIndex() []byte

func (*MapLeaf) GetLeafHash Uses

func (x *MapLeaf) GetLeafHash() []byte

func (*MapLeaf) GetLeafValue Uses

func (x *MapLeaf) GetLeafValue() []byte

func (*MapLeaf) ProtoMessage Uses

func (*MapLeaf) ProtoMessage()

func (*MapLeaf) ProtoReflect Uses

func (x *MapLeaf) ProtoReflect() protoreflect.Message

func (*MapLeaf) Reset Uses

func (x *MapLeaf) Reset()

func (*MapLeaf) String Uses

func (x *MapLeaf) String() string

type MapLeafInclusion Uses

type MapLeafInclusion struct {
    Leaf *MapLeaf `protobuf:"bytes,1,opt,name=leaf,proto3" json:"leaf,omitempty"`
    // inclusion holds the inclusion proof for this leaf in the map root. It
    // holds one entry for each level of the tree; combining each of these in
    // turn with the leaf's hash (according to the tree's hash strategy)
    // reproduces the root hash.  A nil entry for a particular level indicates
    // that the node in question has an empty subtree beneath it (and so its
    // associated hash value is hasher.HashEmpty(index, height) rather than
    // hasher.HashChildren(l_hash, r_hash)).
    Inclusion [][]byte `protobuf:"bytes,2,rep,name=inclusion,proto3" json:"inclusion,omitempty"`
    // contains filtered or unexported fields
}

func (*MapLeafInclusion) Descriptor Uses

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

Deprecated: Use MapLeafInclusion.ProtoReflect.Descriptor instead.

func (*MapLeafInclusion) GetInclusion Uses

func (x *MapLeafInclusion) GetInclusion() [][]byte

func (*MapLeafInclusion) GetLeaf Uses

func (x *MapLeafInclusion) GetLeaf() *MapLeaf

func (*MapLeafInclusion) ProtoMessage Uses

func (*MapLeafInclusion) ProtoMessage()

func (*MapLeafInclusion) ProtoReflect Uses

func (x *MapLeafInclusion) ProtoReflect() protoreflect.Message

func (*MapLeafInclusion) Reset Uses

func (x *MapLeafInclusion) Reset()

func (*MapLeafInclusion) String Uses

func (x *MapLeafInclusion) String() string

type MapLeaves Uses

type MapLeaves struct {
    Leaves []*MapLeaf `protobuf:"bytes,1,rep,name=leaves,proto3" json:"leaves,omitempty"`
    // contains filtered or unexported fields
}

func (*MapLeaves) Descriptor Uses

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

Deprecated: Use MapLeaves.ProtoReflect.Descriptor instead.

func (*MapLeaves) GetLeaves Uses

func (x *MapLeaves) GetLeaves() []*MapLeaf

func (*MapLeaves) ProtoMessage Uses

func (*MapLeaves) ProtoMessage()

func (*MapLeaves) ProtoReflect Uses

func (x *MapLeaves) ProtoReflect() protoreflect.Message

func (*MapLeaves) Reset Uses

func (x *MapLeaves) Reset()

func (*MapLeaves) String Uses

func (x *MapLeaves) String() string

type MapRootFormat Uses

type MapRootFormat int32

MapRootFormat specifies the fields that are covered by the SignedMapRoot signature, as well as their ordering and formats.

const (
    MapRootFormat_MAP_ROOT_FORMAT_UNKNOWN MapRootFormat = 0
    MapRootFormat_MAP_ROOT_FORMAT_V1      MapRootFormat = 1
)

func (MapRootFormat) Descriptor Uses

func (MapRootFormat) Descriptor() protoreflect.EnumDescriptor

func (MapRootFormat) Enum Uses

func (x MapRootFormat) Enum() *MapRootFormat

func (MapRootFormat) EnumDescriptor Uses

func (MapRootFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use MapRootFormat.Descriptor instead.

func (MapRootFormat) Number Uses

func (x MapRootFormat) Number() protoreflect.EnumNumber

func (MapRootFormat) String Uses

func (x MapRootFormat) String() string

func (MapRootFormat) Type Uses

func (MapRootFormat) Type() protoreflect.EnumType

type Proof Uses

type Proof struct {

    // leaf_index indicates the requested leaf index when this message is used for
    // a leaf inclusion proof.  This field is set to zero when this message is
    // used for a consistency proof.
    LeafIndex int64    `protobuf:"varint,1,opt,name=leaf_index,json=leafIndex,proto3" json:"leaf_index,omitempty"`
    Hashes    [][]byte `protobuf:"bytes,3,rep,name=hashes,proto3" json:"hashes,omitempty"`
    // contains filtered or unexported fields
}

Proof holds a consistency or inclusion proof for a Merkle tree, as returned by the API.

func (*Proof) Descriptor Uses

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

Deprecated: Use Proof.ProtoReflect.Descriptor instead.

func (*Proof) GetHashes Uses

func (x *Proof) GetHashes() [][]byte

func (*Proof) GetLeafIndex Uses

func (x *Proof) GetLeafIndex() int64

func (*Proof) ProtoMessage Uses

func (*Proof) ProtoMessage()

func (*Proof) ProtoReflect Uses

func (x *Proof) ProtoReflect() protoreflect.Message

func (*Proof) Reset Uses

func (x *Proof) Reset()

func (*Proof) String Uses

func (x *Proof) String() string

type QueueLeafRequest Uses

type QueueLeafRequest struct {
    LogId    int64     `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    Leaf     *LogLeaf  `protobuf:"bytes,2,opt,name=leaf,proto3" json:"leaf,omitempty"`
    ChargeTo *ChargeTo `protobuf:"bytes,3,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*QueueLeafRequest) Descriptor Uses

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

Deprecated: Use QueueLeafRequest.ProtoReflect.Descriptor instead.

func (*QueueLeafRequest) GetChargeTo Uses

func (x *QueueLeafRequest) GetChargeTo() *ChargeTo

func (*QueueLeafRequest) GetLeaf Uses

func (x *QueueLeafRequest) GetLeaf() *LogLeaf

func (*QueueLeafRequest) GetLogId Uses

func (x *QueueLeafRequest) GetLogId() int64

func (*QueueLeafRequest) ProtoMessage Uses

func (*QueueLeafRequest) ProtoMessage()

func (*QueueLeafRequest) ProtoReflect Uses

func (x *QueueLeafRequest) ProtoReflect() protoreflect.Message

func (*QueueLeafRequest) Reset Uses

func (x *QueueLeafRequest) Reset()

func (*QueueLeafRequest) String Uses

func (x *QueueLeafRequest) String() string

type QueueLeafResponse Uses

type QueueLeafResponse struct {

    // queued_leaf describes the leaf which is or will be incorporated into the
    // Log.  If the submitted leaf was already present in the Log (as indicated by
    // its leaf identity hash), then the returned leaf will be the pre-existing
    // leaf entry rather than the submitted leaf.
    QueuedLeaf *QueuedLogLeaf `protobuf:"bytes,2,opt,name=queued_leaf,json=queuedLeaf,proto3" json:"queued_leaf,omitempty"`
    // contains filtered or unexported fields
}

func (*QueueLeafResponse) Descriptor Uses

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

Deprecated: Use QueueLeafResponse.ProtoReflect.Descriptor instead.

func (*QueueLeafResponse) GetQueuedLeaf Uses

func (x *QueueLeafResponse) GetQueuedLeaf() *QueuedLogLeaf

func (*QueueLeafResponse) ProtoMessage Uses

func (*QueueLeafResponse) ProtoMessage()

func (*QueueLeafResponse) ProtoReflect Uses

func (x *QueueLeafResponse) ProtoReflect() protoreflect.Message

func (*QueueLeafResponse) Reset Uses

func (x *QueueLeafResponse) Reset()

func (*QueueLeafResponse) String Uses

func (x *QueueLeafResponse) String() string

type QueueLeavesRequest Uses

type QueueLeavesRequest struct {
    LogId    int64      `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    Leaves   []*LogLeaf `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
    ChargeTo *ChargeTo  `protobuf:"bytes,3,opt,name=charge_to,json=chargeTo,proto3" json:"charge_to,omitempty"`
    // contains filtered or unexported fields
}

func (*QueueLeavesRequest) Descriptor Uses

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

Deprecated: Use QueueLeavesRequest.ProtoReflect.Descriptor instead.

func (*QueueLeavesRequest) GetChargeTo Uses

func (x *QueueLeavesRequest) GetChargeTo() *ChargeTo

func (*QueueLeavesRequest) GetLeaves Uses

func (x *QueueLeavesRequest) GetLeaves() []*LogLeaf

func (*QueueLeavesRequest) GetLogId Uses

func (x *QueueLeavesRequest) GetLogId() int64

func (*QueueLeavesRequest) ProtoMessage Uses

func (*QueueLeavesRequest) ProtoMessage()

func (*QueueLeavesRequest) ProtoReflect Uses

func (x *QueueLeavesRequest) ProtoReflect() protoreflect.Message

func (*QueueLeavesRequest) Reset Uses

func (x *QueueLeavesRequest) Reset()

func (*QueueLeavesRequest) String Uses

func (x *QueueLeavesRequest) String() string

type QueueLeavesResponse Uses

type QueueLeavesResponse struct {

    // Same number and order as in the corresponding request.
    QueuedLeaves []*QueuedLogLeaf `protobuf:"bytes,2,rep,name=queued_leaves,json=queuedLeaves,proto3" json:"queued_leaves,omitempty"`
    // contains filtered or unexported fields
}

func (*QueueLeavesResponse) Descriptor Uses

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

Deprecated: Use QueueLeavesResponse.ProtoReflect.Descriptor instead.

func (*QueueLeavesResponse) GetQueuedLeaves Uses

func (x *QueueLeavesResponse) GetQueuedLeaves() []*QueuedLogLeaf

func (*QueueLeavesResponse) ProtoMessage Uses

func (*QueueLeavesResponse) ProtoMessage()

func (*QueueLeavesResponse) ProtoReflect Uses

func (x *QueueLeavesResponse) ProtoReflect() protoreflect.Message

func (*QueueLeavesResponse) Reset Uses

func (x *QueueLeavesResponse) Reset()

func (*QueueLeavesResponse) String Uses

func (x *QueueLeavesResponse) String() string

type QueuedLogLeaf Uses

type QueuedLogLeaf struct {

    // The leaf as it was stored by Trillian. Empty unless `status.code` is:
    //  - `google.rpc.OK`: the `leaf` data is the same as in the request.
    //  - `google.rpc.ALREADY_EXISTS` or 'google.rpc.FAILED_PRECONDITION`: the
    //    `leaf` is the conflicting one already in the log.
    Leaf *LogLeaf `protobuf:"bytes,1,opt,name=leaf,proto3" json:"leaf,omitempty"`
    // The status of adding the leaf.
    //  - `google.rpc.OK`: successfully added.
    //  - `google.rpc.ALREADY_EXISTS`: the leaf is a duplicate of an already
    //    existing one. Either `leaf_identity_hash` is the same in the `LOG`
    //    mode, or `leaf_index` in the `PREORDERED_LOG`.
    //  - `google.rpc.FAILED_PRECONDITION`: A conflicting entry is already
    //    present in the log, e.g., same `leaf_index` but different `leaf_data`.
    Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
    // contains filtered or unexported fields
}

QueuedLogLeaf provides the result of submitting an entry to the log. TODO(pavelkalinnikov): Consider renaming it to AddLogLeafResult or the like.

func (*QueuedLogLeaf) Descriptor Uses

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

Deprecated: Use QueuedLogLeaf.ProtoReflect.Descriptor instead.

func (*QueuedLogLeaf) GetLeaf Uses

func (x *QueuedLogLeaf) GetLeaf() *LogLeaf

func (*QueuedLogLeaf) GetStatus Uses

func (x *QueuedLogLeaf) GetStatus() *status.Status

func (*QueuedLogLeaf) ProtoMessage Uses

func (*QueuedLogLeaf) ProtoMessage()

func (*QueuedLogLeaf) ProtoReflect Uses

func (x *QueuedLogLeaf) ProtoReflect() protoreflect.Message

func (*QueuedLogLeaf) Reset Uses

func (x *QueuedLogLeaf) Reset()

func (*QueuedLogLeaf) String Uses

func (x *QueuedLogLeaf) String() string

type SetMapLeavesRequest Uses

type SetMapLeavesRequest struct {
    MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    // The leaves being set must have unique Index values within the request.
    Leaves   []*MapLeaf `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
    Metadata []byte     `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
    // The map revision to associate the leaves with. The request will fail if
    // this revision already exists, does not match the current write revision, or
    // is not positive. Note that revision = 0 is reserved for the empty tree.
    Revision int64 `protobuf:"varint,6,opt,name=revision,proto3" json:"revision,omitempty"`
    // contains filtered or unexported fields
}

func (*SetMapLeavesRequest) Descriptor Uses

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

Deprecated: Use SetMapLeavesRequest.ProtoReflect.Descriptor instead.

func (*SetMapLeavesRequest) GetLeaves Uses

func (x *SetMapLeavesRequest) GetLeaves() []*MapLeaf

func (*SetMapLeavesRequest) GetMapId Uses

func (x *SetMapLeavesRequest) GetMapId() int64

func (*SetMapLeavesRequest) GetMetadata Uses

func (x *SetMapLeavesRequest) GetMetadata() []byte

func (*SetMapLeavesRequest) GetRevision Uses

func (x *SetMapLeavesRequest) GetRevision() int64

func (*SetMapLeavesRequest) ProtoMessage Uses

func (*SetMapLeavesRequest) ProtoMessage()

func (*SetMapLeavesRequest) ProtoReflect Uses

func (x *SetMapLeavesRequest) ProtoReflect() protoreflect.Message

func (*SetMapLeavesRequest) Reset Uses

func (x *SetMapLeavesRequest) Reset()

func (*SetMapLeavesRequest) String Uses

func (x *SetMapLeavesRequest) String() string

type SetMapLeavesResponse Uses

type SetMapLeavesResponse struct {
    MapRoot *SignedMapRoot `protobuf:"bytes,2,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
    // contains filtered or unexported fields
}

func (*SetMapLeavesResponse) Descriptor Uses

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

Deprecated: Use SetMapLeavesResponse.ProtoReflect.Descriptor instead.

func (*SetMapLeavesResponse) GetMapRoot Uses

func (x *SetMapLeavesResponse) GetMapRoot() *SignedMapRoot

func (*SetMapLeavesResponse) ProtoMessage Uses

func (*SetMapLeavesResponse) ProtoMessage()

func (*SetMapLeavesResponse) ProtoReflect Uses

func (x *SetMapLeavesResponse) ProtoReflect() protoreflect.Message

func (*SetMapLeavesResponse) Reset Uses

func (x *SetMapLeavesResponse) Reset()

func (*SetMapLeavesResponse) String Uses

func (x *SetMapLeavesResponse) String() string

type SignedEntryTimestamp Uses

type SignedEntryTimestamp struct {
    TimestampNanos int64                  `protobuf:"varint,1,opt,name=timestamp_nanos,json=timestampNanos,proto3" json:"timestamp_nanos,omitempty"`
    LogId          int64                  `protobuf:"varint,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
    Signature      *sigpb.DigitallySigned `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
    // contains filtered or unexported fields
}

func (*SignedEntryTimestamp) Descriptor Uses

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

Deprecated: Use SignedEntryTimestamp.ProtoReflect.Descriptor instead.

func (*SignedEntryTimestamp) GetLogId Uses

func (x *SignedEntryTimestamp) GetLogId() int64

func (*SignedEntryTimestamp) GetSignature Uses

func (x *SignedEntryTimestamp) GetSignature() *sigpb.DigitallySigned

func (*SignedEntryTimestamp) GetTimestampNanos Uses

func (x *SignedEntryTimestamp) GetTimestampNanos() int64

func (*SignedEntryTimestamp) ProtoMessage Uses

func (*SignedEntryTimestamp) ProtoMessage()

func (*SignedEntryTimestamp) ProtoReflect Uses

func (x *SignedEntryTimestamp) ProtoReflect() protoreflect.Message

func (*SignedEntryTimestamp) Reset Uses

func (x *SignedEntryTimestamp) Reset()

func (*SignedEntryTimestamp) String Uses

func (x *SignedEntryTimestamp) String() string

type SignedLogRoot Uses

type SignedLogRoot struct {

    // key_hint is a hint to identify the public key for signature verification.
    // key_hint is not authenticated and may be incorrect or missing, in which
    // case all known public keys may be used to verify the signature.
    // When directly communicating with a Trillian gRPC server, the key_hint will
    // typically contain the LogID encoded as a big-endian 64-bit integer;
    // however, in other contexts the key_hint is likely to have different
    // contents (e.g. it could be a GUID, a URL + TreeID, or it could be
    // derived from the public key itself).
    KeyHint []byte `protobuf:"bytes,7,opt,name=key_hint,json=keyHint,proto3" json:"key_hint,omitempty"`
    // log_root holds the TLS-serialization of the following structure (described
    // in RFC5246 notation): Clients should validate log_root_signature with
    // VerifySignedLogRoot before deserializing log_root.
    // enum { v1(1), (65535)} Version;
    // struct {
    //   uint64 tree_size;
    //   opaque root_hash<0..128>;
    //   uint64 timestamp_nanos;
    //   uint64 revision;
    //   opaque metadata<0..65535>;
    // } LogRootV1;
    // struct {
    //   Version version;
    //   select(version) {
    //     case v1: LogRootV1;
    //   }
    // } LogRoot;
    //
    // A serialized v1 log root will therefore be laid out as:
    //
    // +---+---+---+---+---+---+---+---+---+---+---+---+---+---+-....--+
    // | ver=1 |          tree_size            |len|    root_hash      |
    // +---+---+---+---+---+---+---+---+---+---+---+---+---+---+-....--+
    //
    // +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    // |        timestamp_nanos        |      revision                 |
    // +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    //
    // +---+---+---+---+---+-....---+
    // |  len  |    metadata        |
    // +---+---+---+---+---+-....---+
    //
    // (with all integers encoded big-endian).
    LogRoot []byte `protobuf:"bytes,8,opt,name=log_root,json=logRoot,proto3" json:"log_root,omitempty"`
    // log_root_signature is the raw signature over log_root.
    LogRootSignature []byte `protobuf:"bytes,9,opt,name=log_root_signature,json=logRootSignature,proto3" json:"log_root_signature,omitempty"`
    // contains filtered or unexported fields
}

SignedLogRoot represents a commitment by a Log to a particular tree.

func (*SignedLogRoot) Descriptor Uses

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

Deprecated: Use SignedLogRoot.ProtoReflect.Descriptor instead.

func (*SignedLogRoot) GetKeyHint Uses

func (x *SignedLogRoot) GetKeyHint() []byte

func (*SignedLogRoot) GetLogRoot Uses

func (x *SignedLogRoot) GetLogRoot() []byte

func (*SignedLogRoot) GetLogRootSignature Uses

func (x *SignedLogRoot) GetLogRootSignature() []byte

func (*SignedLogRoot) ProtoMessage Uses

func (*SignedLogRoot) ProtoMessage()

func (*SignedLogRoot) ProtoReflect Uses

func (x *SignedLogRoot) ProtoReflect() protoreflect.Message

func (*SignedLogRoot) Reset Uses

func (x *SignedLogRoot) Reset()

func (*SignedLogRoot) String Uses

func (x *SignedLogRoot) String() string

type SignedMapRoot Uses

type SignedMapRoot struct {

    // map_root holds the TLS-serialization of the following structure (described
    // in RFC5246 notation): Clients should validate signature with
    // VerifySignedMapRoot before deserializing map_root.
    // enum { v1(1), (65535)} Version;
    // struct {
    //   opaque root_hash<0..128>;
    //   uint64 timestamp_nanos;
    //   uint64 revision;
    //   opaque metadata<0..65535>;
    // } MapRootV1;
    // struct {
    //   Version version;
    //   select(version) {
    //     case v1: MapRootV1;
    //   }
    // } MapRoot;
    MapRoot []byte `protobuf:"bytes,9,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
    // Signature is the raw signature over MapRoot.
    Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
    // contains filtered or unexported fields
}

SignedMapRoot represents a commitment by a Map to a particular tree.

func (*SignedMapRoot) Descriptor Uses

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

Deprecated: Use SignedMapRoot.ProtoReflect.Descriptor instead.

func (*SignedMapRoot) GetMapRoot Uses

func (x *SignedMapRoot) GetMapRoot() []byte

func (*SignedMapRoot) GetSignature Uses

func (x *SignedMapRoot) GetSignature() []byte

func (*SignedMapRoot) ProtoMessage Uses

func (*SignedMapRoot) ProtoMessage()

func (*SignedMapRoot) ProtoReflect Uses

func (x *SignedMapRoot) ProtoReflect() protoreflect.Message

func (*SignedMapRoot) Reset Uses

func (x *SignedMapRoot) Reset()

func (*SignedMapRoot) String Uses

func (x *SignedMapRoot) String() string

type Tree Uses

type Tree struct {

    // ID of the tree.
    // Readonly.
    TreeId int64 `protobuf:"varint,1,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"`
    // State of the tree.
    // Trees are ACTIVE after creation. At any point the tree may transition
    // between ACTIVE, DRAINING and FROZEN states.
    TreeState TreeState `protobuf:"varint,2,opt,name=tree_state,json=treeState,proto3,enum=trillian.TreeState" json:"tree_state,omitempty"`
    // Type of the tree.
    // Readonly after Tree creation. Exception: Can be switched from
    // PREORDERED_LOG to LOG if the Tree is and remains in the FROZEN state.
    TreeType TreeType `protobuf:"varint,3,opt,name=tree_type,json=treeType,proto3,enum=trillian.TreeType" json:"tree_type,omitempty"`
    // Hash strategy to be used by the tree.
    // Readonly.
    HashStrategy HashStrategy `protobuf:"varint,4,opt,name=hash_strategy,json=hashStrategy,proto3,enum=trillian.HashStrategy" json:"hash_strategy,omitempty"`
    // Hash algorithm to be used by the tree.
    // Readonly.
    HashAlgorithm sigpb.DigitallySigned_HashAlgorithm `protobuf:"varint,5,opt,name=hash_algorithm,json=hashAlgorithm,proto3,enum=sigpb.DigitallySigned_HashAlgorithm" json:"hash_algorithm,omitempty"`
    // Signature algorithm to be used by the tree.
    // Readonly.
    SignatureAlgorithm sigpb.DigitallySigned_SignatureAlgorithm `protobuf:"varint,6,opt,name=signature_algorithm,json=signatureAlgorithm,proto3,enum=sigpb.DigitallySigned_SignatureAlgorithm" json:"signature_algorithm,omitempty"`
    // Display name of the tree.
    // Optional.
    DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    // Description of the tree,
    // Optional.
    Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
    // Identifies the private key used for signing tree heads and entry
    // timestamps.
    // This can be any type of message to accommodate different key management
    // systems, e.g. PEM files, HSMs, etc.
    // Private keys are write-only: they're never returned by RPCs.
    // The private_key message can be changed after a tree is created, but the
    // underlying key must remain the same - this is to enable migrating a key
    // from one provider to another.
    PrivateKey *any.Any `protobuf:"bytes,12,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
    // Storage-specific settings.
    // Varies according to the storage implementation backing Trillian.
    StorageSettings *any.Any `protobuf:"bytes,13,opt,name=storage_settings,json=storageSettings,proto3" json:"storage_settings,omitempty"`
    // The public key used for verifying tree heads and entry timestamps.
    // Readonly.
    PublicKey *keyspb.PublicKey `protobuf:"bytes,14,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
    // Interval after which a new signed root is produced even if there have been
    // no submission.  If zero, this behavior is disabled.
    MaxRootDuration *duration.Duration `protobuf:"bytes,15,opt,name=max_root_duration,json=maxRootDuration,proto3" json:"max_root_duration,omitempty"`
    // Time of tree creation.
    // Readonly.
    CreateTime *timestamp.Timestamp `protobuf:"bytes,16,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // Time of last tree update.
    // Readonly (automatically assigned on updates).
    UpdateTime *timestamp.Timestamp `protobuf:"bytes,17,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
    // If true, the tree has been deleted.
    // Deleted trees may be undeleted during a certain time window, after which
    // they're permanently deleted (and unrecoverable).
    // Readonly.
    Deleted bool `protobuf:"varint,19,opt,name=deleted,proto3" json:"deleted,omitempty"`
    // Time of tree deletion, if any.
    // Readonly.
    DeleteTime *timestamp.Timestamp `protobuf:"bytes,20,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
    // contains filtered or unexported fields
}

Represents a tree, which may be either a verifiable log or map. Readonly attributes are assigned at tree creation, after which they may not be modified.

Note: Many APIs within the rest of the code require these objects to be provided. For safety they should be obtained via Admin API calls and not created dynamically.

func (*Tree) Descriptor Uses

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

Deprecated: Use Tree.ProtoReflect.Descriptor instead.

func (*Tree) GetCreateTime Uses

func (x *Tree) GetCreateTime() *timestamp.Timestamp

func (*Tree) GetDeleteTime Uses

func (x *Tree) GetDeleteTime() *timestamp.Timestamp

func (*Tree) GetDeleted Uses

func (x *Tree) GetDeleted() bool

func (*Tree) GetDescription Uses

func (x *Tree) GetDescription() string

func (*Tree) GetDisplayName Uses

func (x *Tree) GetDisplayName() string

func (*Tree) GetHashAlgorithm Uses

func (x *Tree) GetHashAlgorithm() sigpb.DigitallySigned_HashAlgorithm

func (*Tree) GetHashStrategy Uses

func (x *Tree) GetHashStrategy() HashStrategy

func (*Tree) GetMaxRootDuration Uses

func (x *Tree) GetMaxRootDuration() *duration.Duration

func (*Tree) GetPrivateKey Uses

func (x *Tree) GetPrivateKey() *any.Any

func (*Tree) GetPublicKey Uses

func (x *Tree) GetPublicKey() *keyspb.PublicKey

func (*Tree) GetSignatureAlgorithm Uses

func (x *Tree) GetSignatureAlgorithm() sigpb.DigitallySigned_SignatureAlgorithm

func (*Tree) GetStorageSettings Uses

func (x *Tree) GetStorageSettings() *any.Any

func (*Tree) GetTreeId Uses

func (x *Tree) GetTreeId() int64

func (*Tree) GetTreeState Uses

func (x *Tree) GetTreeState() TreeState

func (*Tree) GetTreeType Uses

func (x *Tree) GetTreeType() TreeType

func (*Tree) GetUpdateTime Uses

func (x *Tree) GetUpdateTime() *timestamp.Timestamp

func (*Tree) ProtoMessage Uses

func (*Tree) ProtoMessage()

func (*Tree) ProtoReflect Uses

func (x *Tree) ProtoReflect() protoreflect.Message

func (*Tree) Reset Uses

func (x *Tree) Reset()

func (*Tree) String Uses

func (x *Tree) String() string

type TreeState Uses

type TreeState int32

State of the tree.

const (
    // Tree state cannot be determined. Included to enable detection of
    // mismatched proto versions being used. Represents an invalid value.
    TreeState_UNKNOWN_TREE_STATE TreeState = 0
    // Active trees are able to respond to both read and write requests.
    TreeState_ACTIVE TreeState = 1
    // Frozen trees are only able to respond to read requests, writing to a frozen
    // tree is forbidden. Trees should not be frozen when there are entries
    // in the queue that have not yet been integrated. See the DRAINING
    // state for this case.
    TreeState_FROZEN TreeState = 2
    // Deprecated: now tracked in Tree.deleted.
    //
    // Deprecated: Do not use.
    TreeState_DEPRECATED_SOFT_DELETED TreeState = 3
    // Deprecated: now tracked in Tree.deleted.
    //
    // Deprecated: Do not use.
    TreeState_DEPRECATED_HARD_DELETED TreeState = 4
    // A tree that is draining will continue to integrate queued entries.
    // No new entries should be accepted.
    TreeState_DRAINING TreeState = 5
)

func (TreeState) Descriptor Uses

func (TreeState) Descriptor() protoreflect.EnumDescriptor

func (TreeState) Enum Uses

func (x TreeState) Enum() *TreeState

func (TreeState) EnumDescriptor Uses

func (TreeState) EnumDescriptor() ([]byte, []int)

Deprecated: Use TreeState.Descriptor instead.

func (TreeState) Number Uses

func (x TreeState) Number() protoreflect.EnumNumber

func (TreeState) String Uses

func (x TreeState) String() string

func (TreeState) Type Uses

func (TreeState) Type() protoreflect.EnumType

type TreeType Uses

type TreeType int32

Type of the tree.

const (
    // Tree type cannot be determined. Included to enable detection of mismatched
    // proto versions being used. Represents an invalid value.
    TreeType_UNKNOWN_TREE_TYPE TreeType = 0
    // Tree represents a verifiable log.
    TreeType_LOG TreeType = 1
    // Tree represents a verifiable map.
    TreeType_MAP TreeType = 2
    // Tree represents a verifiable pre-ordered log, i.e., a log whose entries are
    // placed according to sequence numbers assigned outside of Trillian.
    TreeType_PREORDERED_LOG TreeType = 3
)

func (TreeType) Descriptor Uses

func (TreeType) Descriptor() protoreflect.EnumDescriptor

func (TreeType) Enum Uses

func (x TreeType) Enum() *TreeType

func (TreeType) EnumDescriptor Uses

func (TreeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TreeType.Descriptor instead.

func (TreeType) Number Uses

func (x TreeType) Number() protoreflect.EnumNumber

func (TreeType) String Uses

func (x TreeType) String() string

func (TreeType) Type Uses

func (TreeType) Type() protoreflect.EnumType

type TrillianAdminClient Uses

type TrillianAdminClient interface {
    // Lists all trees the requester has access to.
    ListTrees(ctx context.Context, in *ListTreesRequest, opts ...grpc.CallOption) (*ListTreesResponse, error)
    // Retrieves a tree by ID.
    GetTree(ctx context.Context, in *GetTreeRequest, opts ...grpc.CallOption) (*Tree, error)
    // Creates a new tree.
    // System-generated fields are not required and will be ignored if present,
    // e.g.: tree_id, create_time and update_time.
    // Returns the created tree, with all system-generated fields assigned.
    CreateTree(ctx context.Context, in *CreateTreeRequest, opts ...grpc.CallOption) (*Tree, error)
    // Updates a tree.
    // See Tree for details. Readonly fields cannot be updated.
    UpdateTree(ctx context.Context, in *UpdateTreeRequest, opts ...grpc.CallOption) (*Tree, error)
    // Soft-deletes a tree.
    // A soft-deleted tree may be undeleted for a certain period, after which
    // it'll be permanently deleted.
    DeleteTree(ctx context.Context, in *DeleteTreeRequest, opts ...grpc.CallOption) (*Tree, error)
    // Undeletes a soft-deleted a tree.
    // A soft-deleted tree may be undeleted for a certain period, after which
    // it'll be permanently deleted.
    UndeleteTree(ctx context.Context, in *UndeleteTreeRequest, opts ...grpc.CallOption) (*Tree, error)
}

TrillianAdminClient is the client API for TrillianAdmin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTrillianAdminClient Uses

func NewTrillianAdminClient(cc grpc.ClientConnInterface) TrillianAdminClient

type TrillianAdminServer Uses

type TrillianAdminServer interface {
    // Lists all trees the requester has access to.
    ListTrees(context.Context, *ListTreesRequest) (*ListTreesResponse, error)
    // Retrieves a tree by ID.
    GetTree(context.Context, *GetTreeRequest) (*Tree, error)
    // Creates a new tree.
    // System-generated fields are not required and will be ignored if present,
    // e.g.: tree_id, create_time and update_time.
    // Returns the created tree, with all system-generated fields assigned.
    CreateTree(context.Context, *CreateTreeRequest) (*Tree, error)
    // Updates a tree.
    // See Tree for details. Readonly fields cannot be updated.
    UpdateTree(context.Context, *UpdateTreeRequest) (*Tree, error)
    // Soft-deletes a tree.
    // A soft-deleted tree may be undeleted for a certain period, after which
    // it'll be permanently deleted.
    DeleteTree(context.Context, *DeleteTreeRequest) (*Tree, error)
    // Undeletes a soft-deleted a tree.
    // A soft-deleted tree may be undeleted for a certain period, after which
    // it'll be permanently deleted.
    UndeleteTree(context.Context, *UndeleteTreeRequest) (*Tree, error)
}

TrillianAdminServer is the server API for TrillianAdmin service.

type TrillianLogClient Uses

type TrillianLogClient interface {
    // QueueLeaf adds a single leaf to the queue of pending leaves for a normal
    // log.
    QueueLeaf(ctx context.Context, in *QueueLeafRequest, opts ...grpc.CallOption) (*QueueLeafResponse, error)
    // AddSequencedLeaf adds a single leaf with an assigned sequence number to a
    // pre-ordered log.
    AddSequencedLeaf(ctx context.Context, in *AddSequencedLeafRequest, opts ...grpc.CallOption) (*AddSequencedLeafResponse, error)
    // GetInclusionProof returns an inclusion proof for a leaf with a given index
    // in a particular tree.
    //
    // If the requested tree_size is larger than the server is aware of, the
    // response will include the latest known log root and an empty proof.
    GetInclusionProof(ctx context.Context, in *GetInclusionProofRequest, opts ...grpc.CallOption) (*GetInclusionProofResponse, error)
    // GetInclusionProofByHash returns an inclusion proof for any leaves that have
    // the given Merkle hash in a particular tree.
    //
    // If any of the leaves that match the given Merkle has have a leaf index that
    // is beyond the requested tree size, the corresponding proof entry will be empty.
    GetInclusionProofByHash(ctx context.Context, in *GetInclusionProofByHashRequest, opts ...grpc.CallOption) (*GetInclusionProofByHashResponse, error)
    // GetConsistencyProof returns a consistency proof between different sizes of
    // a particular tree.
    //
    // If the requested tree size is larger than the server is aware of,
    // the response will include the latest known log root and an empty proof.
    GetConsistencyProof(ctx context.Context, in *GetConsistencyProofRequest, opts ...grpc.CallOption) (*GetConsistencyProofResponse, error)
    // GetLatestSignedLogRoot returns the latest signed log root for a given tree,
    // and optionally also includes a consistency proof from an earlier tree size
    // to the new size of the tree.
    //
    // If the earlier tree size is larger than the server is aware of,
    // an InvalidArgument error is returned.
    GetLatestSignedLogRoot(ctx context.Context, in *GetLatestSignedLogRootRequest, opts ...grpc.CallOption) (*GetLatestSignedLogRootResponse, error)
    // GetSequencedLeafCount returns the total number of leaves that have been
    // integrated into the given tree.
    //
    // DO NOT USE - FOR DEBUGGING/TEST ONLY
    //
    // (Use GetLatestSignedLogRoot then de-serialize the Log Root and use
    // use the tree size field within.)
    GetSequencedLeafCount(ctx context.Context, in *GetSequencedLeafCountRequest, opts ...grpc.CallOption) (*GetSequencedLeafCountResponse, error)
    // GetEntryAndProof returns a log leaf and the corresponding inclusion proof
    // to a specified tree size, for a given leaf index in a particular tree.
    //
    // If the requested tree size is unavailable but the leaf is
    // in scope for the current tree, the returned proof will be for the
    // current tree size rather than the requested tree size.
    GetEntryAndProof(ctx context.Context, in *GetEntryAndProofRequest, opts ...grpc.CallOption) (*GetEntryAndProofResponse, error)
    // InitLog initializes a particular tree, creating the initial signed log
    // root (which will be of size 0).
    InitLog(ctx context.Context, in *InitLogRequest, opts ...grpc.CallOption) (*InitLogResponse, error)
    // QueueLeaf adds a batch of leaves to the queue of pending leaves for a
    // normal log.
    QueueLeaves(ctx context.Context, in *QueueLeavesRequest, opts ...grpc.CallOption) (*QueueLeavesResponse, error)
    // AddSequencedLeaves adds a batch of leaves with assigned sequence numbers
    // to a pre-ordered log.  The indices of the provided leaves must be contiguous.
    AddSequencedLeaves(ctx context.Context, in *AddSequencedLeavesRequest, opts ...grpc.CallOption) (*AddSequencedLeavesResponse, error)
    // GetLeavesByIndex returns a batch of leaves whose leaf indices are provided
    // in the request.
    GetLeavesByIndex(ctx context.Context, in *GetLeavesByIndexRequest, opts ...grpc.CallOption) (*GetLeavesByIndexResponse, error)
    // GetLeavesByRange returns a batch of leaves whose leaf indices are in a
    // sequential range.
    GetLeavesByRange(ctx context.Context, in *GetLeavesByRangeRequest, opts ...grpc.CallOption) (*GetLeavesByRangeResponse, error)
    // GetLeavesByHash returns a batch of leaves which are identified by their
    // Merkle leaf hash values.
    GetLeavesByHash(ctx context.Context, in *GetLeavesByHashRequest, opts ...grpc.CallOption) (*GetLeavesByHashResponse, error)
}

TrillianLogClient is the client API for TrillianLog service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTrillianLogClient Uses

func NewTrillianLogClient(cc grpc.ClientConnInterface) TrillianLogClient

type TrillianLogSequencerClient Uses

type TrillianLogSequencerClient interface {
}

TrillianLogSequencerClient is the client API for TrillianLogSequencer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTrillianLogSequencerClient Uses

func NewTrillianLogSequencerClient(cc grpc.ClientConnInterface) TrillianLogSequencerClient

type TrillianLogSequencerServer Uses

type TrillianLogSequencerServer interface {
}

TrillianLogSequencerServer is the server API for TrillianLogSequencer service.

type TrillianLogServer Uses

type TrillianLogServer interface {
    // QueueLeaf adds a single leaf to the queue of pending leaves for a normal
    // log.
    QueueLeaf(context.Context, *QueueLeafRequest) (*QueueLeafResponse, error)
    // AddSequencedLeaf adds a single leaf with an assigned sequence number to a
    // pre-ordered log.
    AddSequencedLeaf(context.Context, *AddSequencedLeafRequest) (*AddSequencedLeafResponse, error)
    // GetInclusionProof returns an inclusion proof for a leaf with a given index
    // in a particular tree.
    //
    // If the requested tree_size is larger than the server is aware of, the
    // response will include the latest known log root and an empty proof.
    GetInclusionProof(context.Context, *GetInclusionProofRequest) (*GetInclusionProofResponse, error)
    // GetInclusionProofByHash returns an inclusion proof for any leaves that have
    // the given Merkle hash in a particular tree.
    //
    // If any of the leaves that match the given Merkle has have a leaf index that
    // is beyond the requested tree size, the corresponding proof entry will be empty.
    GetInclusionProofByHash(context.Context, *GetInclusionProofByHashRequest) (*GetInclusionProofByHashResponse, error)
    // GetConsistencyProof returns a consistency proof between different sizes of
    // a particular tree.
    //
    // If the requested tree size is larger than the server is aware of,
    // the response will include the latest known log root and an empty proof.
    GetConsistencyProof(context.Context, *GetConsistencyProofRequest) (*GetConsistencyProofResponse, error)
    // GetLatestSignedLogRoot returns the latest signed log root for a given tree,
    // and optionally also includes a consistency proof from an earlier tree size
    // to the new size of the tree.
    //
    // If the earlier tree size is larger than the server is aware of,
    // an InvalidArgument error is returned.
    GetLatestSignedLogRoot(context.Context, *GetLatestSignedLogRootRequest) (*GetLatestSignedLogRootResponse, error)
    // GetSequencedLeafCount returns the total number of leaves that have been
    // integrated into the given tree.
    //
    // DO NOT USE - FOR DEBUGGING/TEST ONLY
    //
    // (Use GetLatestSignedLogRoot then de-serialize the Log Root and use
    // use the tree size field within.)
    GetSequencedLeafCount(context.Context, *GetSequencedLeafCountRequest) (*GetSequencedLeafCountResponse, error)
    // GetEntryAndProof returns a log leaf and the corresponding inclusion proof
    // to a specified tree size, for a given leaf index in a particular tree.
    //
    // If the requested tree size is unavailable but the leaf is
    // in scope for the current tree, the returned proof will be for the
    // current tree size rather than the requested tree size.
    GetEntryAndProof(context.Context, *GetEntryAndProofRequest) (*GetEntryAndProofResponse, error)
    // InitLog initializes a particular tree, creating the initial signed log
    // root (which will be of size 0).
    InitLog(context.Context, *InitLogRequest) (*InitLogResponse, error)
    // QueueLeaf adds a batch of leaves to the queue of pending leaves for a
    // normal log.
    QueueLeaves(context.Context, *QueueLeavesRequest) (*QueueLeavesResponse, error)
    // AddSequencedLeaves adds a batch of leaves with assigned sequence numbers
    // to a pre-ordered log.  The indices of the provided leaves must be contiguous.
    AddSequencedLeaves(context.Context, *AddSequencedLeavesRequest) (*AddSequencedLeavesResponse, error)
    // GetLeavesByIndex returns a batch of leaves whose leaf indices are provided
    // in the request.
    GetLeavesByIndex(context.Context, *GetLeavesByIndexRequest) (*GetLeavesByIndexResponse, error)
    // GetLeavesByRange returns a batch of leaves whose leaf indices are in a
    // sequential range.
    GetLeavesByRange(context.Context, *GetLeavesByRangeRequest) (*GetLeavesByRangeResponse, error)
    // GetLeavesByHash returns a batch of leaves which are identified by their
    // Merkle leaf hash values.
    GetLeavesByHash(context.Context, *GetLeavesByHashRequest) (*GetLeavesByHashResponse, error)
}

TrillianLogServer is the server API for TrillianLog service.

type TrillianMapClient Uses

type TrillianMapClient interface {
    // GetLeaves returns an inclusion proof for each index requested.
    // For indexes that do not exist, the inclusion proof will use nil for the
    // empty leaf value.
    GetLeaf(ctx context.Context, in *GetMapLeafRequest, opts ...grpc.CallOption) (*GetMapLeafResponse, error)
    GetLeafByRevision(ctx context.Context, in *GetMapLeafByRevisionRequest, opts ...grpc.CallOption) (*GetMapLeafResponse, error)
    GetLeaves(ctx context.Context, in *GetMapLeavesRequest, opts ...grpc.CallOption) (*GetMapLeavesResponse, error)
    GetLeavesByRevision(ctx context.Context, in *GetMapLeavesByRevisionRequest, opts ...grpc.CallOption) (*GetMapLeavesResponse, error)
    // Deprecated: Do not use.
    // Deprecated: this should only be used by writers, which should migrate
    // to TrillianMapWrite#GetLeavesByRevision
    GetLeavesByRevisionNoProof(ctx context.Context, in *GetMapLeavesByRevisionRequest, opts ...grpc.CallOption) (*MapLeaves, error)
    // GetLastInRangeByRevision returns the last leaf in a requested range.
    GetLastInRangeByRevision(ctx context.Context, in *GetLastInRangeByRevisionRequest, opts ...grpc.CallOption) (*MapLeaf, error)
    // Deprecated: Do not use.
    // Deprecated: this should only be used by writers, which should migrate
    // to TrillianMapWrite#WriteLeaves
    SetLeaves(ctx context.Context, in *SetMapLeavesRequest, opts ...grpc.CallOption) (*SetMapLeavesResponse, error)
    GetSignedMapRoot(ctx context.Context, in *GetSignedMapRootRequest, opts ...grpc.CallOption) (*GetSignedMapRootResponse, error)
    GetSignedMapRootByRevision(ctx context.Context, in *GetSignedMapRootByRevisionRequest, opts ...grpc.CallOption) (*GetSignedMapRootResponse, error)
    InitMap(ctx context.Context, in *InitMapRequest, opts ...grpc.CallOption) (*InitMapResponse, error)
}

TrillianMapClient is the client API for TrillianMap service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTrillianMapClient Uses

func NewTrillianMapClient(cc grpc.ClientConnInterface) TrillianMapClient

type TrillianMapServer Uses

type TrillianMapServer interface {
    // GetLeaves returns an inclusion proof for each index requested.
    // For indexes that do not exist, the inclusion proof will use nil for the
    // empty leaf value.
    GetLeaf(context.Context, *GetMapLeafRequest) (*GetMapLeafResponse, error)
    GetLeafByRevision(context.Context, *GetMapLeafByRevisionRequest) (*GetMapLeafResponse, error)
    GetLeaves(context.Context, *GetMapLeavesRequest) (*GetMapLeavesResponse, error)
    GetLeavesByRevision(context.Context, *GetMapLeavesByRevisionRequest) (*GetMapLeavesResponse, error)
    // Deprecated: Do not use.
    // Deprecated: this should only be used by writers, which should migrate
    // to TrillianMapWrite#GetLeavesByRevision
    GetLeavesByRevisionNoProof(context.Context, *GetMapLeavesByRevisionRequest) (*MapLeaves, error)
    // GetLastInRangeByRevision returns the last leaf in a requested range.
    GetLastInRangeByRevision(context.Context, *GetLastInRangeByRevisionRequest) (*MapLeaf, error)
    // Deprecated: Do not use.
    // Deprecated: this should only be used by writers, which should migrate
    // to TrillianMapWrite#WriteLeaves
    SetLeaves(context.Context, *SetMapLeavesRequest) (*SetMapLeavesResponse, error)
    GetSignedMapRoot(context.Context, *GetSignedMapRootRequest) (*GetSignedMapRootResponse, error)
    GetSignedMapRootByRevision(context.Context, *GetSignedMapRootByRevisionRequest) (*GetSignedMapRootResponse, error)
    InitMap(context.Context, *InitMapRequest) (*InitMapResponse, error)
}

TrillianMapServer is the server API for TrillianMap service.

type TrillianMapWriteClient Uses

type TrillianMapWriteClient interface {
    // GetLeavesByRevision returns the requested map leaves without inclusion proofs.
    // This API is designed for internal use where verification is not needed.
    GetLeavesByRevision(ctx context.Context, in *GetMapLeavesByRevisionRequest, opts ...grpc.CallOption) (*MapLeaves, error)
    // WriteLeaves sets the values for the provided leaves, and returns the new map
    // revision if successful.
    WriteLeaves(ctx context.Context, in *WriteMapLeavesRequest, opts ...grpc.CallOption) (*WriteMapLeavesResponse, error)
}

TrillianMapWriteClient is the client API for TrillianMapWrite service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTrillianMapWriteClient Uses

func NewTrillianMapWriteClient(cc grpc.ClientConnInterface) TrillianMapWriteClient

type TrillianMapWriteServer Uses

type TrillianMapWriteServer interface {
    // GetLeavesByRevision returns the requested map leaves without inclusion proofs.
    // This API is designed for internal use where verification is not needed.
    GetLeavesByRevision(context.Context, *GetMapLeavesByRevisionRequest) (*MapLeaves, error)
    // WriteLeaves sets the values for the provided leaves, and returns the new map
    // revision if successful.
    WriteLeaves(context.Context, *WriteMapLeavesRequest) (*WriteMapLeavesResponse, error)
}

TrillianMapWriteServer is the server API for TrillianMapWrite service.

type UndeleteTreeRequest Uses

type UndeleteTreeRequest struct {

    // ID of the tree to undelete.
    TreeId int64 `protobuf:"varint,1,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"`
    // contains filtered or unexported fields
}

UndeleteTree request.

func (*UndeleteTreeRequest) Descriptor Uses

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

Deprecated: Use UndeleteTreeRequest.ProtoReflect.Descriptor instead.

func (*UndeleteTreeRequest) GetTreeId Uses

func (x *UndeleteTreeRequest) GetTreeId() int64

func (*UndeleteTreeRequest) ProtoMessage Uses

func (*UndeleteTreeRequest) ProtoMessage()

func (*UndeleteTreeRequest) ProtoReflect Uses

func (x *UndeleteTreeRequest) ProtoReflect() protoreflect.Message

func (*UndeleteTreeRequest) Reset Uses

func (x *UndeleteTreeRequest) Reset()

func (*UndeleteTreeRequest) String Uses

func (x *UndeleteTreeRequest) String() string

type UnimplementedTrillianAdminServer Uses

type UnimplementedTrillianAdminServer struct {
}

UnimplementedTrillianAdminServer can be embedded to have forward compatible implementations.

func (*UnimplementedTrillianAdminServer) CreateTree Uses

func (*UnimplementedTrillianAdminServer) CreateTree(context.Context, *CreateTreeRequest) (*Tree, error)

func (*UnimplementedTrillianAdminServer) DeleteTree Uses

func (*UnimplementedTrillianAdminServer) DeleteTree(context.Context, *DeleteTreeRequest) (*Tree, error)

func (*UnimplementedTrillianAdminServer) GetTree Uses

func (*UnimplementedTrillianAdminServer) GetTree(context.Context, *GetTreeRequest) (*Tree, error)

func (*UnimplementedTrillianAdminServer) ListTrees Uses

func (*UnimplementedTrillianAdminServer) ListTrees(context.Context, *ListTreesRequest) (*ListTreesResponse, error)

func (*UnimplementedTrillianAdminServer) UndeleteTree Uses

func (*UnimplementedTrillianAdminServer) UndeleteTree(context.Context, *UndeleteTreeRequest) (*Tree, error)

func (*UnimplementedTrillianAdminServer) UpdateTree Uses

func (*UnimplementedTrillianAdminServer) UpdateTree(context.Context, *UpdateTreeRequest) (*Tree, error)

type UnimplementedTrillianLogSequencerServer Uses

type UnimplementedTrillianLogSequencerServer struct {
}

UnimplementedTrillianLogSequencerServer can be embedded to have forward compatible implementations.

type UnimplementedTrillianLogServer Uses

type UnimplementedTrillianLogServer struct {
}

UnimplementedTrillianLogServer can be embedded to have forward compatible implementations.

func (*UnimplementedTrillianLogServer) AddSequencedLeaf Uses

func (*UnimplementedTrillianLogServer) AddSequencedLeaf(context.Context, *AddSequencedLeafRequest) (*AddSequencedLeafResponse, error)

func (*UnimplementedTrillianLogServer) AddSequencedLeaves Uses

func (*UnimplementedTrillianLogServer) AddSequencedLeaves(context.Context, *AddSequencedLeavesRequest) (*AddSequencedLeavesResponse, error)

func (*UnimplementedTrillianLogServer) GetConsistencyProof Uses

func (*UnimplementedTrillianLogServer) GetConsistencyProof(context.Context, *GetConsistencyProofRequest) (*GetConsistencyProofResponse, error)

func (*UnimplementedTrillianLogServer) GetEntryAndProof Uses

func (*UnimplementedTrillianLogServer) GetEntryAndProof(context.Context, *GetEntryAndProofRequest) (*GetEntryAndProofResponse, error)

func (*UnimplementedTrillianLogServer) GetInclusionProof Uses

func (*UnimplementedTrillianLogServer) GetInclusionProof(context.Context, *GetInclusionProofRequest) (*GetInclusionProofResponse, error)

func (*UnimplementedTrillianLogServer) GetInclusionProofByHash Uses

func (*UnimplementedTrillianLogServer) GetInclusionProofByHash(context.Context, *GetInclusionProofByHashRequest) (*GetInclusionProofByHashResponse, error)

func (*UnimplementedTrillianLogServer) GetLatestSignedLogRoot Uses

func (*UnimplementedTrillianLogServer) GetLatestSignedLogRoot(context.Context, *GetLatestSignedLogRootRequest) (*GetLatestSignedLogRootResponse, error)

func (*UnimplementedTrillianLogServer) GetLeavesByHash Uses

func (*UnimplementedTrillianLogServer) GetLeavesByHash(context.Context, *GetLeavesByHashRequest) (*GetLeavesByHashResponse, error)

func (*UnimplementedTrillianLogServer) GetLeavesByIndex Uses

func (*UnimplementedTrillianLogServer) GetLeavesByIndex(context.Context, *GetLeavesByIndexRequest) (*GetLeavesByIndexResponse, error)

func (*UnimplementedTrillianLogServer) GetLeavesByRange Uses

func (*UnimplementedTrillianLogServer) GetLeavesByRange(context.Context, *GetLeavesByRangeRequest) (*GetLeavesByRangeResponse, error)

func (*UnimplementedTrillianLogServer) GetSequencedLeafCount Uses

func (*UnimplementedTrillianLogServer) GetSequencedLeafCount(context.Context, *GetSequencedLeafCountRequest) (*GetSequencedLeafCountResponse, error)

func (*UnimplementedTrillianLogServer) InitLog Uses

func (*UnimplementedTrillianLogServer) InitLog(context.Context, *InitLogRequest) (*InitLogResponse, error)

func (*UnimplementedTrillianLogServer) QueueLeaf Uses

func (*UnimplementedTrillianLogServer) QueueLeaf(context.Context, *QueueLeafRequest) (*QueueLeafResponse, error)

func (*UnimplementedTrillianLogServer) QueueLeaves Uses

func (*UnimplementedTrillianLogServer) QueueLeaves(context.Context, *QueueLeavesRequest) (*QueueLeavesResponse, error)

type UnimplementedTrillianMapServer Uses

type UnimplementedTrillianMapServer struct {
}

UnimplementedTrillianMapServer can be embedded to have forward compatible implementations.

func (*UnimplementedTrillianMapServer) GetLastInRangeByRevision Uses

func (*UnimplementedTrillianMapServer) GetLastInRangeByRevision(context.Context, *GetLastInRangeByRevisionRequest) (*MapLeaf, error)

func (*UnimplementedTrillianMapServer) GetLeaf Uses

func (*UnimplementedTrillianMapServer) GetLeaf(context.Context, *GetMapLeafRequest) (*GetMapLeafResponse, error)

func (*UnimplementedTrillianMapServer) GetLeafByRevision Uses

func (*UnimplementedTrillianMapServer) GetLeafByRevision(context.Context, *GetMapLeafByRevisionRequest) (*GetMapLeafResponse, error)

func (*UnimplementedTrillianMapServer) GetLeaves Uses

func (*UnimplementedTrillianMapServer) GetLeaves(context.Context, *GetMapLeavesRequest) (*GetMapLeavesResponse, error)

func (*UnimplementedTrillianMapServer) GetLeavesByRevision Uses

func (*UnimplementedTrillianMapServer) GetLeavesByRevision(context.Context, *GetMapLeavesByRevisionRequest) (*GetMapLeavesResponse, error)

func (*UnimplementedTrillianMapServer) GetLeavesByRevisionNoProof Uses

func (*UnimplementedTrillianMapServer) GetLeavesByRevisionNoProof(context.Context, *GetMapLeavesByRevisionRequest) (*MapLeaves, error)

func (*UnimplementedTrillianMapServer) GetSignedMapRoot Uses

func (*UnimplementedTrillianMapServer) GetSignedMapRoot(context.Context, *GetSignedMapRootRequest) (*GetSignedMapRootResponse, error)

func (*UnimplementedTrillianMapServer) GetSignedMapRootByRevision Uses

func (*UnimplementedTrillianMapServer) GetSignedMapRootByRevision(context.Context, *GetSignedMapRootByRevisionRequest) (*GetSignedMapRootResponse, error)

func (*UnimplementedTrillianMapServer) InitMap Uses

func (*UnimplementedTrillianMapServer) InitMap(context.Context, *InitMapRequest) (*InitMapResponse, error)

func (*UnimplementedTrillianMapServer) SetLeaves Uses

func (*UnimplementedTrillianMapServer) SetLeaves(context.Context, *SetMapLeavesRequest) (*SetMapLeavesResponse, error)

type UnimplementedTrillianMapWriteServer Uses

type UnimplementedTrillianMapWriteServer struct {
}

UnimplementedTrillianMapWriteServer can be embedded to have forward compatible implementations.

func (*UnimplementedTrillianMapWriteServer) GetLeavesByRevision Uses

func (*UnimplementedTrillianMapWriteServer) GetLeavesByRevision(context.Context, *GetMapLeavesByRevisionRequest) (*MapLeaves, error)

func (*UnimplementedTrillianMapWriteServer) WriteLeaves Uses

func (*UnimplementedTrillianMapWriteServer) WriteLeaves(context.Context, *WriteMapLeavesRequest) (*WriteMapLeavesResponse, error)

type UpdateTreeRequest Uses

type UpdateTreeRequest struct {

    // Tree to be updated.
    Tree *Tree `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree,omitempty"`
    // Fields modified by the update request.
    // For example: "tree_state", "display_name", "description".
    UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
    // contains filtered or unexported fields
}

UpdateTree request.

func (*UpdateTreeRequest) Descriptor Uses

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

Deprecated: Use UpdateTreeRequest.ProtoReflect.Descriptor instead.

func (*UpdateTreeRequest) GetTree Uses

func (x *UpdateTreeRequest) GetTree() *Tree

func (*UpdateTreeRequest) GetUpdateMask Uses

func (x *UpdateTreeRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateTreeRequest) ProtoMessage Uses

func (*UpdateTreeRequest) ProtoMessage()

func (*UpdateTreeRequest) ProtoReflect Uses

func (x *UpdateTreeRequest) ProtoReflect() protoreflect.Message

func (*UpdateTreeRequest) Reset Uses

func (x *UpdateTreeRequest) Reset()

func (*UpdateTreeRequest) String Uses

func (x *UpdateTreeRequest) String() string

type WriteMapLeavesRequest Uses

type WriteMapLeavesRequest struct {
    MapId int64 `protobuf:"varint,1,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
    // The leaves being set must have unique Index values within the request.
    Leaves []*MapLeaf `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
    // Metadata that the Map should associate with the new Map root after
    // incorporating the leaf changes.  The metadata will be reflected in the
    // Map Root published for this revision.
    // Map personalities should use metadata to persist any state needed later
    // to continue mapping from an external data source.
    Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
    // The map revision to associate the leaves with. The request will fail if
    // this revision already exists, does not match the current write revision, or
    // is not positive. Note that revision = 0 is reserved for the empty tree.
    ExpectRevision int64 `protobuf:"varint,4,opt,name=expect_revision,json=expectRevision,proto3" json:"expect_revision,omitempty"`
    // contains filtered or unexported fields
}

func (*WriteMapLeavesRequest) Descriptor Uses

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

Deprecated: Use WriteMapLeavesRequest.ProtoReflect.Descriptor instead.

func (*WriteMapLeavesRequest) GetExpectRevision Uses

func (x *WriteMapLeavesRequest) GetExpectRevision() int64

func (*WriteMapLeavesRequest) GetLeaves Uses

func (x *WriteMapLeavesRequest) GetLeaves() []*MapLeaf

func (*WriteMapLeavesRequest) GetMapId Uses

func (x *WriteMapLeavesRequest) GetMapId() int64

func (*WriteMapLeavesRequest) GetMetadata Uses

func (x *WriteMapLeavesRequest) GetMetadata() []byte

func (*WriteMapLeavesRequest) ProtoMessage Uses

func (*WriteMapLeavesRequest) ProtoMessage()

func (*WriteMapLeavesRequest) ProtoReflect Uses

func (x *WriteMapLeavesRequest) ProtoReflect() protoreflect.Message

func (*WriteMapLeavesRequest) Reset Uses

func (x *WriteMapLeavesRequest) Reset()

func (*WriteMapLeavesRequest) String Uses

func (x *WriteMapLeavesRequest) String() string

type WriteMapLeavesResponse Uses

type WriteMapLeavesResponse struct {

    // The map revision that the leaves will be published at.
    // This may be accompanied by a proof that the write request has been included
    // in an input log in the future.
    Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
    // contains filtered or unexported fields
}

func (*WriteMapLeavesResponse) Descriptor Uses

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

Deprecated: Use WriteMapLeavesResponse.ProtoReflect.Descriptor instead.

func (*WriteMapLeavesResponse) GetRevision Uses

func (x *WriteMapLeavesResponse) GetRevision() int64

func (*WriteMapLeavesResponse) ProtoMessage Uses

func (*WriteMapLeavesResponse) ProtoMessage()

func (*WriteMapLeavesResponse) ProtoReflect Uses

func (x *WriteMapLeavesResponse) ProtoReflect() protoreflect.Message

func (*WriteMapLeavesResponse) Reset Uses

func (x *WriteMapLeavesResponse) Reset()

func (*WriteMapLeavesResponse) String Uses

func (x *WriteMapLeavesResponse) String() string

Directories

PathSynopsis
clientPackage client verifies responses from the Trillian log.
client/backoffPackage backoff allows retrying an operation with backoff.
client/rpcflags
client/timeoutPackage timeout enforces a maximum timeout on all outgoing rpcs.
cmd
cmd/createtreePackage main contains the implementation and entry point for the createtree command.
cmd/createtree/keys
cmd/deletetreePackage main contains the implementation and entry point for the deletetree command.
cmd/get_tree_public_keyPackage main contains the implementation and entry point for the get_tree_public_key command.
cmd/internal/serverutilPackage serverutil holds code for running Trillian servers.
cmd/trillian_log_serverThe trillian_log_server binary runs the Trillian log server, and also provides an admin server.
cmd/trillian_log_signerThe trillian_log_signer binary runs the log signing code.
cmd/trillian_map_server
cmd/updatetreePackage main contains the implementation and entry point for the updatetree command.
cryptoPackage crypto provides signing functionality for Trillian.
crypto/keysPackage keys provides access to public and private keys for signing and verification of signatures.
crypto/keys/der
crypto/keys/der/protoPackage proto registers a DER keys.ProtoHandler using keys.RegisterHandler.
crypto/keyspb
crypto/keys/pem
crypto/keys/pem/protoPackage proto registers a PEM keys.ProtoHandler using keys.RegisterHandler.
crypto/keys/pkcs11Package pkcs11 provides access to private keys using a PKCS#11 interface.
crypto/keys/pkcs11/protoPackage proto registers a PKCS#11 keys.ProtoHandler using keys.RegisterHandler.
crypto/keys/testonlyPackage testonly contains code and data that should only be used by tests.
crypto/sigpb
extensionPackage extension provides an extension mechanism for Trillian code to access fork-specific functionality.
integrationPackage integration contains some integration tests which are intended to serve as a way of checking that various top-level binaries work as intended, as well as providing a simple example of how to run and use the various servers.
integration/adminPackage admin contains integration tests for the Admin server.
integration/maptest
integration/quotaPackage quota contains quota-related integration tests.
integration/storagetestPackage storagetest verifies that storage interfaces behave correctly
logPackage log holds the code that is specific to Trillian logs core operation, particularly the code for sequencing.
maps
merklePackage merkle provides Merkle tree manipulation functions.
merkle/compactPackage compact provides compact Merkle tree data structures.
merkle/coniksPackage coniks provides hashing for maps.
merkle/hashers
merkle/maphasherPackage maphasher provides hashing for maps.
merkle/rfc6962Package rfc6962 provides hashing functionality according to RFC6962.
merkle/smtPackage smt contains the implementation of the sparse Merkle tree logic.
merkle/testonlyPackage testonly contains code and data for testing Merkle trees.
monitoringPackage monitoring provides monitoring functionality.
monitoring/opencensus
monitoring/prometheusPackage prometheus provides a Prometheus-based implementation of the MetricFactory abstraction.
monitoring/prometheus/etcdiscoverThe etcdiscover binary monitors etcd to track the set of instances that support a gRPC service, and updates a file so that Prometheus can track those instances.
monitoring/testonly
quotaPackage quota defines Trillian's Quota Management service.
quota/cacheqmPackage cacheqm contains a caching quota.Manager implementation.
quota/etcd
quota/etcd/etcdqmPackage etcdqm contains an etcd-based quota.Manager implementation.
quota/etcd/quotaapiPackage quotaapi provides a Quota admin server implementation.
quota/etcd/quotapbPackage quotapb contains definitions for quota API protos and RPC service.
quota/etcd/storagePackage storage contains storage classes for etcd-based quotas.
quota/etcd/storagepb
quota/mysqlqmPackage mysqlqm defines a MySQL-based quota.Manager implementation.
server
server/adminPackage admin contains the TrillianAdminServer implementation.
server/errorsPackage errors contains utilities to translate TrillianErrors to gRPC errors.
server/interceptorPackage interceptor defines gRPC interceptors for Trillian.
storagePackage storage provides general interfaces to Trillian storage layers.
storage/cachePackage cache provides subtree caching functionality.
storage/cloudspanner
storage/cloudspanner/spannerpb
storage/memoryPackage memory provides a simple in-process implementation of the tree- and log-storage interfaces.
storage/mysqlPackage mysql provides a MySQL-based storage layer implementation.
storage/postgres
storage/postgres/testdbPackage testdb creates new databases for tests.
storage/storagepbPackage storagepb contains protobuf definitions used by various storage implementations.
storage/storagepb/convertPackage convert contains helpers used by storage implementations.
storage/testdbPackage testdb creates new databases for tests.
storage/testonlyPackage testonly holds test-specific code for Trillian storage layers.
storage/tools/dump_treeThe dump_tree program uses the in memory storage implementation to create a sequenced log tree of a particular size using known leaf data and then dumps out the resulting SubTree protos for examination and debugging.
storage/tools/dump_tree/dumplib
storage/tools/hasherThe hasher program provides a simple CLI for producing Merkle tree hashes.
storage/tools/log_clientThe log_client binary retrieves leaves from a log.
storage/treePackage tree defines types that help navigating a tree in storage.
testonlyPackage testonly contains code and data that should only be used by tests.
testonly/flagsaverPackage flagsaver provides a simple way to save and restore flag values.
testonly/integrationPackage integration provides test-only code for performing integrated tests of Trillian functionality.
testonly/integration/etcd
testonly/matchersPackage matchers contains additional gomock matchers.
testonly/mdmPackage mdm provides test-only code for checking the merge delay of a Trillian log.
testonly/mdm/mdmtestThe mdmtest binary runs merge delay tests against a Trillian Log.
testonly/setup
testonly/tmockPackage tmock is a generated GoMock package.
treesPackage trees contains utility method for retrieving trees and acquiring objects (hashers, signers) associated with them.
typesPackage types defines serialization and parsing functions for SignedLogRoot and SignedMapRoot fields.
utilPackage util holds various utility functions used throughout the Trillian codebase.
util/clockPackage clock contains time utilities, and types that allow mocking system time in tests.
util/election
util/election2Package election2 provides master election tools, and interfaces for plugging in a custom underlying mechanism.
util/election2/etcdPackage etcd provides an implementation of master election based on etcd.
util/election2/testonlyPackage testonly contains an Election implementation for testing.
util/etcd

Package trillian imports 17 packages (graph) and is imported by 227 packages. Updated 2020-11-16. Refresh now. Tools for package owners.