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

package trillian

import "github.com/google/trillian"

Package trillian contains the generated protobuf code for the Trillian API.

Index

Constants

const (
	TrillianAdmin_ListTrees_FullMethodName    = "/trillian.TrillianAdmin/ListTrees"
	TrillianAdmin_GetTree_FullMethodName      = "/trillian.TrillianAdmin/GetTree"
	TrillianAdmin_CreateTree_FullMethodName   = "/trillian.TrillianAdmin/CreateTree"
	TrillianAdmin_UpdateTree_FullMethodName   = "/trillian.TrillianAdmin/UpdateTree"
	TrillianAdmin_DeleteTree_FullMethodName   = "/trillian.TrillianAdmin/DeleteTree"
	TrillianAdmin_UndeleteTree_FullMethodName = "/trillian.TrillianAdmin/UndeleteTree"
)
const (
	TrillianLog_QueueLeaf_FullMethodName               = "/trillian.TrillianLog/QueueLeaf"
	TrillianLog_GetInclusionProof_FullMethodName       = "/trillian.TrillianLog/GetInclusionProof"
	TrillianLog_GetInclusionProofByHash_FullMethodName = "/trillian.TrillianLog/GetInclusionProofByHash"
	TrillianLog_GetConsistencyProof_FullMethodName     = "/trillian.TrillianLog/GetConsistencyProof"
	TrillianLog_GetLatestSignedLogRoot_FullMethodName  = "/trillian.TrillianLog/GetLatestSignedLogRoot"
	TrillianLog_GetEntryAndProof_FullMethodName        = "/trillian.TrillianLog/GetEntryAndProof"
	TrillianLog_InitLog_FullMethodName                 = "/trillian.TrillianLog/InitLog"
	TrillianLog_AddSequencedLeaves_FullMethodName      = "/trillian.TrillianLog/AddSequencedLeaves"
	TrillianLog_GetLeavesByRange_FullMethodName        = "/trillian.TrillianLog/GetLeavesByRange"
)

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 (
	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",
		3: "PREORDERED_LOG",
	}
	TreeType_value = map[string]int32{
		"UNKNOWN_TREE_TYPE": 0,
		"LOG":               1,
		"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_proto protoreflect.FileDescriptor
var TrillianAdmin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "trillian.TrillianAdmin",
	HandlerType: (*TrillianAdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListTrees",
			Handler:    _TrillianAdmin_ListTrees_Handler,
		},
		{
			MethodName: "GetTree",
			Handler:    _TrillianAdmin_GetTree_Handler,
		},
		{
			MethodName: "CreateTree",
			Handler:    _TrillianAdmin_CreateTree_Handler,
		},
		{
			MethodName: "UpdateTree",
			Handler:    _TrillianAdmin_UpdateTree_Handler,
		},
		{
			MethodName: "DeleteTree",
			Handler:    _TrillianAdmin_DeleteTree_Handler,
		},
		{
			MethodName: "UndeleteTree",
			Handler:    _TrillianAdmin_UndeleteTree_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "trillian_admin_api.proto",
}

TrillianAdmin_ServiceDesc is the grpc.ServiceDesc for TrillianAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

var TrillianLog_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "trillian.TrillianLog",
	HandlerType: (*TrillianLogServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "QueueLeaf",
			Handler:    _TrillianLog_QueueLeaf_Handler,
		},
		{
			MethodName: "GetInclusionProof",
			Handler:    _TrillianLog_GetInclusionProof_Handler,
		},
		{
			MethodName: "GetInclusionProofByHash",
			Handler:    _TrillianLog_GetInclusionProofByHash_Handler,
		},
		{
			MethodName: "GetConsistencyProof",
			Handler:    _TrillianLog_GetConsistencyProof_Handler,
		},
		{
			MethodName: "GetLatestSignedLogRoot",
			Handler:    _TrillianLog_GetLatestSignedLogRoot_Handler,
		},
		{
			MethodName: "GetEntryAndProof",
			Handler:    _TrillianLog_GetEntryAndProof_Handler,
		},
		{
			MethodName: "InitLog",
			Handler:    _TrillianLog_InitLog_Handler,
		},
		{
			MethodName: "AddSequencedLeaves",
			Handler:    _TrillianLog_AddSequencedLeaves_Handler,
		},
		{
			MethodName: "GetLeavesByRange",
			Handler:    _TrillianLog_GetLeavesByRange_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "trillian_log_api.proto",
}

TrillianLog_ServiceDesc is the grpc.ServiceDesc for TrillianLog service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTrillianAdminServer

func RegisterTrillianAdminServer(s grpc.ServiceRegistrar, srv TrillianAdminServer)

func RegisterTrillianLogServer

func RegisterTrillianLogServer(s grpc.ServiceRegistrar, srv TrillianLogServer)

Types

type AddSequencedLeavesRequest

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

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

Deprecated: Use AddSequencedLeavesRequest.ProtoReflect.Descriptor instead.

func (*AddSequencedLeavesRequest) GetChargeTo

func (x *AddSequencedLeavesRequest) GetChargeTo() *ChargeTo

func (*AddSequencedLeavesRequest) GetLeaves

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

func (*AddSequencedLeavesRequest) GetLogId

func (x *AddSequencedLeavesRequest) GetLogId() int64

func (*AddSequencedLeavesRequest) ProtoMessage

func (*AddSequencedLeavesRequest) ProtoMessage()

func (*AddSequencedLeavesRequest) ProtoReflect

func (*AddSequencedLeavesRequest) Reset

func (x *AddSequencedLeavesRequest) Reset()

func (*AddSequencedLeavesRequest) String

func (x *AddSequencedLeavesRequest) String() string

type AddSequencedLeavesResponse

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

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

Deprecated: Use AddSequencedLeavesResponse.ProtoReflect.Descriptor instead.

func (*AddSequencedLeavesResponse) GetResults

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

func (*AddSequencedLeavesResponse) ProtoMessage

func (*AddSequencedLeavesResponse) ProtoMessage()

func (*AddSequencedLeavesResponse) ProtoReflect

func (*AddSequencedLeavesResponse) Reset

func (x *AddSequencedLeavesResponse) Reset()

func (*AddSequencedLeavesResponse) String

func (x *AddSequencedLeavesResponse) String() string

type ChargeTo

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 QueueLeaf 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

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

Deprecated: Use ChargeTo.ProtoReflect.Descriptor instead.

func (*ChargeTo) GetUser

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

func (*ChargeTo) ProtoMessage

func (*ChargeTo) ProtoMessage()

func (*ChargeTo) ProtoReflect

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

func (*ChargeTo) Reset

func (x *ChargeTo) Reset()

func (*ChargeTo) String

func (x *ChargeTo) String() string

type CreateTreeRequest

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"`
	// contains filtered or unexported fields
}

