Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type 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
- 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
- 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
- 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
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) AddLeaf ¶
func (m *MockClient) AddLeaf(arg0 context.Context, arg1 *types.LeafRequest) error
AddLeaf mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetConsistencyProof ¶
func (m *MockClient) GetConsistencyProof(arg0 context.Context, arg1 *types.ConsistencyProofRequest) (*types.ConsistencyProof, error)
GetConsistencyProof mocks base method.
func (*MockClient) GetInclusionProof ¶
func (m *MockClient) GetInclusionProof(arg0 context.Context, arg1 *types.InclusionProofRequest) (*types.InclusionProof, error)
GetInclusionProof mocks base method.
func (*MockClient) GetLeaves ¶
func (m *MockClient) GetLeaves(arg0 context.Context, arg1 *types.LeavesRequest) (*types.LeafList, error)
GetLeaves mocks base method.
func (*MockClient) GetTreeHead ¶
GetTreeHead mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) AddLeaf ¶
func (mr *MockClientMockRecorder) AddLeaf(arg0, arg1 interface{}) *gomock.Call
AddLeaf indicates an expected call of AddLeaf.
func (*MockClientMockRecorder) GetConsistencyProof ¶
func (mr *MockClientMockRecorder) GetConsistencyProof(arg0, arg1 interface{}) *gomock.Call
GetConsistencyProof indicates an expected call of GetConsistencyProof.
func (*MockClientMockRecorder) GetInclusionProof ¶
func (mr *MockClientMockRecorder) GetInclusionProof(arg0, arg1 interface{}) *gomock.Call
GetInclusionProof indicates an expected call of GetInclusionProof.
func (*MockClientMockRecorder) GetLeaves ¶
func (mr *MockClientMockRecorder) GetLeaves(arg0, arg1 interface{}) *gomock.Call
GetLeaves indicates an expected call of GetLeaves.
func (*MockClientMockRecorder) GetTreeHead ¶
func (mr *MockClientMockRecorder) GetTreeHead(arg0 interface{}) *gomock.Call
GetTreeHead indicates an expected call of GetTreeHead.
type MockStateManager ¶
type MockStateManager struct {
// contains filtered or unexported fields
}
MockStateManager is a mock of StateManager interface.
func NewMockStateManager ¶
func NewMockStateManager(ctrl *gomock.Controller) *MockStateManager
NewMockStateManager creates a new mock instance.
func (*MockStateManager) AddCosignature ¶
func (m *MockStateManager) AddCosignature(arg0 context.Context, arg1 *[32]byte, arg2 *[64]byte) error
AddCosignature mocks base method.
func (*MockStateManager) Cosigned ¶
func (m *MockStateManager) Cosigned(arg0 context.Context) (*types.SignedTreeHead, error)
Cosigned mocks base method.
func (*MockStateManager) EXPECT ¶
func (m *MockStateManager) EXPECT() *MockStateManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateManager) Latest ¶
func (m *MockStateManager) Latest(arg0 context.Context) (*types.SignedTreeHead, error)
Latest mocks base method.
func (*MockStateManager) Run ¶
func (m *MockStateManager) Run(arg0 context.Context)
Run mocks base method.
func (*MockStateManager) ToSign ¶
func (m *MockStateManager) ToSign(arg0 context.Context) (*types.SignedTreeHead, error)
ToSign mocks base method.
type MockStateManagerMockRecorder ¶
type MockStateManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockStateManagerMockRecorder is the mock recorder for MockStateManager.
func (*MockStateManagerMockRecorder) AddCosignature ¶
func (mr *MockStateManagerMockRecorder) AddCosignature(arg0, arg1, arg2 interface{}) *gomock.Call
AddCosignature indicates an expected call of AddCosignature.
func (*MockStateManagerMockRecorder) Cosigned ¶
func (mr *MockStateManagerMockRecorder) Cosigned(arg0 interface{}) *gomock.Call
Cosigned indicates an expected call of Cosigned.
func (*MockStateManagerMockRecorder) Latest ¶
func (mr *MockStateManagerMockRecorder) Latest(arg0 interface{}) *gomock.Call
Latest indicates an expected call of Latest.
func (*MockStateManagerMockRecorder) Run ¶
func (mr *MockStateManagerMockRecorder) Run(arg0 interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockStateManagerMockRecorder) ToSign ¶
func (mr *MockStateManagerMockRecorder) ToSign(arg0 interface{}) *gomock.Call
ToSign indicates an expected call of ToSign.
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) AddSequencedLeaf ¶
func (m *MockTrillianLogClient) AddSequencedLeaf(arg0 context.Context, arg1 *trillian.AddSequencedLeafRequest, arg2 ...grpc.CallOption) (*trillian.AddSequencedLeafResponse, error)
AddSequencedLeaf mocks base method.
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) GetLeavesByHash ¶
func (m *MockTrillianLogClient) GetLeavesByHash(arg0 context.Context, arg1 *trillian.GetLeavesByHashRequest, arg2 ...grpc.CallOption) (*trillian.GetLeavesByHashResponse, error)
GetLeavesByHash mocks base method.
func (*MockTrillianLogClient) GetLeavesByIndex ¶
func (m *MockTrillianLogClient) GetLeavesByIndex(arg0 context.Context, arg1 *trillian.GetLeavesByIndexRequest, arg2 ...grpc.CallOption) (*trillian.GetLeavesByIndexResponse, error)
GetLeavesByIndex 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) GetSequencedLeafCount ¶
func (m *MockTrillianLogClient) GetSequencedLeafCount(arg0 context.Context, arg1 *trillian.GetSequencedLeafCountRequest, arg2 ...grpc.CallOption) (*trillian.GetSequencedLeafCountResponse, error)
GetSequencedLeafCount 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.
func (*MockTrillianLogClient) QueueLeaves ¶
func (m *MockTrillianLogClient) QueueLeaves(arg0 context.Context, arg1 *trillian.QueueLeavesRequest, arg2 ...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) AddSequencedLeaf ¶
func (mr *MockTrillianLogClientMockRecorder) AddSequencedLeaf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
AddSequencedLeaf indicates an expected call of AddSequencedLeaf.
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) 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) GetLeavesByRange ¶
func (mr *MockTrillianLogClientMockRecorder) GetLeavesByRange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetLeavesByRange indicates an expected call of GetLeavesByRange.
func (*MockTrillianLogClientMockRecorder) GetSequencedLeafCount ¶
func (mr *MockTrillianLogClientMockRecorder) GetSequencedLeafCount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetSequencedLeafCount indicates an expected call of GetSequencedLeafCount.
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.
func (*MockTrillianLogClientMockRecorder) QueueLeaves ¶
func (mr *MockTrillianLogClientMockRecorder) QueueLeaves(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueueLeaves indicates an expected call of QueueLeaves.
type TestSigner ¶
type TestSigner struct { PublicKey *[ed25519.PublicKeySize]byte Signature *[ed25519.SignatureSize]byte Error error }
TestSign implements the signer interface. It can be used to mock an Ed25519 signer that always return the same public key, signature, and error.
func (*TestSigner) Public ¶
func (ts *TestSigner) Public() crypto.PublicKey
func (*TestSigner) Sign ¶
func (ts *TestSigner) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)