endorser

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 8 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 {
	*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.2.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 added in v1.1.1

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.2.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) 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

func (*MockSupport) NewQueryCreator added in v1.2.0

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

func (*MockSupport) Serialize added in v1.2.0

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

func (*MockSupport) Sign added in v1.2.0

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

Jump to

Keyboard shortcuts

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