mock_storage

package
v0.0.0-...-fe4d2ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_storage is a generated GoMock package.

Index

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

func (m *MockCertStorage) AddCertificate(ctx context.Context, tx storage.Tx, cert model.Cert) error

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

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

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

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.

func (*MockRow) Scan

func (m *MockRow) Scan(dest ...any) error

Scan mocks base method.

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) Close

func (m *MockRows) Close()

Close mocks base method.

func (*MockRows) EXPECT

func (m *MockRows) EXPECT() *MockRowsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRows) Err

func (m *MockRows) Err() error

Err mocks base method.

func (*MockRows) Next

func (m *MockRows) Next() bool

Next mocks base method.

func (*MockRows) Scan

func (m *MockRows) Scan(dest ...any) error

Scan mocks base method.

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

CreateTx mocks base method.

func (*MockTransactionInterface) EXPECT

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) Commit

func (m *MockTx) Commit(ctx context.Context) error

Commit mocks base method.

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTx) Exec

func (m *MockTx) Exec(ctx context.Context, sql string, arguments ...any) (storage.Result, error)

Exec mocks base method.

func (*MockTx) Query

func (m *MockTx) Query(ctx context.Context, sql string, args ...any) (storage.Rows, error)

Query mocks base method.

func (*MockTx) QueryRow

func (m *MockTx) QueryRow(ctx context.Context, sql string, args ...any) storage.Row

QueryRow mocks base method.

func (*MockTx) Rollback

func (m *MockTx) Rollback(ctx context.Context) error

Rollback mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL