mock_beacon

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_beacon is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDB

type MockDB struct {
	// contains filtered or unexported fields
}

MockDB is a mock of DB interface

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance

func (*MockDB) AllRevocations

func (m *MockDB) AllRevocations(arg0 context.Context) (<-chan beacon.RevocationOrErr, error)

AllRevocations mocks base method

func (*MockDB) BeaconSources

func (m *MockDB) BeaconSources(arg0 context.Context) ([]addr.IA, error)

BeaconSources mocks base method

func (*MockDB) BeginTransaction

func (m *MockDB) BeginTransaction(arg0 context.Context, arg1 *sql.TxOptions) (beacon.Transaction, error)

BeginTransaction mocks base method

func (*MockDB) CandidateBeacons

func (m *MockDB) CandidateBeacons(arg0 context.Context, arg1 int, arg2 beacon.Usage, arg3 addr.IA) (<-chan beacon.BeaconOrErr, error)

CandidateBeacons mocks base method

func (*MockDB) Close

func (m *MockDB) Close() error

Close mocks base method

func (*MockDB) DeleteExpiredBeacons

func (m *MockDB) DeleteExpiredBeacons(arg0 context.Context, arg1 time.Time) (int, error)

DeleteExpiredBeacons mocks base method

func (*MockDB) DeleteExpiredRevocations

func (m *MockDB) DeleteExpiredRevocations(arg0 context.Context, arg1 time.Time) (int, error)

DeleteExpiredRevocations mocks base method

func (*MockDB) DeleteRevocation

func (m *MockDB) DeleteRevocation(arg0 context.Context, arg1 addr.IA, arg2 common.IFIDType) error

DeleteRevocation mocks base method

func (*MockDB) DeleteRevokedBeacons

func (m *MockDB) DeleteRevokedBeacons(arg0 context.Context, arg1 time.Time) (int, error)

DeleteRevokedBeacons mocks base method

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) InsertBeacon

func (m *MockDB) InsertBeacon(arg0 context.Context, arg1 beacon.Beacon, arg2 beacon.Usage) (beacon.InsertStats, error)

InsertBeacon mocks base method

func (*MockDB) InsertRevocation

func (m *MockDB) InsertRevocation(arg0 context.Context, arg1 *path_mgmt.SignedRevInfo) error

InsertRevocation mocks base method

func (*MockDB) SetMaxIdleConns

func (m *MockDB) SetMaxIdleConns(arg0 int)

SetMaxIdleConns mocks base method

func (*MockDB) SetMaxOpenConns

func (m *MockDB) SetMaxOpenConns(arg0 int)

SetMaxOpenConns mocks base method

type MockDBMockRecorder

type MockDBMockRecorder struct {
	// contains filtered or unexported fields
}

MockDBMockRecorder is the mock recorder for MockDB

func (*MockDBMockRecorder) AllRevocations

func (mr *MockDBMockRecorder) AllRevocations(arg0 interface{}) *gomock.Call

AllRevocations indicates an expected call of AllRevocations

func (*MockDBMockRecorder) BeaconSources

func (mr *MockDBMockRecorder) BeaconSources(arg0 interface{}) *gomock.Call

BeaconSources indicates an expected call of BeaconSources

func (*MockDBMockRecorder) BeginTransaction

func (mr *MockDBMockRecorder) BeginTransaction(arg0, arg1 interface{}) *gomock.Call

BeginTransaction indicates an expected call of BeginTransaction

func (*MockDBMockRecorder) CandidateBeacons