CreateTree request.

func (*CreateTreeRequest) Descriptor

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

Deprecated: Use CreateTreeRequest.ProtoReflect.Descriptor instead.

func (*CreateTreeRequest) GetTree

func (x *CreateTreeRequest) GetTree() *Tree

func (*CreateTreeRequest) ProtoMessage

func (*CreateTreeRequest) ProtoMessage()

func (*CreateTreeRequest) ProtoReflect

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

func (*CreateTreeRequest) Reset

func (x *CreateTreeRequest) Reset()

func (*CreateTreeRequest) String

func (x *CreateTreeRequest) String() string

type DeleteTreeRequest

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

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

Deprecated: Use DeleteTreeRequest.ProtoReflect.Descriptor instead.

func (*DeleteTreeRequest) GetTreeId

func (x *DeleteTreeRequest) GetTreeId() int64

func (*DeleteTreeRequest) ProtoMessage

func (*DeleteTreeRequest) ProtoMessage()

func (*DeleteTreeRequest) ProtoReflect

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

func (*DeleteTreeRequest) Reset

func (x *DeleteTreeRequest) Reset()

func (*DeleteTreeRequest) String

func (x *DeleteTreeRequest) String() string

type GetConsistencyProofRequest

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

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

Deprecated: Use GetConsistencyProofRequest.ProtoReflect.Descriptor instead.

func (*GetConsistencyProofRequest) GetChargeTo

func (x *GetConsistencyProofRequest) GetChargeTo() *ChargeTo

func (*GetConsistencyProofRequest) GetFirstTreeSize

func (x *GetConsistencyProofRequest) GetFirstTreeSize() int64

func (*GetConsistencyProofRequest) GetLogId

func (x *GetConsistencyProofRequest) GetLogId() int64

func (*GetConsistencyProofRequest) GetSecondTreeSize

func (x *GetConsistencyProofRequest) GetSecondTreeSize() int64

func (*GetConsistencyProofRequest) ProtoMessage

func (*GetConsistencyProofRequest) ProtoMessage()

func (*GetConsistencyProofRequest) ProtoReflect

func (*GetConsistencyProofRequest) Reset

func (x *GetConsistencyProofRequest) Reset()

func (*GetConsistencyProofRequest) String

func (x *GetConsistencyProofRequest) String() string

type GetConsistencyProofResponse

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

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

Deprecated: Use GetConsistencyProofResponse.ProtoReflect.Descriptor instead.

func (*GetConsistencyProofResponse) GetProof

func (x *GetConsistencyProofResponse) GetProof() *Proof

func (*GetConsistencyProofResponse) GetSignedLogRoot

func (x *GetConsistencyProofResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetConsistencyProofResponse) ProtoMessage

func (*GetConsistencyProofResponse) ProtoMessage()

func (*GetConsistencyProofResponse) ProtoReflect

func (*GetConsistencyProofResponse) Reset

func (x *GetConsistencyProofResponse) Reset()

func (*GetConsistencyProofResponse) String

func (x *GetConsistencyProofResponse) String() string

type GetEntryAndProofRequest

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

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

Deprecated: Use GetEntryAndProofRequest.ProtoReflect.Descriptor instead.

func (*GetEntryAndProofRequest) GetChargeTo

func (x *GetEntryAndProofRequest) GetChargeTo() *ChargeTo

func (*GetEntryAndProofRequest) GetLeafIndex

func (x *GetEntryAndProofRequest) GetLeafIndex() int64

func (*GetEntryAndProofRequest) GetLogId

