mocks

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func (*DB) Close

func (_m *DB) Close() error

Close provides a mock function with given fields:

func (*DB) DataQuery

func (_m *DB) DataQuery(ctx context.Context, dbName string, querierUserID string, query []byte) (*types.DataQueryResponseEnvelope, error)

DataQuery provides a mock function with given fields: ctx, dbName, querierUserID, query

func (*DB) DoesUserExist

func (_m *DB) DoesUserExist(userID string) (bool, error)

DoesUserExist provides a mock function with given fields: userID

func (*DB) GetAugmentedBlockHeader

func (_m *DB) GetAugmentedBlockHeader(userID string, blockNum uint64) (*types.GetAugmentedBlockHeaderResponseEnvelope, error)

GetAugmentedBlockHeader provides a mock function with given fields: userID, blockNum

func (*DB) GetBlockHeader

func (_m *DB) GetBlockHeader(userID string, blockNum uint64) (*types.GetBlockResponseEnvelope, error)

GetBlockHeader provides a mock function with given fields: userID, blockNum

func (*DB) GetCertificate

func (_m *DB) GetCertificate(userID string) (*x509.Certificate, error)

GetCertificate provides a mock function with given fields: userID

func (*DB) GetClusterStatus

func (_m *DB) GetClusterStatus(noCerts bool) (*types.GetClusterStatusResponseEnvelope, error)

GetClusterStatus provides a mock function with given fields: noCerts

func (*DB) GetConfig

func (_m *DB) GetConfig(querierUserID string) (*types.GetConfigResponseEnvelope, error)

GetConfig provides a mock function with given fields: querierUserID

func (*DB) GetConfigBlock

func (_m *DB) GetConfigBlock(querierUserID string, blockNumber uint64) (*types.GetConfigBlockResponseEnvelope, error)

GetConfigBlock provides a mock function with given fields: querierUserID, blockNumber

func (*DB) GetDBIndex added in v0.2.2

func (_m *DB) GetDBIndex(dbName string, querierUserID string) (*types.GetDBIndexResponseEnvelope, error)

GetDBIndex provides a mock function with given fields: dbName, querierUserID

func (*DB) GetDBStatus

func (_m *DB) GetDBStatus(dbName string) (*types.GetDBStatusResponseEnvelope, error)

GetDBStatus provides a mock function with given fields: dbName

func (*DB) GetData

func (_m *DB) GetData(dbName string, querierUserID string, key string) (*types.GetDataResponseEnvelope, error)

GetData provides a mock function with given fields: dbName, querierUserID, key

func (*DB) GetDataProof

func (_m *DB) GetDataProof(userID string, blockNum uint64, dbname string, key string, deleted bool) (*types.GetDataProofResponseEnvelope, error)

GetDataProof provides a mock function with given fields: userID, blockNum, dbname, key, deleted

func (*DB) GetDataRange added in v0.2.4

func (_m *DB) GetDataRange(dbName string, querierUserID string, startKey string, endKey string, limit uint64) (*types.GetDataRangeResponseEnvelope, error)

GetDataRange provides a mock function with given fields: dbName, querierUserID, startKey, endKey, limit

func (*DB) GetDeletedValues

func (_m *DB) GetDeletedValues(userID string, dbname string, key string) (*types.GetHistoricalDataResponseEnvelope, error)

GetDeletedValues provides a mock function with given fields: userID, dbname, key

func (*DB) GetLedgerPath

func (_m *DB) GetLedgerPath(userID string, start uint64, end uint64) (*types.GetLedgerPathResponseEnvelope, error)

GetLedgerPath provides a mock function with given fields: userID, start, end

func (*DB) GetMostRecentValueAtOrBelow

func (_m *DB) GetMostRecentValueAtOrBelow(userID string, dbName string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)

GetMostRecentValueAtOrBelow provides a mock function with given fields: userID, dbName, key, version

func (*DB) GetNextValues

func (_m *DB) GetNextValues(userID string, dbname string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)

GetNextValues provides a mock function with given fields: userID, dbname, key, version

func (*DB) GetNodeConfig

func (_m *DB) GetNodeConfig(nodeID string) (*types.GetNodeConfigResponseEnvelope, error)

GetNodeConfig provides a mock function with given fields: nodeID

func (*DB) GetPreviousValues

func (_m *DB) GetPreviousValues(userID string, dbname string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)

GetPreviousValues provides a mock function with given fields: userID, dbname, key, version

func (*DB) GetReaders

