fabric: github.com/hyperledger/fabric/core/endorser/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/core/endorser/mocks"

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Index

Package Files

channel_state_retriever.go plugin.go plugin_factory.go plugin_mapper.go query_creator.go signing_identity_fetcher.go transient_store_retriever.go txsim.go

type ChannelStateRetriever Uses

type ChannelStateRetriever struct {
    mock.Mock
}

ChannelStateRetriever is an autogenerated mock type for the ChannelStateRetriever type

func (*ChannelStateRetriever) NewQueryCreator Uses

func (_m *ChannelStateRetriever) NewQueryCreator(channel string) (endorser.QueryCreator, error)

NewQueryCreator provides a mock function with given fields: channel

type MockChaincodeDefinition Uses

type MockChaincodeDefinition struct {
    NameRv          string
    VersionRv       string
    EndorsementStr  string
    ValidationStr   string
    ValidationBytes []byte
    HashRv          []byte
}

func (*MockChaincodeDefinition) CCName Uses

func (m *MockChaincodeDefinition) CCName() string

func (*MockChaincodeDefinition) CCVersion Uses

func (m *MockChaincodeDefinition) CCVersion() string

func (*MockChaincodeDefinition) Endorsement Uses

func (m *MockChaincodeDefinition) Endorsement() string

func (*MockChaincodeDefinition) Hash Uses

func (m *MockChaincodeDefinition) Hash() []byte

func (*MockChaincodeDefinition) Validation Uses

func (m *MockChaincodeDefinition) Validation() (string, []byte)

type MockTxSim Uses

type MockTxSim struct {
    GetTxSimulationResultsRv *ledger.TxSimulationResults
}

func (*MockTxSim) DeletePrivateData Uses

func (m *MockTxSim) DeletePrivateData(namespace, collection, key string) error

func (*MockTxSim) DeletePrivateDataMetadata Uses

func (m *MockTxSim) DeletePrivateDataMetadata(namespace, collection, key string) error

func (*MockTxSim) DeleteState Uses

func (m *MockTxSim) DeleteState(namespace string, key string) error

func (*MockTxSim) DeleteStateMetadata Uses

func (m *MockTxSim) DeleteStateMetadata(namespace, key string) error

func (*MockTxSim) Done Uses

func (m *MockTxSim) Done()

func (*MockTxSim) ExecuteQuery Uses

func (m *MockTxSim) ExecuteQuery(namespace, query string) (commonledger.ResultsIterator, error)

func (*MockTxSim) ExecuteQueryOnPrivateData Uses

func (m *MockTxSim) ExecuteQueryOnPrivateData(namespace, collection, query string) (commonledger.ResultsIterator, error)

func (*MockTxSim) ExecuteQueryWithMetadata Uses

func (m *MockTxSim) ExecuteQueryWithMetadata(namespace, query string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)

func (*MockTxSim) ExecuteUpdate Uses

func (m *MockTxSim) ExecuteUpdate(query string) error

func (*MockTxSim) GetPrivateData Uses

func (m *MockTxSim) GetPrivateData(namespace, collection, key string) ([]byte, error)

func (*MockTxSim) GetPrivateDataHash Uses

func (m *MockTxSim) GetPrivateDataHash(namespace, collection, key string) ([]byte, error)

func (*MockTxSim) GetPrivateDataMetadata Uses

func (m *MockTxSim) GetPrivateDataMetadata(namespace, collection, key string) (map[string][]byte, error)

func (*MockTxSim) GetPrivateDataMetadataByHash Uses

func (m *MockTxSim) GetPrivateDataMetadataByHash(namespace, collection string, keyhash []byte) (map[string][]byte, error)

func (*MockTxSim) GetPrivateDataMultipleKeys Uses

func (m *MockTxSim) GetPrivateDataMultipleKeys(namespace, collection string, keys []string) ([][]byte, error)

func (*MockTxSim) GetPrivateDataRangeScanIterator Uses

func (m *MockTxSim) GetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error)

func (*MockTxSim) GetState Uses

func (m *MockTxSim) GetState(namespace string, key string) ([]byte, error)