func (x *GetEntryAndProofRequest) GetLogId() int64

func (*GetEntryAndProofRequest) GetTreeSize

func (x *GetEntryAndProofRequest) GetTreeSize() int64

func (*GetEntryAndProofRequest) ProtoMessage

func (*GetEntryAndProofRequest) ProtoMessage()

func (*GetEntryAndProofRequest) ProtoReflect

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

func (*GetEntryAndProofRequest) Reset

func (x *GetEntryAndProofRequest) Reset()

func (*GetEntryAndProofRequest) String

func (x *GetEntryAndProofRequest) String() string

type GetEntryAndProofResponse

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

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

Deprecated: Use GetEntryAndProofResponse.ProtoReflect.Descriptor instead.

func (*GetEntryAndProofResponse) GetLeaf

func (x *GetEntryAndProofResponse) GetLeaf() *LogLeaf

func (*GetEntryAndProofResponse) GetProof

func (x *GetEntryAndProofResponse) GetProof() *Proof

func (*GetEntryAndProofResponse) GetSignedLogRoot

func (x *GetEntryAndProofResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetEntryAndProofResponse) ProtoMessage

func (*GetEntryAndProofResponse) ProtoMessage()

func (*GetEntryAndProofResponse) ProtoReflect

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

func (*GetEntryAndProofResponse) Reset

func (x *GetEntryAndProofResponse) Reset()

func (*GetEntryAndProofResponse) String

func (x *GetEntryAndProofResponse) String() string

type GetInclusionProofByHashRequest

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

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

Deprecated: Use GetInclusionProofByHashRequest.ProtoReflect.Descriptor instead.

func (*GetInclusionProofByHashRequest) GetChargeTo

func (x *GetInclusionProofByHashRequest) GetChargeTo() *ChargeTo

func (*GetInclusionProofByHashRequest) GetLeafHash

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

func (*GetInclusionProofByHashRequest) GetLogId

func (x *GetInclusionProofByHashRequest) GetLogId() int64

func (*GetInclusionProofByHashRequest) GetOrderBySequence

func (x *GetInclusionProofByHashRequest) GetOrderBySequence() bool

func (*GetInclusionProofByHashRequest) GetTreeSize

func (x *GetInclusionProofByHashRequest) GetTreeSize() int64

func (*GetInclusionProofByHashRequest) ProtoMessage

func (*GetInclusionProofByHashRequest) ProtoMessage()

func (*GetInclusionProofByHashRequest) ProtoReflect

func (*GetInclusionProofByHashRequest) Reset

func (x *GetInclusionProofByHashRequest) Reset()

func (*GetInclusionProofByHashRequest) String

type GetInclusionProofByHashResponse

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

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

Deprecated: Use GetInclusionProofByHashResponse.ProtoReflect.Descriptor instead.

func (*GetInclusionProofByHashResponse) GetProof

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

func (*GetInclusionProofByHashResponse) GetSignedLogRoot

func (x *GetInclusionProofByHashResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetInclusionProofByHashResponse) ProtoMessage

func (*GetInclusionProofByHashResponse) ProtoMessage()

func (*GetInclusionProofByHashResponse) ProtoReflect

func (*GetInclusionProofByHashResponse) Reset

func (*GetInclusionProofByHashResponse) String

type GetInclusionProofRequest

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

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

Deprecated: Use GetInclusionProofRequest.ProtoReflect.Descriptor instead.

func (*GetInclusionProofRequest) GetChargeTo

func (x *GetInclusionProofRequest) GetChargeTo() *ChargeTo

func (*GetInclusionProofRequest) GetLeafIndex

func (x *GetInclusionProofRequest) GetLeafIndex() int64

func (*GetInclusionProofRequest) GetLogId

func (x *GetInclusionProofRequest) GetLogId() int64

func (*GetInclusionProofRequest) GetTreeSize

func (x *GetInclusionProofRequest) GetTreeSize() int64

func (*GetInclusionProofRequest) ProtoMessage

func (*GetInclusionProofRequest) ProtoMessage()

func (*GetInclusionProofRequest) ProtoReflect

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

func (*GetInclusionProofRequest) Reset

func (x *GetInclusionProofRequest) Reset()

func (*GetInclusionProofRequest) String

func (x *GetInclusionProofRequest) String() string

type GetInclusionProofResponse

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

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

Deprecated: Use GetInclusionProofResponse.ProtoReflect.Descriptor instead.

func (*GetInclusionProofResponse) GetProof

func (x *GetInclusionProofResponse) GetProof() *Proof

func (*GetInclusionProofResponse) GetSignedLogRoot

func (x *GetInclusionProofResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetInclusionProofResponse) ProtoMessage

func (*GetInclusionProofResponse) ProtoMessage()

func (*GetInclusionProofResponse) ProtoReflect

func (*GetInclusionProofResponse) Reset

func (x *GetInclusionProofResponse) Reset()

func (*GetInclusionProofResponse) String

func (x *GetInclusionProofResponse) String() string

type GetLatestSignedLogRootRequest

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

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

Deprecated: Use GetLatestSignedLogRootRequest.ProtoReflect.Descriptor instead.

