mock_trustdb

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_trustdb is a generated GoMock package.

Index

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

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

BeginTransaction mocks base method

func (*MockTrustDB) Close

func (m *MockTrustDB) Close() error

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

func (m *MockTrustDB) GetAllChains(arg0 context.Context) (<-chan trustdb.ChainOrErr, error)

GetAllChains mocks base method

func (*MockTrustDB) GetAllCustKeys

func (m *MockTrustDB) GetAllCustKeys(arg0 context.Context) (<-chan trustdb.CustKeyOrErr, error)

GetAllCustKeys mocks base method

func (*MockTrustDB) GetAllIssCerts

func (m *MockTrustDB) GetAllIssCerts(arg0 context.Context) (<-chan trustdb.CertOrErr, error)

GetAllIssCerts mocks base method

func (*MockTrustDB) GetAllTRCs

func (m *MockTrustDB) GetAllTRCs(arg0 context.Context) (<-chan trustdb.TrcOrErr, error)

GetAllTRCs mocks base method

func (*MockTrustDB) GetChainMaxVersion

func (m *MockTrustDB) GetChainMaxVersion(arg0 context.Context, arg1 addr.IA) (*cert.Chain, error)

GetChainMaxVersion mocks base method

func (*MockTrustDB) GetChainVersion

func (m *MockTrustDB) GetChainVersion(arg0 context.Context, arg1 addr.IA, arg2 scrypto.Version) (*cert.Chain, error)

GetChainVersion mocks base method

func (*MockTrustDB) GetCustKey

func (m *MockTrustDB) GetCustKey(arg0 context.Context, arg1 addr.IA) (*trustdb.CustKey, error)

GetCustKey mocks base method

func (*MockTrustDB) GetIssCertMaxVersion

func (m *MockTrustDB) GetIssCertMaxVersion(arg0 context.Context, arg1 addr.IA) (*cert.Certificate, error)

GetIssCertMaxVersion mocks base method

func (*MockTrustDB) GetIssCertVersion

func (m *MockTrustDB) GetIssCertVersion(arg0 context.Context, arg1 addr.IA, arg2 scrypto.Version) (*cert.Certificate, error)

GetIssCertVersion mocks base method

func (*MockTrustDB) GetTRCMaxVersion

func (m *MockTrustDB) GetTRCMaxVersion(arg0 context.Context, arg1 addr.ISD) (*trc.TRC, error)

GetTRCMaxVersion mocks base method

func (*MockTrustDB) GetTRCVersion

func (m *MockTrustDB) GetTRCVersion(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version) (*trc.TRC, error)

GetTRCVersion mocks base method

func (*MockTrustDB) InsertChain

func (m *MockTrustDB) InsertChain(arg0 context.Context, arg1 *cert.Chain) (int64, error)

InsertChain mocks base method

func (*MockTrustDB) InsertCustKey

func (m *MockTrustDB) InsertCustKey(arg0 context.Context, arg1 *trustdb.CustKey, arg2 scrypto.Version) error

InsertCustKey mocks base method

func (*MockTrustDB) InsertIssCert

func (m *MockTrustDB) InsertIssCert(arg0 context.Context, arg1 *cert.Certificate) (int64, error)

InsertIssCert mocks base method

func (*MockTrustDB) InsertTRC

func (m *MockTrustDB) InsertTRC(arg0 context.Context, arg1 *trc.TRC) (int64, error)

InsertTRC mocks base method

func (*MockTrustDB) SetMaxIdleConns

func (m *MockTrustDB) SetMaxIdleConns(arg0 int)

SetMaxIdleConns mocks base method

func (*MockTrustDB) SetMaxOpenConns

func (m *MockTrustDB) SetMaxOpenConns(arg0 int)

SetMaxOpenConns mocks base method

type MockTrustDBMockRecorder

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

MockTrustDBMockRecorder is the mock recorder for MockTrustDB

func (*MockTrustDBMockRecorder) BeginTransaction

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

BeginTransaction indicates an expected call of BeginTransaction

func (*MockTrustDBMockRecorder) Close

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

Close indicates an expected call of Close

