Documentation ¶
Index ¶
- type MockSupport
- func (s *MockSupport) ChannelState(channel string) (endorser.QueryCreator, error)
- func (s *MockSupport) CheckACL(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, ...) error
- func (s *MockSupport) CheckInstantiationPolicy(name, version string, cd ccprovider.ChaincodeDefinition) error
- func (s *MockSupport) Execute(txParams *ccprovider.TransactionParams, cid, name, version, txid string, ...) (*pb.Response, *pb.ChaincodeEvent, error)
- func (s *MockSupport) ExecuteLegacyInit(txParams *ccprovider.TransactionParams, cid, name, version, txid string, ...) (*pb.Response, *pb.ChaincodeEvent, error)
- func (s *MockSupport) GetApplicationConfig(cid string) (channelconfig.Application, bool)
- func (s *MockSupport) GetChaincodeDefinition(chaincodeName string, txsim ledger.QueryExecutor) (ccprovider.ChaincodeDefinition, error)
- func (s *MockSupport) GetChaincodeDeploymentSpecFS(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error)
- func (s *MockSupport) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, error)
- func (s *MockSupport) GetLedgerHeight(channelID string) (uint64, error)
- func (s *MockSupport) GetTransactionByID(chid, txID string) (*pb.ProcessedTransaction, error)
- func (s *MockSupport) GetTxSimulator(ledgername string, txid string) (ledger.TxSimulator, error)
- func (s *MockSupport) IsJavaCC(buf []byte) (bool, error)
- func (s *MockSupport) IsSysCC(name string) bool
- func (s *MockSupport) IsSysCCAndNotInvokableExternal(name string) bool
- func (s *MockSupport) NewQueryCreator(channel string) (endorser.QueryCreator, error)
- func (s *MockSupport) Serialize() ([]byte, error)
- func (s *MockSupport) Sign(message []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSupport ¶
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 ¶ added in v1.3.0
func (s *MockSupport) ChannelState(channel string) (endorser.QueryCreator, error)
func (*MockSupport) CheckACL ¶
func (s *MockSupport) CheckACL(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, shdr *common.SignatureHeader, hdrext *pb.ChaincodeHeaderExtension) error
func (*MockSupport) CheckInstantiationPolicy ¶
func (s *MockSupport) CheckInstantiationPolicy(name, version string, cd ccprovider.ChaincodeDefinition) error
func (*MockSupport) Execute ¶
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 ¶ added in v1.3.0
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 ¶
func (s *MockSupport) GetApplicationConfig(cid string) (channelconfig.Application, bool)
func (*MockSupport) GetChaincodeDefinition ¶
func (s *MockSupport) GetChaincodeDefinition(chaincodeName string, txsim ledger.QueryExecutor) (ccprovider.ChaincodeDefinition, error)
func (*MockSupport) GetChaincodeDeploymentSpecFS ¶
func (s *MockSupport) GetChaincodeDeploymentSpecFS(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error)
func (*MockSupport) GetHistoryQueryExecutor ¶
func (s *MockSupport) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, error)
func (*MockSupport) GetLedgerHeight ¶ added in v1.3.0
func (s *MockSupport) GetLedgerHeight(channelID string) (uint64, error)
func (*MockSupport) GetTransactionByID ¶
func (s *MockSupport) GetTransactionByID(chid, txID string) (*pb.ProcessedTransaction, error)
func (*MockSupport) GetTxSimulator ¶
func (s *MockSupport) GetTxSimulator(ledgername string, txid string) (ledger.TxSimulator, error)
func (*MockSupport) IsSysCC ¶
func (s *MockSupport) IsSysCC(name string) bool
func (*MockSupport) IsSysCCAndNotInvokableExternal ¶
func (s *MockSupport) IsSysCCAndNotInvokableExternal(name string) bool
func (*MockSupport) NewQueryCreator ¶ added in v1.3.0
func (s *MockSupport) NewQueryCreator(channel string) (endorser.QueryCreator, error)
func (*MockSupport) Serialize ¶ added in v1.3.0
func (s *MockSupport) Serialize() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.