func (*GetLatestSignedLogRootRequest) GetChargeTo

func (x *GetLatestSignedLogRootRequest) GetChargeTo() *ChargeTo

func (*GetLatestSignedLogRootRequest) GetFirstTreeSize

func (x *GetLatestSignedLogRootRequest) GetFirstTreeSize() int64

func (*GetLatestSignedLogRootRequest) GetLogId

func (x *GetLatestSignedLogRootRequest) GetLogId() int64

func (*GetLatestSignedLogRootRequest) ProtoMessage

func (*GetLatestSignedLogRootRequest) ProtoMessage()

func (*GetLatestSignedLogRootRequest) ProtoReflect

func (*GetLatestSignedLogRootRequest) Reset

func (x *GetLatestSignedLogRootRequest) Reset()

func (*GetLatestSignedLogRootRequest) String

type GetLatestSignedLogRootResponse

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

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

Deprecated: Use GetLatestSignedLogRootResponse.ProtoReflect.Descriptor instead.

func (*GetLatestSignedLogRootResponse) GetProof

func (x *GetLatestSignedLogRootResponse) GetProof() *Proof

func (*GetLatestSignedLogRootResponse) GetSignedLogRoot

func (x *GetLatestSignedLogRootResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetLatestSignedLogRootResponse) ProtoMessage

func (*GetLatestSignedLogRootResponse) ProtoMessage()

func (*GetLatestSignedLogRootResponse) ProtoReflect

func (*GetLatestSignedLogRootResponse) Reset

func (x *GetLatestSignedLogRootResponse) Reset()

func (*GetLatestSignedLogRootResponse) String

type GetLeavesByRangeRequest

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

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

Deprecated: Use GetLeavesByRangeRequest.ProtoReflect.Descriptor instead.

func (*GetLeavesByRangeRequest) GetChargeTo

func (x *GetLeavesByRangeRequest) GetChargeTo() *ChargeTo

func (*GetLeavesByRangeRequest) GetCount

func (x *GetLeavesByRangeRequest) GetCount() int64

func (*GetLeavesByRangeRequest) GetLogId

func (x *GetLeavesByRangeRequest) GetLogId() int64

func (*GetLeavesByRangeRequest) GetStartIndex

func (x *GetLeavesByRangeRequest) GetStartIndex() int64

func (*GetLeavesByRangeRequest) ProtoMessage

func (*GetLeavesByRangeRequest) ProtoMessage()

func (*GetLeavesByRangeRequest) ProtoReflect

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

func (*GetLeavesByRangeRequest) Reset

func (x *GetLeavesByRangeRequest) Reset()

func (*GetLeavesByRangeRequest) String

func (x *GetLeavesByRangeRequest) String() string

type GetLeavesByRangeResponse

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

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

Deprecated: Use GetLeavesByRangeResponse.ProtoReflect.Descriptor instead.

func (*GetLeavesByRangeResponse) GetLeaves

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

func (*GetLeavesByRangeResponse) GetSignedLogRoot

func (x *GetLeavesByRangeResponse) GetSignedLogRoot() *SignedLogRoot

func (*GetLeavesByRangeResponse) ProtoMessage

func (*GetLeavesByRangeResponse) ProtoMessage()

func (*GetLeavesByRangeResponse) ProtoReflect

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

func (*GetLeavesByRangeResponse) Reset

func (x *GetLeavesByRangeResponse) Reset()

func (*GetLeavesByRangeResponse) String

func (x *GetLeavesByRangeResponse) String() string

type GetTreeRequest

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

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

Deprecated: Use GetTreeRequest.ProtoReflect.Descriptor instead.

func (*GetTreeRequest) GetTreeId

func (x *GetTreeRequest) GetTreeId() int64

func (*GetTreeRequest) ProtoMessage

func (*GetTreeRequest) ProtoMessage()

func (*GetTreeRequest) ProtoReflect

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

func (*GetTreeRequest) Reset

func (x *GetTreeRequest) Reset()

func (*GetTreeRequest) String

func (x *GetTreeRequest) String() string

type HashStrategy

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

func (HashStrategy) Enum

func (x HashStrategy) Enum() *HashStrategy

func (HashStrategy) EnumDescriptor

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

Deprecated: Use HashStrategy.Descriptor instead.

func (HashStrategy) Number

func (HashStrategy) String

func (x HashStrategy) String() string

func (HashStrategy) Type

type InitLogRequest

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

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

Deprecated: Use InitLogRequest.ProtoReflect.Descriptor instead.

func (*InitLogRequest) GetChargeTo

func (x *InitLogRequest) GetChargeTo() *ChargeTo

func (*InitLogRequest) GetLogId

func (x *InitLogRequest) GetLogId() int64

func (*InitLogRequest) ProtoMessage

func (*InitLogRequest) ProtoMessage()

func (*InitLogRequest) ProtoReflect

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

func (*InitLogRequest) Reset

func (x *InitLogRequest) Reset()

func (*InitLogRequest) String

func (x *InitLogRequest) String() string

type InitLogResponse

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

func (*InitLogResponse) Descriptor

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

Deprecated: Use InitLogResponse.ProtoReflect.Descriptor instead.

