Documentation ¶
Overview ¶
Package mockclient provides a mockable version of the Trillian log client API.
Index ¶
- type MockTrillianLogClient
- func (_m *MockTrillianLogClient) EXPECT() *MockTrillianLogClientMockRecorder
- func (_m *MockTrillianLogClient) GetConsistencyProof(_param0 context.Context, _param1 *trillian.GetConsistencyProofRequest, ...) (*trillian.GetConsistencyProofResponse, error)
- func (_m *MockTrillianLogClient) GetEntryAndProof(_param0 context.Context, _param1 *trillian.GetEntryAndProofRequest, ...) (*trillian.GetEntryAndProofResponse, error)
- func (_m *MockTrillianLogClient) GetInclusionProof(_param0 context.Context, _param1 *trillian.GetInclusionProofRequest, ...) (*trillian.GetInclusionProofResponse, error)
- func (_m *MockTrillianLogClient) GetInclusionProofByHash(_param0 context.Context, _param1 *trillian.GetInclusionProofByHashRequest, ...) (*trillian.GetInclusionProofByHashResponse, error)
- func (_m *MockTrillianLogClient) GetLatestSignedLogRoot(_param0 context.Context, _param1 *trillian.GetLatestSignedLogRootRequest, ...) (*trillian.GetLatestSignedLogRootResponse, error)
- func (_m *MockTrillianLogClient) GetLeavesByHash(_param0 context.Context, _param1 *trillian.GetLeavesByHashRequest, ...) (*trillian.GetLeavesByHashResponse, error)
- func (_m *MockTrillianLogClient) GetLeavesByIndex(_param0 context.Context, _param1 *trillian.GetLeavesByIndexRequest, ...) (*trillian.GetLeavesByIndexResponse, error)
- func (_m *MockTrillianLogClient) GetSequencedLeafCount(_param0 context.Context, _param1 *trillian.GetSequencedLeafCountRequest, ...) (*trillian.GetSequencedLeafCountResponse, error)
- func (_m *MockTrillianLogClient) QueueLeaf(_param0 context.Context, _param1 *trillian.QueueLeafRequest, ...) (*trillian.QueueLeafResponse, error)
- func (_m *MockTrillianLogClient) QueueLeaves(_param0 context.Context, _param1 *trillian.QueueLeavesRequest, ...) (*trillian.QueueLeavesResponse, error)
- type MockTrillianLogClientMockRecorder
- 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) GetSequencedLeafCount(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
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) 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(_param0 context.Context, _param1 *trillian.GetConsistencyProofRequest, _param2 ...grpc.CallOption) (*trillian.GetConsistencyProofResponse, error)
GetConsistencyProof mocks base method
func (*MockTrillianLogClient) GetEntryAndProof ¶
func (_m *MockTrillianLogClient) GetEntryAndProof(_param0 context.Context, _param1 *trillian.GetEntryAndProofRequest, _param2 ...grpc.CallOption) (*trillian.GetEntryAndProofResponse, error)
GetEntryAndProof mocks base method
func (*MockTrillianLogClient) GetInclusionProof ¶
func (_m *MockTrillianLogClient) GetInclusionProof(_param0 context.Context, _param1 *trillian.GetInclusionProofRequest, _param2 ...grpc.CallOption) (*trillian.GetInclusionProofResponse, error)
GetInclusionProof mocks base method
func (*MockTrillianLogClient) GetInclusionProofByHash ¶
func (_m *MockTrillianLogClient) GetInclusionProofByHash(_param0 context.Context, _param1 *trillian.GetInclusionProofByHashRequest, _param2 ...grpc.CallOption) (*trillian.GetInclusionProofByHashResponse, error)
GetInclusionProofByHash mocks base method
func (*MockTrillianLogClient) GetLatestSignedLogRoot ¶
func (_m *MockTrillianLogClient) GetLatestSignedLogRoot(_param0 context.Context, _param1 *trillian.GetLatestSignedLogRootRequest, _param2 ...grpc.CallOption) (*trillian.GetLatestSignedLogRootResponse, error)
GetLatestSignedLogRoot mocks base method
func (*MockTrillianLogClient) GetLeavesByHash ¶
func (_m *MockTrillianLogClient) GetLeavesByHash(_param0 context.Context, _param1 *trillian.GetLeavesByHashRequest, _param2 ...grpc.CallOption) (*trillian.GetLeavesByHashResponse, error)
GetLeavesByHash mocks base method
func (*MockTrillianLogClient) GetLeavesByIndex ¶
func (_m *MockTrillianLogClient) GetLeavesByIndex(_param0 context.Context, _param1 *trillian.GetLeavesByIndexRequest, _param2 ...grpc.CallOption) (*trillian.GetLeavesByIndexResponse, error)
GetLeavesByIndex mocks base method
func (*MockTrillianLogClient) GetSequencedLeafCount ¶
func (_m *MockTrillianLogClient) GetSequencedLeafCount(_param0 context.Context, _param1 *trillian.GetSequencedLeafCountRequest, _param2 ...grpc.CallOption) (*trillian.GetSequencedLeafCountResponse, error)
GetSequencedLeafCount mocks base method
func (*MockTrillianLogClient) QueueLeaf ¶
func (_m *MockTrillianLogClient) QueueLeaf(_param0 context.Context, _param1 *trillian.QueueLeafRequest, _param2 ...grpc.CallOption) (*trillian.QueueLeafResponse, error)
QueueLeaf mocks base method
func (*MockTrillianLogClient) QueueLeaves ¶
func (_m *MockTrillianLogClient) QueueLeaves(_param0 context.Context, _param1 *trillian.QueueLeavesRequest, _param2 ...grpc.CallOption) (*trillian.QueueLeavesResponse, error)
QueueLeaves mocks base method
type MockTrillianLogClientMockRecorder ¶
type MockTrillianLogClientMockRecorder struct {
// contains filtered or unexported fields
}
MockTrillianLogClientMockRecorder is the mock recorder for MockTrillianLogClient
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) GetLeavesByHash ¶
func (_mr *MockTrillianLogClientMockRecorder) GetLeavesByHash(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetLeavesByHash indicates an expected call of GetLeavesByHash
func (*MockTrillianLogClientMockRecorder) GetLeavesByIndex ¶
func (_mr *MockTrillianLogClientMockRecorder) GetLeavesByIndex(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetLeavesByIndex indicates an expected call of GetLeavesByIndex
func (*MockTrillianLogClientMockRecorder) GetSequencedLeafCount ¶
func (_mr *MockTrillianLogClientMockRecorder) GetSequencedLeafCount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetSequencedLeafCount indicates an expected call of GetSequencedLeafCount
func (*MockTrillianLogClientMockRecorder) QueueLeaf ¶
func (_mr *MockTrillianLogClientMockRecorder) QueueLeaf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueueLeaf indicates an expected call of QueueLeaf
func (*MockTrillianLogClientMockRecorder) QueueLeaves ¶
func (_mr *MockTrillianLogClientMockRecorder) QueueLeaves(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueueLeaves indicates an expected call of QueueLeaves