Documentation ¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- type MockTrustDB
- func (m *MockTrustDB) Chain(arg0 context.Context, arg1 []byte) ([]*x509.Certificate, error)
- func (m *MockTrustDB) Chains(arg0 context.Context, arg1 trust0.ChainQuery) ([][]*x509.Certificate, error)
- func (m *MockTrustDB) Close() error
- func (m *MockTrustDB) EXPECT() *MockTrustDBMockRecorder
- func (m *MockTrustDB) InsertChain(arg0 context.Context, arg1 []*x509.Certificate) (bool, error)
- func (m *MockTrustDB) InsertTRC(arg0 context.Context, arg1 cppki.SignedTRC) (bool, error)
- func (m *MockTrustDB) SignedTRC(arg0 context.Context, arg1 cppki.TRCID) (cppki.SignedTRC, error)
- func (m *MockTrustDB) SignedTRCs(arg0 context.Context, arg1 trust.TRCsQuery) (cppki.SignedTRCs, error)
- type MockTrustDBMockRecorder
- func (mr *MockTrustDBMockRecorder) Chain(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTrustDBMockRecorder) Chains(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTrustDBMockRecorder) Close() *gomock.Call
- func (mr *MockTrustDBMockRecorder) InsertChain(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTrustDBMockRecorder) InsertTRC(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTrustDBMockRecorder) SignedTRC(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTrustDBMockRecorder) SignedTRCs(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTrustDB ¶
type MockTrustDB struct {
// contains filtered or unexported fields
}
MockTrustDB is a mock of TrustDB interface.
func NewMockTrustDB ¶
func NewMockTrustDB(ctrl *gomock.Controller) *MockTrustDB
NewMockTrustDB creates a new mock instance.
func (*MockTrustDB) Chain ¶
func (m *MockTrustDB) Chain(arg0 context.Context, arg1 []byte) ([]*x509.Certificate, error)
Chain mocks base method.
func (*MockTrustDB) Chains ¶
func (m *MockTrustDB) Chains(arg0 context.Context, arg1 trust0.ChainQuery) ([][]*x509.Certificate, error)
Chains mocks base method.
func (*MockTrustDB) EXPECT ¶
func (m *MockTrustDB) EXPECT() *MockTrustDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTrustDB) InsertChain ¶
func (m *MockTrustDB) InsertChain(arg0 context.Context, arg1 []*x509.Certificate) (bool, error)
InsertChain mocks base method.
func (*MockTrustDB) SignedTRCs ¶
func (m *MockTrustDB) SignedTRCs(arg0 context.Context, arg1 trust.TRCsQuery) (cppki.SignedTRCs, error)
SignedTRCs mocks base method.
type MockTrustDBMockRecorder ¶
type MockTrustDBMockRecorder struct {
// contains filtered or unexported fields
}
MockTrustDBMockRecorder is the mock recorder for MockTrustDB.
func (*MockTrustDBMockRecorder) Chain ¶
func (mr *MockTrustDBMockRecorder) Chain(arg0, arg1 interface{}) *gomock.Call
Chain indicates an expected call of Chain.
func (*MockTrustDBMockRecorder) Chains ¶
func (mr *MockTrustDBMockRecorder) Chains(arg0, arg1 interface{}) *gomock.Call
Chains indicates an expected call of Chains.
func (*MockTrustDBMockRecorder) Close ¶
func (mr *MockTrustDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTrustDBMockRecorder) InsertChain ¶
func (mr *MockTrustDBMockRecorder) InsertChain(arg0, arg1 interface{}) *gomock.Call
InsertChain indicates an expected call of InsertChain.
func (*MockTrustDBMockRecorder) InsertTRC ¶
func (mr *MockTrustDBMockRecorder) InsertTRC(arg0, arg1 interface{}) *gomock.Call
InsertTRC indicates an expected call of InsertTRC.
func (*MockTrustDBMockRecorder) SignedTRC ¶
func (mr *MockTrustDBMockRecorder) SignedTRC(arg0, arg1 interface{}) *gomock.Call
SignedTRC indicates an expected call of SignedTRC.
func (*MockTrustDBMockRecorder) SignedTRCs ¶
func (mr *MockTrustDBMockRecorder) SignedTRCs(arg0, arg1 interface{}) *gomock.Call
SignedTRCs indicates an expected call of SignedTRCs.