Documentation ¶
Overview ¶
Package mockclient provides a mockable version of the Trillian log client API.
Package mockstorage is a generated GoMock package.
Index ¶
- type MockStorage
- func (m *MockStorage) Add(arg0 context.Context, arg1 *ctonly.Entry) tessera.IndexFuture
- func (m *MockStorage) AddCertDedupInfo(arg0 context.Context, arg1 *x509.Certificate, arg2 dedup.SCTDedupInfo) error
- func (m *MockStorage) AddIssuerChain(arg0 context.Context, arg1 []*x509.Certificate) error
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) GetCertDedupInfo(arg0 context.Context, arg1 *x509.Certificate) (dedup.SCTDedupInfo, bool, error)
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) AddCertDedupInfo(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) AddIssuerChain(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetCertDedupInfo(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) Add ¶
func (m *MockStorage) Add(arg0 context.Context, arg1 *ctonly.Entry) tessera.IndexFuture
Add mocks base method.
func (*MockStorage) AddCertDedupInfo ¶
func (m *MockStorage) AddCertDedupInfo(arg0 context.Context, arg1 *x509.Certificate, arg2 dedup.SCTDedupInfo) error
AddCertDedupInfo mocks base method.
func (*MockStorage) AddIssuerChain ¶
func (m *MockStorage) AddIssuerChain(arg0 context.Context, arg1 []*x509.Certificate) error
AddIssuerChain mocks base method.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) GetCertDedupInfo ¶
func (m *MockStorage) GetCertDedupInfo(arg0 context.Context, arg1 *x509.Certificate) (dedup.SCTDedupInfo, bool, error)
GetCertDedupInfo mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) Add ¶
func (mr *MockStorageMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockStorageMockRecorder) AddCertDedupInfo ¶
func (mr *MockStorageMockRecorder) AddCertDedupInfo(arg0, arg1, arg2 interface{}) *gomock.Call
AddCertDedupInfo indicates an expected call of AddCertDedupInfo.
func (*MockStorageMockRecorder) AddIssuerChain ¶
func (mr *MockStorageMockRecorder) AddIssuerChain(arg0, arg1 interface{}) *gomock.Call
AddIssuerChain indicates an expected call of AddIssuerChain.
func (*MockStorageMockRecorder) GetCertDedupInfo ¶
func (mr *MockStorageMockRecorder) GetCertDedupInfo(arg0, arg1 interface{}) *gomock.Call
GetCertDedupInfo indicates an expected call of GetCertDedupInfo.