Versions in this module Expand all Collapse all v0 v0.1.0 Jun 6, 2021 Changes in this version + type MockClient struct + func NewMockClient(ctrl *gomock.Controller) *MockClient + func (m *MockClient) AddLeaf(arg0 context.Context, arg1 *types.LeafRequest) error + func (m *MockClient) EXPECT() *MockClientMockRecorder + func (m *MockClient) GetConsistencyProof(arg0 context.Context, arg1 *types.ConsistencyProofRequest) (*types.ConsistencyProof, error) + func (m *MockClient) GetInclusionProof(arg0 context.Context, arg1 *types.InclusionProofRequest) (*types.InclusionProof, error) + func (m *MockClient) GetLeaves(arg0 context.Context, arg1 *types.LeavesRequest) (*types.LeafList, error) + func (m *MockClient) GetTreeHead(arg0 context.Context) (*types.TreeHead, error) + type MockClientMockRecorder struct + func (mr *MockClientMockRecorder) AddLeaf(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetConsistencyProof(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetInclusionProof(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetLeaves(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetTreeHead(arg0 interface{}) *gomock.Call + type MockStateManager struct + func NewMockStateManager(ctrl *gomock.Controller) *MockStateManager + func (m *MockStateManager) AddCosignature(arg0 context.Context, arg1 *[32]byte, arg2 *[64]byte) error + func (m *MockStateManager) Cosigned(arg0 context.Context) (*types.SignedTreeHead, error) + func (m *MockStateManager) EXPECT() *MockStateManagerMockRecorder + func (m *MockStateManager) Latest(arg0 context.Context) (*types.SignedTreeHead, error) + func (m *MockStateManager) Run(arg0 context.Context) + func (m *MockStateManager) ToSign(arg0 context.Context) (*types.SignedTreeHead, error) + type MockStateManagerMockRecorder struct + func (mr *MockStateManagerMockRecorder) AddCosignature(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockStateManagerMockRecorder) Cosigned(arg0 interface{}) *gomock.Call + func (mr *MockStateManagerMockRecorder) Latest(arg0 interface{}) *gomock.Call + func (mr *MockStateManagerMockRecorder) Run(arg0 interface{}) *gomock.Call + func (mr *MockStateManagerMockRecorder) ToSign(arg0 interface{}) *gomock.Call + type MockTrillianLogClient struct + func NewMockTrillianLogClient(ctrl *gomock.Controller) *MockTrillianLogClient + func (m *MockTrillianLogClient) AddSequencedLeaf(arg0 context.Context, arg1 *trillian.AddSequencedLeafRequest, ...) (*trillian.AddSequencedLeafResponse, error) + func (m *MockTrillianLogClient) AddSequencedLeaves(arg0 context.Context, arg1 *trillian.AddSequencedLeavesRequest, ...) (*trillian.AddSequencedLeavesResponse, error) + func (m *MockTrillianLogClient) EXPECT() *MockTrillianLogClientMockRecorder + func (m *MockTrillianLogClient) GetConsistencyProof(arg0 context.Context, arg1 *trillian.GetConsistencyProofRequest, ...) (*trillian.GetConsistencyProofResponse, error) + func (m *MockTrillianLogClient) GetEntryAndProof(arg0 context.Context, arg1 *trillian.GetEntryAndProofRequest, ...) (*trillian.GetEntryAndProofResponse, error) + func (m *MockTrillianLogClient) GetInclusionProof(arg0 context.Context, arg1 *trillian.GetInclusionProofRequest, ...) (*trillian.GetInclusionProofResponse, error) + func (m *MockTrillianLogClient) GetInclusionProofByHash(arg0 context.Context, arg1 *trillian.GetInclusionProofByHashRequest, ...) (*trillian.GetInclusionProofByHashResponse, error) + func (m *MockTrillianLogClient) GetLatestSignedLogRoot(arg0 context.Context, arg1 *trillian.GetLatestSignedLogRootRequest, ...) (*trillian.GetLatestSignedLogRootResponse, error) + func (m *MockTrillianLogClient) GetLeavesByHash(arg0 context.Context, arg1 *trillian.GetLeavesByHashRequest, ...) (*trillian.GetLeavesByHashResponse, error) + func (m *MockTrillianLogClient) GetLeavesByIndex(arg0 context.Context, arg1 *trillian.GetLeavesByIndexRequest, ...) (*trillian.GetLeavesByIndexResponse, error) + func (m *MockTrillianLogClient) GetLeavesByRange(arg0 context.Context, arg1 *trillian.GetLeavesByRangeRequest, ...) (*trillian.GetLeavesByRangeResponse, error) + func (m *MockTrillianLogClient) GetSequencedLeafCount(arg0 context.Context, arg1 *trillian.GetSequencedLeafCountRequest, ...) (*trillian.GetSequencedLeafCountResponse, error) + func (m *MockTrillianLogClient) InitLog(arg0 context.Context, arg1 *trillian.InitLogRequest, arg2 ...grpc.CallOption) (*trillian.InitLogResponse, error) + func (m *MockTrillianLogClient) QueueLeaf(arg0 context.Context, arg1 *trillian.QueueLeafRequest, arg2 ...grpc.CallOption) (*trillian.QueueLeafResponse, error) + func (m *MockTrillianLogClient) QueueLeaves(arg0 context.Context, arg1 *trillian.QueueLeavesRequest, ...) (*trillian.QueueLeavesResponse, error) + type MockTrillianLogClientMockRecorder struct + func (mr *MockTrillianLogClientMockRecorder) AddSequencedLeaf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) AddSequencedLeaves(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) GetConsistencyProof(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) GetEntryAndProof(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) GetInclusionProof(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) GetInclusionProofByHash(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) GetLatestSignedLogRoot(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) GetLeavesByHash(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) GetLeavesByIndex(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) GetLeavesByRange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) GetSequencedLeafCount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) InitLog(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) QueueLeaf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + func (mr *MockTrillianLogClientMockRecorder) QueueLeaves(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call + type TestSigner struct + Error error + PublicKey *[ed25519.PublicKeySize]byte + Signature *[ed25519.SignatureSize]byte + func (ts *TestSigner) Public() crypto.PublicKey + func (ts *TestSigner) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)