func (_m *DB) GetReaders(userID string, dbName string, key string) (*types.GetDataReadersResponseEnvelope, error)

GetReaders provides a mock function with given fields: userID, dbName, key

func (*DB) GetTx added in v0.2.8

func (_m *DB) GetTx(userID string, blockNum uint64, txIdx uint64) (*types.GetTxResponseEnvelope, error)

GetTx provides a mock function with given fields: userID, blockNum, txIdx

func (*DB) GetTxIDsSubmittedByUser

func (_m *DB) GetTxIDsSubmittedByUser(querierUserID string, targetUserID string) (*types.GetTxIDsSubmittedByResponseEnvelope, error)

GetTxIDsSubmittedByUser provides a mock function with given fields: querierUserID, targetUserID

func (*DB) GetTxProof

func (_m *DB) GetTxProof(userID string, blockNum uint64, txIdx uint64) (*types.GetTxProofResponseEnvelope, error)

GetTxProof provides a mock function with given fields: userID, blockNum, txIdx

func (*DB) GetTxReceipt

func (_m *DB) GetTxReceipt(userId string, txID string) (*types.TxReceiptResponseEnvelope, error)

GetTxReceipt provides a mock function with given fields: userId, txID

func (*DB) GetUser

func (_m *DB) GetUser(querierUserID string, targetUserID string) (*types.GetUserResponseEnvelope, error)

GetUser provides a mock function with given fields: querierUserID, targetUserID

func (*DB) GetValueAt

func (_m *DB) GetValueAt(userID string, dbName string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)

GetValueAt provides a mock function with given fields: userID, dbName, key, version

func (*DB) GetValues

func (_m *DB) GetValues(userID string, dbName string, key string) (*types.GetHistoricalDataResponseEnvelope, error)

GetValues provides a mock function with given fields: userID, dbName, key

func (*DB) GetValuesDeletedByUser

func (_m *DB) GetValuesDeletedByUser(querierUserID string, targetUserID string) (*types.GetDataProvenanceResponseEnvelope, error)

GetValuesDeletedByUser provides a mock function with given fields: querierUserID, targetUserID

func (*DB) GetValuesReadByUser

func (_m *DB) GetValuesReadByUser(querierUserID string, targetUserID string) (*types.GetDataProvenanceResponseEnvelope, error)

GetValuesReadByUser provides a mock function with given fields: querierUserID, targetUserID

func (*DB) GetValuesWrittenByUser

func (_m *DB) GetValuesWrittenByUser(querierUserID string, targetUserID string) (*types.GetDataProvenanceResponseEnvelope, error)

GetValuesWrittenByUser provides a mock function with given fields: querierUserID, targetUserID

func (*DB) GetWriters

func (_m *DB) GetWriters(userID string, dbName string, key string) (*types.GetDataWritersResponseEnvelope, error)

GetWriters provides a mock function with given fields: userID, dbName, key

func (*DB) Height

func (_m *DB) Height() (uint64, error)

Height provides a mock function with given fields:

func (*DB) IsDBExists

func (_m *DB) IsDBExists(name string) bool

IsDBExists provides a mock function with given fields: name

func (*DB) IsLeader

func (_m *DB) IsLeader() *errors.NotLeaderError

IsLeader provides a mock function with given fields:

func (*DB) LedgerHeight

func (_m *DB) LedgerHeight() (uint64, error)

LedgerHeight provides a mock function with given fields:

func (*DB) SubmitTransaction

func (_m *DB) SubmitTransaction(tx interface{}, timeout time.Duration) (*types.TxReceiptResponseEnvelope, error)

SubmitTransaction provides a mock function with given fields: tx, timeout

type TxProcessor

type TxProcessor struct {
	mock.Mock
}

TxProcessor is an autogenerated mock type for the TxProcessor type

func (*TxProcessor) Close

func (_m *TxProcessor) Close() error

Close provides a mock function with given fields:

func (*TxProcessor) ClusterStatus

func (_m *TxProcessor) ClusterStatus() (string, []string)

ClusterStatus provides a mock function with given fields:

func (*TxProcessor) IsLeader

func (_m *TxProcessor) IsLeader() *errors.NotLeaderError

IsLeader provides a mock function with given fields:

func (*TxProcessor) SubmitTransaction

func (_m *TxProcessor) SubmitTransaction(tx interface{}, timeout time.Duration) (*types.TxReceiptResponse, error)

SubmitTransaction provides a mock function with given fields: tx, timeout

Jump to

Keyboard shortcuts

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