endorser

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) IsJavaCC

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

func (*MockSupport) IsSysCC

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

func (*MockSupport) IsSysCCAndNotInvokableExternal

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

Jump to

Keyboard shortcuts

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