func (*InitLogResponse) GetCreated

func (x *InitLogResponse) GetCreated() *SignedLogRoot

func (*InitLogResponse) ProtoMessage

func (*InitLogResponse) ProtoMessage()

func (*InitLogResponse) ProtoReflect

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

func (*InitLogResponse) Reset

func (x *InitLogResponse) Reset()

func (*InitLogResponse) String

func (x *InitLogResponse) String() string

type ListTreesRequest

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

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

Deprecated: Use ListTreesRequest.ProtoReflect.Descriptor instead.

func (*ListTreesRequest) GetShowDeleted

func (x *ListTreesRequest) GetShowDeleted() bool

func (*ListTreesRequest) ProtoMessage

func (*ListTreesRequest) ProtoMessage()

func (*ListTreesRequest) ProtoReflect

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

func (*ListTreesRequest) Reset

func (x *ListTreesRequest) Reset()

func (*ListTreesRequest) String

func (x *ListTreesRequest) String() string

type ListTreesResponse

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

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

Deprecated: Use ListTreesResponse.ProtoReflect.Descriptor instead.

func (*ListTreesResponse) GetTree

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

func (*ListTreesResponse) ProtoMessage

func (*ListTreesResponse) ProtoMessage()

func (*ListTreesResponse) ProtoReflect

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

func (*ListTreesResponse) Reset

func (x *ListTreesResponse) Reset()

func (*ListTreesResponse) String

func (x *ListTreesResponse) String() string

type LogLeaf

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 *timestamppb.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 *timestamppb.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:

func (*LogLeaf) Descriptor

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

Deprecated: Use LogLeaf.ProtoReflect.Descriptor instead.

func (*LogLeaf) GetExtraData

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

func (*LogLeaf) GetIntegrateTimestamp

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

func (*LogLeaf) GetLeafIdentityHash

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

func (*LogLeaf) GetLeafIndex

func (x *LogLeaf) GetLeafIndex() int64

func (*LogLeaf) GetLeafValue

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

func (*LogLeaf) GetMerkleLeafHash

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

func (*LogLeaf) GetQueueTimestamp

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

func (*LogLeaf) ProtoMessage

func (*LogLeaf) ProtoMessage()

func (*LogLeaf) ProtoReflect

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

func (*LogLeaf) Reset

func (x *LogLeaf) Reset()

func (*LogLeaf) String

func (x *LogLeaf) String() string

type LogRootFormat

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

func (LogRootFormat) Enum

func (x LogRootFormat) Enum() *LogRootFormat

func (LogRootFormat) EnumDescriptor

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

Deprecated: Use LogRootFormat.Descriptor instead.

func (LogRootFormat) Number

func (LogRootFormat) String

func (x LogRootFormat) String() string

func (LogRootFormat) Type

type Proof

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

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

Deprecated: Use Proof.ProtoReflect.Descriptor instead.

func (*Proof) GetHashes

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

func (*Proof) GetLeafIndex

func (x *Proof) GetLeafIndex() int64

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) ProtoReflect

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

func (*Proof) Reset

func (x *Proof) Reset()

func (*Proof) String

func (x *Proof) String() string

type QueueLeafRequest

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

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

Deprecated: Use QueueLeafRequest.ProtoReflect.Descriptor instead.

func (*QueueLeafRequest) GetChargeTo

func (x *QueueLeafRequest) GetChargeTo() *ChargeTo

func (*QueueLeafRequest) GetLeaf

func (x *QueueLeafRequest) GetLeaf() *LogLeaf

func (*QueueLeafRequest) GetLogId

func (x *QueueLeafRequest) GetLogId() int64

func (*QueueLeafRequest) ProtoMessage

func (*QueueLeafRequest) ProtoMessage()

func (*QueueLeafRequest) ProtoReflect

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

func (*QueueLeafRequest) Reset

func (x *QueueLeafRequest) Reset()

func (*QueueLeafRequest) String

func (x *QueueLeafRequest) String() string

type QueueLeafResponse

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

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

Deprecated: Use QueueLeafResponse.ProtoReflect.Descriptor instead.

func (*QueueLeafResponse) GetQueuedLeaf

func (x *QueueLeafResponse) GetQueuedLeaf() *QueuedLogLeaf

func (*QueueLeafResponse) ProtoMessage

func (*QueueLeafResponse) ProtoMessage()

func (*QueueLeafResponse) ProtoReflect

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

func (*QueueLeafResponse) Reset

func (x *QueueLeafResponse) Reset()

func (*QueueLeafResponse) String

func (x *QueueLeafResponse) String() string

type QueuedLogLeaf

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

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

Deprecated: Use QueuedLogLeaf.ProtoReflect.Descriptor instead.

func (*QueuedLogLeaf) GetLeaf

func (x *QueuedLogLeaf) GetLeaf() *LogLeaf

func (*QueuedLogLeaf) GetStatus

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

func (*QueuedLogLeaf) ProtoMessage

func (*QueuedLogLeaf) ProtoMessage()

func (*QueuedLogLeaf) ProtoReflect

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

func (*QueuedLogLeaf) Reset

func (x *QueuedLogLeaf) Reset()

