Documentation ¶
Overview ¶
Package mockclient provides a mockable version of the Trillian log client API.
Package mockclient is a generated GoMock package.
Index ¶
- type MockTrillianLogClient
- 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) GetLeavesByRange(arg0 context.Context, arg1 *trillian.GetLeavesByRangeRequest, ...) (*trillian.GetLeavesByRangeResponse, 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)
- type MockTrillianLogClientMockRecorder
- 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) GetLeavesByRange(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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTrillianLogClient ¶
type MockTrillianLogClient struct {
// contains filtered or unexported fields
}
MockTrillianLogClient is a mock of TrillianLogClient interface.
func NewMockTrillianLogClient ¶
func NewMockTrillianLogClient(ctrl *gomock.Controller) *MockTrillianLogClient
NewMockTrillianLogClient creates a new mock instance.
func (*MockTrillianLogClient) AddSequencedLeaves ¶
func (m *MockTrillianLogClient) AddSequencedLeaves(arg0 context.Context, arg1 *trillian.AddSequencedLeavesRequest, arg2 ...grpc.CallOption) (*trillian.AddSequencedLeavesResponse, error)
AddSequencedLeaves mocks base method.
func (*MockTrillianLogClient) EXPECT ¶
func (m *MockTrillianLogClient) EXPECT() *MockTrillianLogClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTrillianLogClient) GetConsistencyProof ¶
func (m *MockTrillianLogClient) GetConsistencyProof(arg0 context.Context, arg1 *trillian.GetConsistencyProofRequest, arg2 ...grpc.CallOption) (*trillian.GetConsistencyProofResponse, error)
GetConsistencyProof mocks base method.
func (*MockTrillianLogClient) GetEntryAndProof ¶
func (m *MockTrillianLogClient) GetEntryAndProof(arg0 context.Context, arg1 *trillian.GetEntryAndProofRequest, arg2 ...grpc.CallOption) (*trillian.GetEntryAndProofResponse, error)
GetEntryAndProof mocks base method.
func (*MockTrillianLogClient) GetInclusionProof ¶
func (m *MockTrillianLogClient) GetInclusionProof(arg0 context.Context, arg1 *trillian.GetInclusionProofRequest, arg2 ...grpc.CallOption) (*trillian.GetInclusionProofResponse, error)
GetInclusionProof mocks base method.
func (*MockTrillianLogClient) GetInclusionProofByHash ¶
func (m *MockTrillianLogClient) GetInclusionProofByHash(arg0 context.Context, arg1 *trillian.GetInclusionProofByHashRequest, arg2 ...grpc.CallOption) (*trillian.GetInclusionProofByHashResponse, error)
GetInclusionProofByHash mocks base method.
func (*MockTrillianLogClient) GetLatestSignedLogRoot ¶
func (m *MockTrillianLogClient) GetLatestSignedLogRoot(arg0 context.Context, arg1 *trillian.GetLatestSignedLogRootRequest, arg2 ...grpc.CallOption) (*trillian.GetLatestSignedLogRootResponse, error)
GetLatestSignedLogRoot mocks base method.
func (*MockTrillianLogClient) GetLeavesByRange ¶
func (m *MockTrillianLogClient) GetLeavesByRange(arg0 context.Context, arg1 *trillian.GetLeavesByRangeRequest, arg2 ...grpc.CallOption) (*trillian.GetLeavesByRangeResponse, error)
GetLeavesByRange mocks base method.
func (*MockTrillianLogClient) InitLog ¶
func (m *MockTrillianLogClient) InitLog(arg0 context.Context, arg1 *trillian.InitLogRequest, arg2 ...grpc.CallOption) (*trillian.InitLogResponse, error)
InitLog mocks base method.
func (*MockTrillianLogClient) QueueLeaf ¶
func (m *MockTrillianLogClient) QueueLeaf(arg0 context.Context, arg1 *trillian.QueueLeafRequest, arg2 ...grpc.CallOption) (*trillian.QueueLeafResponse, error)
QueueLeaf mocks base method.
type MockTrillianLogClientMockRecorder ¶
type MockTrillianLogClientMockRecorder struct {
// contains filtered or unexported fields
}
MockTrillianLogClientMockRecorder is the mock recorder for MockTrillianLogClient.
func (*MockTrillianLogClientMockRecorder) AddSequencedLeaves ¶
func (mr *MockTrillianLogClientMockRecorder) AddSequencedLeaves(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
AddSequencedLeaves indicates an expected call of AddSequencedLeaves.
func (*MockTrillianLogClientMockRecorder) GetConsistencyProof ¶
func (mr *MockTrillianLogClientMockRecorder) GetConsistencyProof(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetConsistencyProof indicates an expected call of GetConsistencyProof.
func (*MockTrillianLogClientMockRecorder) GetEntryAndProof ¶
func (mr *MockTrillianLogClientMockRecorder) GetEntryAndProof(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetEntryAndProof indicates an expected call of GetEntryAndProof.
func (*MockTrillianLogClientMockRecorder) GetInclusionProof ¶
func (mr *MockTrillianLogClientMockRecorder) GetInclusionProof(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetInclusionProof indicates an expected call of GetInclusionProof.
func (*MockTrillianLogClientMockRecorder) GetInclusionProofByHash ¶
func (mr *MockTrillianLogClientMockRecorder) GetInclusionProofByHash(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetInclusionProofByHash indicates an expected call of GetInclusionProofByHash.
func (*MockTrillianLogClientMockRecorder) GetLatestSignedLogRoot ¶
func (mr *MockTrillianLogClientMockRecorder) GetLatestSignedLogRoot(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetLatestSignedLogRoot indicates an expected call of GetLatestSignedLogRoot.
func (*MockTrillianLogClientMockRecorder) GetLeavesByRange ¶
func (mr *MockTrillianLogClientMockRecorder) GetLeavesByRange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetLeavesByRange indicates an expected call of GetLeavesByRange.
func (*MockTrillianLogClientMockRecorder) InitLog ¶
func (mr *MockTrillianLogClientMockRecorder) InitLog(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
InitLog indicates an expected call of InitLog.
func (*MockTrillianLogClientMockRecorder) QueueLeaf ¶
func (mr *MockTrillianLogClientMockRecorder) QueueLeaf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueueLeaf indicates an expected call of QueueLeaf.