func (mr *MockDBMockRecorder) CandidateBeacons(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CandidateBeacons indicates an expected call of CandidateBeacons

func (*MockDBMockRecorder) Close

func (mr *MockDBMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockDBMockRecorder) DeleteExpiredBeacons

func (mr *MockDBMockRecorder) DeleteExpiredBeacons(arg0, arg1 interface{}) *gomock.Call

DeleteExpiredBeacons indicates an expected call of DeleteExpiredBeacons

func (*MockDBMockRecorder) DeleteExpiredRevocations

func (mr *MockDBMockRecorder) DeleteExpiredRevocations(arg0, arg1 interface{}) *gomock.Call

DeleteExpiredRevocations indicates an expected call of DeleteExpiredRevocations

func (*MockDBMockRecorder) DeleteRevocation

func (mr *MockDBMockRecorder) DeleteRevocation(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteRevocation indicates an expected call of DeleteRevocation

func (*MockDBMockRecorder) DeleteRevokedBeacons

func (mr *MockDBMockRecorder) DeleteRevokedBeacons(arg0, arg1 interface{}) *gomock.Call

DeleteRevokedBeacons indicates an expected call of DeleteRevokedBeacons

func (*MockDBMockRecorder) InsertBeacon

func (mr *MockDBMockRecorder) InsertBeacon(arg0, arg1, arg2 interface{}) *gomock.Call

InsertBeacon indicates an expected call of InsertBeacon

func (*MockDBMockRecorder) InsertRevocation

func (mr *MockDBMockRecorder) InsertRevocation(arg0, arg1 interface{}) *gomock.Call

InsertRevocation indicates an expected call of InsertRevocation

func (*MockDBMockRecorder) SetMaxIdleConns

func (mr *MockDBMockRecorder) SetMaxIdleConns(arg0 interface{}) *gomock.Call

SetMaxIdleConns indicates an expected call of SetMaxIdleConns

func (*MockDBMockRecorder) SetMaxOpenConns

func (mr *MockDBMockRecorder) SetMaxOpenConns(arg0 interface{}) *gomock.Call

SetMaxOpenConns indicates an expected call of SetMaxOpenConns

type MockTransaction

type MockTransaction struct {
	// contains filtered or unexported fields
}

MockTransaction is a mock of Transaction interface

func NewMockTransaction

func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction

NewMockTransaction creates a new mock instance

func (*MockTransaction) AllRevocations

func (m *MockTransaction) AllRevocations(arg0 context.Context) (<-chan beacon.RevocationOrErr, error)

AllRevocations mocks base method

func (*MockTransaction) BeaconSources

func (m *MockTransaction) BeaconSources(arg0 context.Context) ([]addr.IA, error)

BeaconSources mocks base method

func (*MockTransaction) CandidateBeacons

func (m *MockTransaction) CandidateBeacons(arg0 context.Context, arg1 int, arg2 beacon.Usage, arg3 addr.IA) (<-chan beacon.BeaconOrErr, error)

CandidateBeacons mocks base method

func (*MockTransaction) Commit

func (m *MockTransaction) Commit() error

Commit mocks base method

func (*MockTransaction) DeleteExpiredBeacons

func (m *MockTransaction) DeleteExpiredBeacons(arg0 context.Context, arg1 time.Time) (int, error)

DeleteExpiredBeacons mocks base method

func (*MockTransaction) DeleteExpiredRevocations

func (m *MockTransaction) DeleteExpiredRevocations(arg0 context.Context, arg1 time.Time) (int, error)

DeleteExpiredRevocations mocks base method

func (*MockTransaction) DeleteRevocation

func (m *MockTransaction) DeleteRevocation(arg0 context.Context, arg1 addr.IA, arg2 common.IFIDType) error

DeleteRevocation mocks base method

func (*MockTransaction) DeleteRevokedBeacons

func (m *MockTransaction) DeleteRevokedBeacons(arg0 context.Context, arg1 time.Time) (int, error)

DeleteRevokedBeacons mocks base method

func (*MockTransaction) EXPECT

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

func (*MockTransaction) InsertBeacon

func (m *MockTransaction) InsertBeacon(arg0 context.Context, arg1 beacon.Beacon, arg2 beacon.Usage) (beacon.InsertStats, error)

InsertBeacon mocks base method

func (*MockTransaction) InsertRevocation

func (m *MockTransaction) InsertRevocation(arg0 context.Context, arg1 *path_mgmt.SignedRevInfo) error

InsertRevocation mocks base method

func (*MockTransaction) Rollback

func (m *MockTransaction) Rollback() error

Rollback mocks base method

type MockTransactionMockRecorder

type MockTransactionMockRecorder struct {
	// contains filtered or unexported fields
}

MockTransactionMockRecorder is the mock recorder for MockTransaction

func (*MockTransactionMockRecorder) AllRevocations

func (mr *MockTransactionMockRecorder) AllRevocations(arg0 interface{}) *gomock.Call

AllRevocations indicates an expected call of AllRevocations

func (*MockTransactionMockRecorder) BeaconSources

func (mr *MockTransactionMockRecorder) BeaconSources(arg0 interface{}) *gomock.Call

BeaconSources indicates an expected call of BeaconSources

func (*MockTransactionMockRecorder) CandidateBeacons

func (mr *MockTransactionMockRecorder) CandidateBeacons(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CandidateBeacons indicates an expected call of CandidateBeacons

func (*MockTransactionMockRecorder) Commit

func (mr *MockTransactionMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit

func (*MockTransactionMockRecorder) DeleteExpiredBeacons

func (mr *MockTransactionMockRecorder) DeleteExpiredBeacons(arg0, arg1 interface{}) *gomock.Call

DeleteExpiredBeacons indicates an expected call of DeleteExpiredBeacons

func (*MockTransactionMockRecorder) DeleteExpiredRevocations

func (mr *MockTransactionMockRecorder) DeleteExpiredRevocations(arg0, arg1 interface{}) *gomock.Call

DeleteExpiredRevocations indicates an expected call of DeleteExpiredRevocations

func (*MockTransactionMockRecorder) DeleteRevocation

func (mr *MockTransactionMockRecorder) DeleteRevocation(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteRevocation indicates an expected call of DeleteRevocation

func (*MockTransactionMockRecorder) DeleteRevokedBeacons

func (mr *MockTransactionMockRecorder) DeleteRevokedBeacons(arg0, arg1 interface{}) *gomock.Call

DeleteRevokedBeacons indicates an expected call of DeleteRevokedBeacons

func (*MockTransactionMockRecorder) InsertBeacon

func (mr *MockTransactionMockRecorder) InsertBeacon(arg0, arg1, arg2 interface{}) *gomock.Call

InsertBeacon indicates an expected call of InsertBeacon

func (*MockTransactionMockRecorder) InsertRevocation

func (mr *MockTransactionMockRecorder) InsertRevocation(arg0, arg1 interface{}) *gomock.Call

InsertRevocation indicates an expected call of InsertRevocation

func (*MockTransactionMockRecorder) Rollback

func (mr *MockTransactionMockRecorder) Rollback() *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