func (*QueuedLogLeaf) String

func (x *QueuedLogLeaf) String() string

type SignedLogRoot

type SignedLogRoot struct {

	// log_root holds the TLS-serialization of the following structure (described
	// in RFC5246 notation):
	//
	// 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"`
	// contains filtered or unexported fields
}

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

Note that the signature itself is no-longer provided by Trillian since https://github.com/google/trillian/pull/2452 . This functionality was intended to support a niche-use case but added significant complexity and was prone to causing confusion and misunderstanding for personality authors.

func (*SignedLogRoot) Descriptor

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

Deprecated: Use SignedLogRoot.ProtoReflect.Descriptor instead.

func (*SignedLogRoot) GetLogRoot

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

func (*SignedLogRoot) ProtoMessage

func (*SignedLogRoot) ProtoMessage()

func (*SignedLogRoot) ProtoReflect

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

func (*SignedLogRoot) Reset

func (x *SignedLogRoot) Reset()

func (*SignedLogRoot) String

func (x *SignedLogRoot) String() string

type Tree

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"`
	// 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"`
	// Storage-specific settings.
	// Varies according to the storage implementation backing Trillian.
	StorageSettings *anypb.Any `protobuf:"bytes,13,opt,name=storage_settings,json=storageSettings,proto3" json:"storage_settings,omitempty"`
	// Interval after which a new signed root is produced even if there have been
	// no submission.  If zero, this behavior is disabled.
	MaxRootDuration *durationpb.Duration `protobuf:"bytes,15,opt,name=max_root_duration,json=maxRootDuration,proto3" json:"max_root_duration,omitempty"`
	// Time of tree creation.
	// Readonly.
	CreateTime *timestamppb.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 *timestamppb.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 *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// contains filtered or unexported fields
}

Represents a tree. 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

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

Deprecated: Use Tree.ProtoReflect.Descriptor instead.

func (*Tree) GetCreateTime

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

func (*Tree) GetDeleteTime

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

func (*Tree) GetDeleted

func (x *Tree) GetDeleted() bool

func (*Tree) GetDescription

func (x *Tree) GetDescription() string

func (*Tree) GetDisplayName

func (x *Tree) GetDisplayName() string

func (*Tree) GetMaxRootDuration

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

func (*Tree) GetStorageSettings

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

func (*Tree) GetTreeId

func (x *Tree) GetTreeId() int64

func (*Tree) GetTreeState

func (x *Tree) GetTreeState() TreeState

func (*Tree) GetTreeType

func (x *Tree) GetTreeType() TreeType

func (*Tree) GetUpdateTime

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

func (*Tree) ProtoMessage

func (*Tree) ProtoMessage()

func (*Tree) ProtoReflect

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

func (*Tree) Reset

func (x *Tree) Reset()

func (*Tree) String

func (x *Tree) String() string

type TreeState

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: Marked as deprecated in trillian.proto.
	TreeState_DEPRECATED_SOFT_DELETED TreeState = 3
	// Deprecated: now tracked in Tree.deleted.
	//
	// Deprecated: Marked as deprecated in trillian.proto.
	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

func (TreeState) Descriptor() protoreflect.EnumDescriptor

func (TreeState) Enum

func (x TreeState) Enum() *TreeState

func (TreeState) EnumDescriptor

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

Deprecated: Use TreeState.Descriptor instead.

func (TreeState) Number

func (x TreeState) Number() protoreflect.EnumNumber

func (TreeState) String

func (x TreeState) String() string

func (TreeState) Type

type TreeType

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

func (TreeType) Descriptor() protoreflect.EnumDescriptor

func (TreeType) Enum

func (x TreeType) Enum() *TreeType

func (TreeType) EnumDescriptor

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

Deprecated: Use TreeType.Descriptor instead.

func (TreeType) Number

func (x TreeType) Number() protoreflect.EnumNumber

func (TreeType) String

func (x TreeType) String() string

func (TreeType) Type

type TrillianAdminClient

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Trillian Administrative interface. Allows creation and management of Trillian trees.

func NewTrillianAdminClient

func NewTrillianAdminClient(cc grpc.ClientConnInterface) TrillianAdminClient

type TrillianAdminServer

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. All implementations should embed UnimplementedTrillianAdminServer for forward compatibility.

Trillian Administrative interface. Allows creation and management of Trillian trees.

type TrillianLogClient

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)
	// 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 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)
	// 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)
	// 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)
	// 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)
}

TrillianLogClient is the client API for TrillianLog service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

The TrillianLog service provides access to an append-only Log data structure as described in the [Verifiable Data Structures](docs/papers/VerifiableDataStructures.pdf) paper.

The API supports adding new entries to the Merkle tree for a specific Log instance (identified by its log_id) in two modes:

The API also supports read operations to retrieve leaf contents, and to provide cryptographic proofs of leaf inclusion and of the append-only nature of the Log.

Each API request also includes a charge_to field, which allows API users to provide quota identifiers that should be "charged" for each API request (and potentially rejected with codes.ResourceExhausted).

Various operations on the API also allows for 'server skew', which can occur when different API requests happen to be handled by different server instances that may not all be up to date. An API request that is relative to a specific tree size may reach a server instance that is not yet aware of this tree size; in this case the server will typically return an OK response that contains:

func NewTrillianLogClient

func NewTrillianLogClient(cc grpc.ClientConnInterface) TrillianLogClient

type TrillianLogServer

type TrillianLogServer interface {
	// QueueLeaf adds a single leaf to the queue of pending leaves for a normal
	// log.
	QueueLeaf(context.Context, *QueueLeafRequest) (*QueueLeafResponse, 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 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)
	// 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)
	// 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)
	// GetLeavesByRange returns a batch of leaves whose leaf indices are in a
	// sequential range.
	GetLeavesByRange(context.Context, *GetLeavesByRangeRequest) (*GetLeavesByRangeResponse, error)
}

TrillianLogServer is the server API for TrillianLog service. All implementations should embed UnimplementedTrillianLogServer for forward compatibility.

The TrillianLog service provides access to an append-only Log data structure as described in the [Verifiable Data Structures](docs/papers/VerifiableDataStructures.pdf) paper.

The API supports adding new entries to the Merkle tree for a specific Log instance (identified by its log_id) in two modes:

The API also supports read operations to retrieve leaf contents, and to provide cryptographic proofs of leaf inclusion and of the append-only nature of the Log.

Each API request also includes a charge_to field, which allows API users to provide quota identifiers that should be "charged" for each API request (and potentially rejected with codes.ResourceExhausted).

Various operations on the API also allows for 'server skew', which can occur when different API requests happen to be handled by different server instances that may not all be up to date. An API request that is relative to a specific tree size may reach a server instance that is not yet aware of this tree size; in this case the server will typically return an OK response that contains:

type UndeleteTreeRequest

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

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

Deprecated: Use UndeleteTreeRequest.ProtoReflect.Descriptor instead.

func (*UndeleteTreeRequest) GetTreeId

func (x *UndeleteTreeRequest) GetTreeId() int64

func (*UndeleteTreeRequest) ProtoMessage

func (*UndeleteTreeRequest) ProtoMessage()

func (*UndeleteTreeRequest) ProtoReflect

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

func (*UndeleteTreeRequest) Reset

func (x *UndeleteTreeRequest) Reset()

func (*UndeleteTreeRequest) String

func (x *UndeleteTreeRequest) String() string

type UnimplementedTrillianAdminServer

type UnimplementedTrillianAdminServer struct{}

UnimplementedTrillianAdminServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedTrillianAdminServer) CreateTree

func (UnimplementedTrillianAdminServer) DeleteTree

func (UnimplementedTrillianAdminServer) GetTree

func (UnimplementedTrillianAdminServer) ListTrees

func (UnimplementedTrillianAdminServer) UndeleteTree

func (UnimplementedTrillianAdminServer) UpdateTree

type UnimplementedTrillianLogServer

type UnimplementedTrillianLogServer struct{}

UnimplementedTrillianLogServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedTrillianLogServer) AddSequencedLeaves

func (UnimplementedTrillianLogServer) GetConsistencyProof

func (UnimplementedTrillianLogServer) GetEntryAndProof

func (UnimplementedTrillianLogServer) GetInclusionProof

func (UnimplementedTrillianLogServer) GetInclusionProofByHash

func (UnimplementedTrillianLogServer) GetLatestSignedLogRoot

func (UnimplementedTrillianLogServer) GetLeavesByRange

func (UnimplementedTrillianLogServer) InitLog

func (UnimplementedTrillianLogServer) QueueLeaf

type UnsafeTrillianAdminServer

type UnsafeTrillianAdminServer interface {
	// contains filtered or unexported methods
}

UnsafeTrillianAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TrillianAdminServer will result in compilation errors.

type UnsafeTrillianLogServer

type UnsafeTrillianLogServer interface {
	// contains filtered or unexported methods
}

UnsafeTrillianLogServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TrillianLogServer will result in compilation errors.

type UpdateTreeRequest

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 *fieldmaskpb.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

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

Deprecated: Use UpdateTreeRequest.ProtoReflect.Descriptor instead.

func (*UpdateTreeRequest) GetTree

func (x *UpdateTreeRequest) GetTree() *Tree

func (*UpdateTreeRequest) GetUpdateMask

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

func (*UpdateTreeRequest) ProtoMessage

func (*UpdateTreeRequest) ProtoMessage()

func (*UpdateTreeRequest) ProtoReflect

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

func (*UpdateTreeRequest) Reset

func (x *UpdateTreeRequest) Reset()

func (*UpdateTreeRequest) String

func (x *UpdateTreeRequest) String() string

Source Files

gen.go trillian.pb.go trillian_admin_api.pb.go trillian_admin_api_grpc.pb.go trillian_log_api.pb.go trillian_log_api_grpc.pb.go

Directories