func (*MockTrustDBMockRecorder) GetAllChains

func (mr *MockTrustDBMockRecorder) GetAllChains(arg0 interface{}) *gomock.Call

GetAllChains indicates an expected call of GetAllChains

func (*MockTrustDBMockRecorder) GetAllCustKeys

func (mr *MockTrustDBMockRecorder) GetAllCustKeys(arg0 interface{}) *gomock.Call

GetAllCustKeys indicates an expected call of GetAllCustKeys

func (*MockTrustDBMockRecorder) GetAllIssCerts

func (mr *MockTrustDBMockRecorder) GetAllIssCerts(arg0 interface{}) *gomock.Call

GetAllIssCerts indicates an expected call of GetAllIssCerts

func (*MockTrustDBMockRecorder) GetAllTRCs

func (mr *MockTrustDBMockRecorder) GetAllTRCs(arg0 interface{}) *gomock.Call

GetAllTRCs indicates an expected call of GetAllTRCs

func (*MockTrustDBMockRecorder) GetChainMaxVersion

func (mr *MockTrustDBMockRecorder) GetChainMaxVersion(arg0, arg1 interface{}) *gomock.Call

GetChainMaxVersion indicates an expected call of GetChainMaxVersion

func (*MockTrustDBMockRecorder) GetChainVersion

func (mr *MockTrustDBMockRecorder) GetChainVersion(arg0, arg1, arg2 interface{}) *gomock.Call

GetChainVersion indicates an expected call of GetChainVersion

func (*MockTrustDBMockRecorder) GetCustKey

func (mr *MockTrustDBMockRecorder) GetCustKey(arg0, arg1 interface{}) *gomock.Call

GetCustKey indicates an expected call of GetCustKey

func (*MockTrustDBMockRecorder) GetIssCertMaxVersion

func (mr *MockTrustDBMockRecorder) GetIssCertMaxVersion(arg0, arg1 interface{}) *gomock.Call

GetIssCertMaxVersion indicates an expected call of GetIssCertMaxVersion

func (*MockTrustDBMockRecorder) GetIssCertVersion

func (mr *MockTrustDBMockRecorder) GetIssCertVersion(arg0, arg1, arg2 interface{}) *gomock.Call

GetIssCertVersion indicates an expected call of GetIssCertVersion

func (*MockTrustDBMockRecorder) GetTRCMaxVersion

func (mr *MockTrustDBMockRecorder) GetTRCMaxVersion(arg0, arg1 interface{}) *gomock.Call

GetTRCMaxVersion indicates an expected call of GetTRCMaxVersion

func (*MockTrustDBMockRecorder) GetTRCVersion

func (mr *MockTrustDBMockRecorder) GetTRCVersion(arg0, arg1, arg2 interface{}) *gomock.Call

GetTRCVersion indicates an expected call of GetTRCVersion

func (*MockTrustDBMockRecorder) InsertChain

func (mr *MockTrustDBMockRecorder) InsertChain(arg0, arg1 interface{}) *gomock.Call

InsertChain indicates an expected call of InsertChain

func (*MockTrustDBMockRecorder) InsertCustKey

func (mr *MockTrustDBMockRecorder) InsertCustKey(arg0, arg1, arg2 interface{}) *gomock.Call

InsertCustKey indicates an expected call of InsertCustKey

func (*MockTrustDBMockRecorder) InsertIssCert

func (mr *MockTrustDBMockRecorder) InsertIssCert(arg0, arg1 interface{}) *gomock.Call

InsertIssCert indicates an expected call of InsertIssCert

func (*MockTrustDBMockRecorder) InsertTRC

func (mr *MockTrustDBMockRecorder) InsertTRC(arg0, arg1 interface{}) *gomock.Call

InsertTRC indicates an expected call of InsertTRC

func (*MockTrustDBMockRecorder) SetMaxIdleConns

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

SetMaxIdleConns indicates an expected call of SetMaxIdleConns

func (*MockTrustDBMockRecorder) SetMaxOpenConns

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

SetMaxOpenConns indicates an expected call of SetMaxOpenConns

Jump to

Keyboard shortcuts

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