Documentation ¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- type MockCertStorage
- func (m *MockCertStorage) AddCertificate(ctx context.Context, tx storage.Tx, cert model.Cert) error
- func (m *MockCertStorage) AddCertificateOutboxMsg(ctx context.Context, tx storage.Tx, ts int64, key string, kind int, ...) error
- func (m *MockCertStorage) AddCertificateRevocationList(ctx context.Context, tx storage.Tx, crl model.CertRevocationList) error
- func (m *MockCertStorage) CreateTx(ctx context.Context, options ...storage.CreateTxOption) (storage.Tx, context.Context, error)
- func (m *MockCertStorage) DeleteCertificateOutboxMsg(ctx context.Context, tx storage.Tx, recIDs ...int64) error
- func (m *MockCertStorage) EXPECT() *MockCertStorageMockRecorder
- func (m *MockCertStorage) GetCertificateOutboxMsg(ctx context.Context, tx storage.Tx, batchSize int) ([]storage.CertificateOutboxMsg, error)
- func (m *MockCertStorage) ListCertificates(ctx context.Context, tx storage.Tx, req storage.ListCertificatesRequest) (storage.ListCertificatesResponse, error)
- type MockCertStorageMockRecorder
- func (mr *MockCertStorageMockRecorder) AddCertificate(ctx, tx, cert interface{}) *gomock.Call
- func (mr *MockCertStorageMockRecorder) AddCertificateOutboxMsg(ctx, tx, ts, key, kind, payload interface{}) *gomock.Call
- func (mr *MockCertStorageMockRecorder) AddCertificateRevocationList(ctx, tx, crl interface{}) *gomock.Call
- func (mr *MockCertStorageMockRecorder) CreateTx(ctx interface{}, options ...interface{}) *gomock.Call
- func (mr *MockCertStorageMockRecorder) DeleteCertificateOutboxMsg(ctx, tx interface{}, recIDs ...interface{}) *gomock.Call
- func (mr *MockCertStorageMockRecorder) GetCertificateOutboxMsg(ctx, tx, batchSize interface{}) *gomock.Call
- func (mr *MockCertStorageMockRecorder) ListCertificates(ctx, tx, req interface{}) *gomock.Call
- type MockResult
- type MockResultMockRecorder
- type MockRow
- type MockRowMockRecorder
- type MockRows
- type MockRowsMockRecorder
- type MockTransactionInterface
- type MockTransactionInterfaceMockRecorder
- type MockTx
- func (m *MockTx) Commit(ctx context.Context) error
- func (m *MockTx) EXPECT() *MockTxMockRecorder
- func (m *MockTx) Exec(ctx context.Context, sql string, arguments ...any) (storage.Result, error)
- func (m *MockTx) Query(ctx context.Context, sql string, args ...any) (storage.Rows, error)
- func (m *MockTx) QueryRow(ctx context.Context, sql string, args ...any) storage.Row
- func (m *MockTx) Rollback(ctx context.Context) error
- type MockTxMockRecorder
- func (mr *MockTxMockRecorder) Commit(ctx interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Exec(ctx, sql interface{}, arguments ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Rollback(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCertStorage ¶
type MockCertStorage struct {
// contains filtered or unexported fields
}
MockCertStorage is a mock of CertStorage interface.
func NewMockCertStorage ¶
func NewMockCertStorage(ctrl *gomock.Controller) *MockCertStorage
NewMockCertStorage creates a new mock instance.
func (*MockCertStorage) AddCertificate ¶
AddCertificate mocks base method.
func (*MockCertStorage) AddCertificateOutboxMsg ¶
func (m *MockCertStorage) AddCertificateOutboxMsg(ctx context.Context, tx storage.Tx, ts int64, key string, kind int, payload []byte) error
AddCertificateOutboxMsg mocks base method.
func (*MockCertStorage) AddCertificateRevocationList ¶
func (m *MockCertStorage) AddCertificateRevocationList(ctx context.Context, tx storage.Tx, crl model.CertRevocationList) error
AddCertificateRevocationList mocks base method.
func (*MockCertStorage) CreateTx ¶
func (m *MockCertStorage) CreateTx(ctx context.Context, options ...storage.CreateTxOption) (storage.Tx, context.Context, error)
CreateTx mocks base method.
func (*MockCertStorage) DeleteCertificateOutboxMsg ¶
func (m *MockCertStorage) DeleteCertificateOutboxMsg(ctx context.Context, tx storage.Tx, recIDs ...int64) error
DeleteCertificateOutboxMsg mocks base method.
func (*MockCertStorage) EXPECT ¶
func (m *MockCertStorage) EXPECT() *MockCertStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCertStorage) GetCertificateOutboxMsg ¶
func (m *MockCertStorage) GetCertificateOutboxMsg(ctx context.Context, tx storage.Tx, batchSize int) ([]storage.CertificateOutboxMsg, error)
GetCertificateOutboxMsg mocks base method.
func (*MockCertStorage) ListCertificates ¶
func (m *MockCertStorage) ListCertificates(ctx context.Context, tx storage.Tx, req storage.ListCertificatesRequest) (storage.ListCertificatesResponse, error)
ListCertificates mocks base method.
type MockCertStorageMockRecorder ¶
type MockCertStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockCertStorageMockRecorder is the mock recorder for MockCertStorage.
func (*MockCertStorageMockRecorder) AddCertificate ¶
func (mr *MockCertStorageMockRecorder) AddCertificate(ctx, tx, cert interface{}) *gomock.Call
AddCertificate indicates an expected call of AddCertificate.
func (*MockCertStorageMockRecorder) AddCertificateOutboxMsg ¶
func (mr *MockCertStorageMockRecorder) AddCertificateOutboxMsg(ctx, tx, ts, key, kind, payload interface{}) *gomock.Call
AddCertificateOutboxMsg indicates an expected call of AddCertificateOutboxMsg.
func (*MockCertStorageMockRecorder) AddCertificateRevocationList ¶
func (mr *MockCertStorageMockRecorder) AddCertificateRevocationList(ctx, tx, crl interface{}) *gomock.Call
AddCertificateRevocationList indicates an expected call of AddCertificateRevocationList.
func (*MockCertStorageMockRecorder) CreateTx ¶
func (mr *MockCertStorageMockRecorder) CreateTx(ctx interface{}, options ...interface{}) *gomock.Call
CreateTx indicates an expected call of CreateTx.
func (*MockCertStorageMockRecorder) DeleteCertificateOutboxMsg ¶
func (mr *MockCertStorageMockRecorder) DeleteCertificateOutboxMsg(ctx, tx interface{}, recIDs ...interface{}) *gomock.Call
DeleteCertificateOutboxMsg indicates an expected call of DeleteCertificateOutboxMsg.
func (*MockCertStorageMockRecorder) GetCertificateOutboxMsg ¶
func (mr *MockCertStorageMockRecorder) GetCertificateOutboxMsg(ctx, tx, batchSize interface{}) *gomock.Call
GetCertificateOutboxMsg indicates an expected call of GetCertificateOutboxMsg.
func (*MockCertStorageMockRecorder) ListCertificates ¶
func (mr *MockCertStorageMockRecorder) ListCertificates(ctx, tx, req interface{}) *gomock.Call
ListCertificates indicates an expected call of ListCertificates.
type MockResult ¶
type MockResult struct {
// contains filtered or unexported fields
}
MockResult is a mock of Result interface.
func NewMockResult ¶
func NewMockResult(ctrl *gomock.Controller) *MockResult
NewMockResult creates a new mock instance.
func (*MockResult) EXPECT ¶
func (m *MockResult) EXPECT() *MockResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResult) RowsAffected ¶
func (m *MockResult) RowsAffected() (int64, error)
RowsAffected mocks base method.
type MockResultMockRecorder ¶
type MockResultMockRecorder struct {
// contains filtered or unexported fields
}
MockResultMockRecorder is the mock recorder for MockResult.
func (*MockResultMockRecorder) RowsAffected ¶
func (mr *MockResultMockRecorder) RowsAffected() *gomock.Call
RowsAffected indicates an expected call of RowsAffected.
type MockRow ¶
type MockRow struct {
// contains filtered or unexported fields
}
MockRow is a mock of Row interface.
func NewMockRow ¶
func NewMockRow(ctrl *gomock.Controller) *MockRow
NewMockRow creates a new mock instance.
func (*MockRow) EXPECT ¶
func (m *MockRow) EXPECT() *MockRowMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRowMockRecorder ¶
type MockRowMockRecorder struct {
// contains filtered or unexported fields
}
MockRowMockRecorder is the mock recorder for MockRow.
func (*MockRowMockRecorder) Scan ¶
func (mr *MockRowMockRecorder) Scan(dest ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.
type MockRows ¶
type MockRows struct {
// contains filtered or unexported fields
}
MockRows is a mock of Rows interface.
func NewMockRows ¶
func NewMockRows(ctrl *gomock.Controller) *MockRows
NewMockRows creates a new mock instance.
func (*MockRows) EXPECT ¶
func (m *MockRows) EXPECT() *MockRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRowsMockRecorder ¶
type MockRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockRowsMockRecorder is the mock recorder for MockRows.
func (*MockRowsMockRecorder) Close ¶
func (mr *MockRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRowsMockRecorder) Err ¶
func (mr *MockRowsMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockRowsMockRecorder) Next ¶
func (mr *MockRowsMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockRowsMockRecorder) Scan ¶
func (mr *MockRowsMockRecorder) Scan(dest ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.
type MockTransactionInterface ¶
type MockTransactionInterface struct {
// contains filtered or unexported fields
}
MockTransactionInterface is a mock of TransactionInterface interface.
func NewMockTransactionInterface ¶
func NewMockTransactionInterface(ctrl *gomock.Controller) *MockTransactionInterface
NewMockTransactionInterface creates a new mock instance.
func (*MockTransactionInterface) CreateTx ¶
func (m *MockTransactionInterface) CreateTx(ctx context.Context, options ...storage.CreateTxOption) (storage.Tx, context.Context, error)
CreateTx mocks base method.
func (*MockTransactionInterface) EXPECT ¶
func (m *MockTransactionInterface) EXPECT() *MockTransactionInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTransactionInterfaceMockRecorder ¶
type MockTransactionInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionInterfaceMockRecorder is the mock recorder for MockTransactionInterface.
func (*MockTransactionInterfaceMockRecorder) CreateTx ¶
func (mr *MockTransactionInterfaceMockRecorder) CreateTx(ctx interface{}, options ...interface{}) *gomock.Call
CreateTx indicates an expected call of CreateTx.
type MockTx ¶
type MockTx struct {
// contains filtered or unexported fields
}
MockTx is a mock of Tx interface.
func NewMockTx ¶
func NewMockTx(ctrl *gomock.Controller) *MockTx
NewMockTx creates a new mock instance.
func (*MockTx) EXPECT ¶
func (m *MockTx) EXPECT() *MockTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTxMockRecorder ¶
type MockTxMockRecorder struct {
// contains filtered or unexported fields
}
MockTxMockRecorder is the mock recorder for MockTx.
func (*MockTxMockRecorder) Commit ¶
func (mr *MockTxMockRecorder) Commit(ctx interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockTxMockRecorder) Exec ¶
func (mr *MockTxMockRecorder) Exec(ctx, sql interface{}, arguments ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockTxMockRecorder) Query ¶
func (mr *MockTxMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockTxMockRecorder) QueryRow ¶
func (mr *MockTxMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockTxMockRecorder) Rollback ¶
func (mr *MockTxMockRecorder) Rollback(ctx interface{}) *gomock.Call
Rollback indicates an expected call of Rollback.