PathSynopsis
clientPackage client verifies responses from the Trillian log.
client/backoffPackage backoff allows retrying an operation with backoff.
client/rpcflagsPackage rpcflags defines flags for configuring RPC clients.
cmdPackage cmd contains common code for the various binaries in this repository.
cmd/createtreePackage main contains the implementation and entry point for the createtree command.
cmd/deletetreePackage main contains the implementation and entry point for the deletetree command.
cmd/internal
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 process which sequences new entries, integrates them into the corresponding log, and, finally, creates a new LogRoot with updated root hash.
cmd/updatetreePackage main contains the implementation and entry point for the updatetree command.
crypto
crypto/keysPackage keys provides access to public and private keys for signing and verification of signatures.
crypto/keys/derPackage der contains functions for marshaling and unmarshaling keys in DER format.
crypto/keyspb
crypto/keys/pemPackage pem contains functions for marshaling and unmarshaling keys in PEM format.
crypto/keys/pkcs11Package pkcs11 provides access to private keys using a PKCS#11 interface.
crypto/keys/testonlyPackage testonly contains code and data that should only be used by tests.
docs
docs/claimantmodel
docs/claimantmodel/experimental
docs/claimantmodel/experimental/cmd
docs/claimantmodel/experimental/cmd/renderrender is a command to take a Claimant Model specified as yaml and output markdown representations of it.
docs/claimantmodel/experimental/cmd/render/internalPackage claimant is a code model for the Claimant Model.
docs/merkletree
docs/merkletree/treetexA binary to produce LaTeX documents representing Merkle trees.
docs/storage
docs/storage/commit_logThe commit_log binary runs a simulation of the design for a commit-log based signer, with a simulated Kafka-like interface and a simulated master election package (which can be triggered to incorrectly report multiple masters), and with the core algorithm in the signer code.
docs/storage/commit_log/signerPackage signer is a sample implementation of a commit-log based signer.
docs/storage/commit_log/simelectionPackage simelection simulates a master election.
docs/storage/commit_log/simkafkaPackage simkafka is a toy simulation of a Kafka commit log.
experimental
experimental/batchmapPackage batchmap is a library to be used within Beam pipelines to construct verifiable data structures.
experimental/batchmap/cmd
experimental/batchmap/cmd/buildmapdemo is a simple example that shows how a verifiable map can be constructed in Beam.
experimental/batchmap/cmd/verifyverify is a simple example that shows how a verifiable map can be used to demonstrate inclusion.
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/formatPackage format contains an integration test which builds a log using an in-memory storage end-to-end, and makes sure the SubtreeProto storage format has no regressions.
integration/quotaPackage quota contains quota-related integration tests.
integration/storagetestPackage storagetest contains tests and helpers for storage implementations.
logPackage log holds the code that is specific to Trillian logs core operation, particularly the code for sequencing.
merkle
merkle/coniksPackage coniks provides CONIKS hashing for maps.
merkle/smtPackage smt contains the implementation of the sparse Merkle tree logic.
merkle/smt/nodePackage node implements a sparse Merkle tree node.
monitoringPackage monitoring provides monitoring functionality.
monitoring/opencensusPackage opencensus enables tracing and metrics collection using OpenCensus.
monitoring/prometheusPackage prometheus provides a Prometheus-based implementation of the MetricFactory abstraction.
monitoring/testonlyPackage testonly contains test-only code.
quotaPackage quota defines Trillian's Quota Management service.
quota/cacheqmPackage cacheqm contains a caching quota.Manager implementation.
quota/crdbqmPackage crdbqm defines a CockroachDB-based quota.Manager implementation.
quota/etcdPackage etcd provides the configuration and initialization of the etcd quota manager.
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/storagepbPackage storagepb contains the protobuf definitions for using etcd as a Trillian quota backend.
quota/mysqlqmPackage mysqlqm defines a MySQL-based quota.Manager implementation.
quota/postgresqlqmPackage postgresqlqm defines a PostgreSQL-based quota.Manager implementation.
quota/redis
quota/redis/redisqmPackage redisqm defines a Redis-based quota.Manager implementation.
quota/redis/redistbPackage redistb implements a token bucket using Redis.
serverPackage server contains the Trillian log server implementation.
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/cloudspannerPackage cloudspanner contains the Cloud Spanner storage implementation.
storage/cloudspanner/spannerpbPackage spannerpb contains the generated protobuf code for the Spanner storage implementation.
storage/crdbPackage crdb provides a CockroachDB-based storage layer implementation.
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/mysql/mysqlpbPackage mysqlpb contains protobuf definitions used by the mysql implementation.
storage/postgresqlPackage postgresql provides a PostgreSQL-based storage layer implementation.
storage/postgresql/testdbpgxPackage testdbpgx creates new PostgreSQL databases for tests.
storage/storagepbPackage storagepb contains protobuf definitions used by various storage implementations.
storage/testdbPackage testdb creates new databases for tests.
storage/testonlyPackage testonly contains utilities and helpers to use in the storage tests.
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/etcdPackage etcd contains a helper to start an embedded etcd server.
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/setupPackage setup contains test-only code that's useful for setting up tests.
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 fields.
types/internal
utilPackage util holds utility functions.
util/clockPackage clock contains time utilities, and types that allow mocking system time in tests.
util/electionPackage election provides a generic interface for election of a leader.
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.
Version
v1.7.1 (latest)
Published
Jan 9, 2025
Platform
linux/amd64
Imports
13 packages
Last checked
5 days ago

Tools for package owners.