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

package endorser

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

Index

Package Files

support.go

type MockSupport Uses

type MockSupport struct {
    *mock.Mock
    *endorser.PluginEndorser
    IsSysCCAndNotInvokableExternalRv bool
    IsSysCCRv                        bool
    ExecuteCDSResp                   *pb.Response
    ExecuteCDSEvent                  *pb.ChaincodeEvent
    ExecuteCDSError                  error
    ExecuteResp                      *pb.Response
    ExecuteEvent                     *pb.ChaincodeEvent
    ExecuteError                     error
    ChaincodeDefinitionRv            ccprovider.ChaincodeDefinition
    ChaincodeDefinitionError         error
    GetTxSimulatorRv                 *mc.MockTxSim
    GetTxSimulatorErr                error
    CheckInstantiationPolicyError    error
    GetTransactionByIDErr            error
    CheckACLErr                      error
    SysCCMap                         map[string]struct{}
    IsJavaRV                         bool
    IsJavaErr                        error
    GetApplicationConfigRv           channelconfig.Application
    GetApplicationConfigBoolRv       bool
}

func (*MockSupport) ChannelState Uses

func (s *MockSupport) ChannelState(channel string) (endorser.QueryCreator, error)

func (*MockSupport) CheckACL Uses

func (s *MockSupport) CheckACL(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, shdr *common.SignatureHeader, hdrext *pb.ChaincodeHeaderExtension) error

func (*MockSupport) CheckInstantiationPolicy Uses

func (s *MockSupport) CheckInstantiationPolicy(name, version string, cd ccprovider.ChaincodeDefinition) error

func (*MockSupport) Execute Uses

func (s *MockSupport) Execute(txParams *ccprovider.TransactionParams, cid, name, version, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, spec *pb.ChaincodeInput) (*pb.Response, *pb.ChaincodeEvent, error)

func (*MockSupport) ExecuteLegacyInit Uses

func (s *MockSupport) ExecuteLegacyInit(txParams *ccprovider.TransactionParams, cid, name, version, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, spec *pb.ChaincodeDeploymentSpec) (*pb.Response, *pb.ChaincodeEvent, error)

func (*MockSupport) GetApplicationConfig Uses

func (s *MockSupport) GetApplicationConfig(cid string) (channelconfig.Application, bool)

func (*MockSupport) GetChaincodeDefinition Uses

func (s *MockSupport) GetChaincodeDefinition(chaincodeName string, txsim ledger.QueryExecutor) (ccprovider.ChaincodeDefinition, error)

func (*MockSupport) GetChaincodeDeploymentSpecFS Uses

func (s *MockSupport) GetChaincodeDeploymentSpecFS(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error)

func (*MockSupport) GetHistoryQueryExecutor Uses

func (s *MockSupport) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, error)

func (*MockSupport) GetLedgerHeight Uses

func (s *MockSupport) GetLedgerHeight(channelID string) (uint64, error)

func (*MockSupport) GetTransactionByID Uses

func (s *MockSupport) GetTransactionByID(chid, txID string) (*pb.ProcessedTransaction, error)

func (*MockSupport) GetTxSimulator Uses

func (s *MockSupport) GetTxSimulator(ledgername string, txid string) (ledger.TxSimulator, error)

func (*MockSupport) IsJavaCC Uses

func (s *MockSupport) IsJavaCC(buf []byte) (bool, error)

func (*MockSupport) IsSysCC Uses

func (s *MockSupport) IsSysCC(name string) bool

func (*MockSupport) IsSysCCAndNotInvokableExternal Uses

func (s *MockSupport) IsSysCCAndNotInvokableExternal(name string) bool

func (*MockSupport) NewQueryCreator Uses

func (s *MockSupport) NewQueryCreator(channel string) (endorser.QueryCreator, error)

func (*MockSupport) Serialize Uses

func (s *MockSupport) Serialize() ([]byte, error)

func (*MockSupport) Sign Uses

func (s *MockSupport) Sign(message []byte) ([]byte, error)

Package endorser imports 8 packages (graph). Updated 2018-11-20. Refresh now. Tools for package owners.