Documentation ¶
Index ¶
- type MockSupport
- func (s *MockSupport) CheckACL(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, ...) error
- func (s *MockSupport) CheckInstantiationPolicy(name, version string, cd resourcesconfig.ChaincodeDefinition) error
- func (s *MockSupport) Execute(ctxt context.Context, cid, name, version, txid string, syscc bool, ...) (*pb.Response, *pb.ChaincodeEvent, error)
- func (s *MockSupport) GetApplicationConfig(cid string) (channelconfig.Application, bool)
- func (s *MockSupport) GetChaincodeDefinition(ctx context.Context, chainID string, txid string, ...) (resourcesconfig.ChaincodeDefinition, error)
- func (s *MockSupport) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSupport ¶
type MockSupport struct { IsSysCCAndNotInvokableExternalRv bool IsSysCCRv bool ExecuteCDSResp *pb.Response ExecuteCDSEvent *pb.ChaincodeEvent ExecuteCDSError error ExecuteResp *pb.Response ExecuteEvent *pb.ChaincodeEvent ExecuteError error ChaincodeDefinitionRv resourcesconfig.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) 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 resourcesconfig.ChaincodeDefinition) error
func (*MockSupport) Execute ¶
func (s *MockSupport) Execute(ctxt context.Context, cid, name, version, txid string, syscc bool, signedProp *pb.SignedProposal, prop *pb.Proposal, spec interface{}) (*pb.Response, *pb.ChaincodeEvent, error)
func (*MockSupport) GetApplicationConfig ¶
func (s *MockSupport) GetApplicationConfig(cid string) (channelconfig.Application, bool)
func (*MockSupport) GetChaincodeDefinition ¶
func (s *MockSupport) GetChaincodeDefinition(ctx context.Context, chainID string, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, chaincodeID string, txsim ledger.TxSimulator) (resourcesconfig.ChaincodeDefinition, error)
func (*MockSupport) GetHistoryQueryExecutor ¶
func (s *MockSupport) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, 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
Click to show internal directories.
Click to hide internal directories.