func (*MockTxSim) GetStateMetadata Uses

func (m *MockTxSim) GetStateMetadata(namespace, key string) (map[string][]byte, error)

func (*MockTxSim) GetStateMultipleKeys Uses

func (m *MockTxSim) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)

func (*MockTxSim) GetStateRangeScanIterator Uses

func (m *MockTxSim) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)

func (*MockTxSim) GetStateRangeScanIteratorWithMetadata Uses

func (m *MockTxSim) GetStateRangeScanIteratorWithMetadata(namespace string, startKey, endKey string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)

func (*MockTxSim) GetTxSimulationResults Uses

func (m *MockTxSim) GetTxSimulationResults() (*ledger.TxSimulationResults, error)

func (*MockTxSim) SetPrivateData Uses

func (m *MockTxSim) SetPrivateData(namespace, collection, key string, value []byte) error

func (*MockTxSim) SetPrivateDataMetadata Uses

func (m *MockTxSim) SetPrivateDataMetadata(namespace, collection, key string, metadata map[string][]byte) error

func (*MockTxSim) SetPrivateDataMultipleKeys Uses

func (m *MockTxSim) SetPrivateDataMultipleKeys(namespace, collection string, kvs map[string][]byte) error

func (*MockTxSim) SetState Uses

func (m *MockTxSim) SetState(namespace string, key string, value []byte) error

func (*MockTxSim) SetStateMetadata Uses

func (m *MockTxSim) SetStateMetadata(namespace, key string, metadata map[string][]byte) error

func (*MockTxSim) SetStateMultipleKeys Uses

func (m *MockTxSim) SetStateMultipleKeys(namespace string, kvs map[string][]byte) error

type Plugin Uses

type Plugin struct {
    mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func (*Plugin) Endorse Uses

func (_m *Plugin) Endorse(payload []byte, sp *peer.SignedProposal) (*peer.Endorsement, []byte, error)

Endorse provides a mock function with given fields: payload, sp

func (*Plugin) Init Uses

func (_m *Plugin) Init(dependencies ...endorsement.Dependency) error

Init provides a mock function with given fields: dependencies

type PluginFactory Uses

type PluginFactory struct {
    mock.Mock
}

PluginFactory is an autogenerated mock type for the PluginFactory type

func (*PluginFactory) New Uses

func (_m *PluginFactory) New() endorsement.Plugin

New provides a mock function with given fields:

type PluginMapper Uses

type PluginMapper struct {
    mock.Mock
}

PluginMapper is an autogenerated mock type for the PluginMapper type

func (*PluginMapper) PluginFactoryByName Uses

func (_m *PluginMapper) PluginFactoryByName(name endorser.PluginName) endorsement.PluginFactory

PluginFactoryByName provides a mock function with given fields: name

type QueryCreator Uses

type QueryCreator struct {
    mock.Mock
}

QueryCreator is an autogenerated mock type for the QueryCreator type

func (*QueryCreator) NewQueryExecutor Uses

func (_m *QueryCreator) NewQueryExecutor() (ledger.QueryExecutor, error)

NewQueryExecutor provides a mock function with given fields:

type SigningIdentityFetcher Uses

type SigningIdentityFetcher struct {
    mock.Mock
}

SigningIdentityFetcher is an autogenerated mock type for the SigningIdentityFetcher type

func (*SigningIdentityFetcher) SigningIdentityForRequest Uses

func (_m *SigningIdentityFetcher) SigningIdentityForRequest(_a0 *peer.SignedProposal) (endorsement.SigningIdentity, error)

SigningIdentityForRequest provides a mock function with given fields: _a0

type TransientStoreRetriever Uses

type TransientStoreRetriever struct {
    mock.Mock
}

TransientStoreRetriever is an autogenerated mock type for the TransientStoreRetriever type

func (*TransientStoreRetriever) StoreForChannel Uses

func (_m *TransientStoreRetriever) StoreForChannel(channel string) *transientstore.Store

StoreForChannel provides a mock function with given fields: channel

Package mocks imports 8 packages (graph). Updated 2020-01-27. Refresh now. Tools for package owners.