Documentation
¶
Index ¶
- type MockStateRangeQueryIterator
- type MockStub
- func (stub *MockStub) CreateCompositeKey(objectType string, attributes []string) (string, error)
- func (stub *MockStub) DelPrivateData(collection string, key string) error
- func (stub *MockStub) DelState(key string) error
- func (stub *MockStub) GetArgs() [][]byte
- func (stub *MockStub) GetArgsSlice() ([]byte, error)
- func (stub *MockStub) GetBinding() ([]byte, error)
- func (stub *MockStub) GetChannelID() string
- func (stub *MockStub) GetCreator() ([]byte, error)
- func (stub *MockStub) GetDecorations() map[string][]byte
- func (stub *MockStub) GetFunctionAndParameters() (function string, params []string)
- func (stub *MockStub) GetHistoryForKey(key string) (shim.HistoryQueryIteratorInterface, error)
- func (stub *MockStub) GetPrivateData(collection string, key string) ([]byte, error)
- func (stub *MockStub) GetPrivateDataByPartialCompositeKey(collection, objectType string, attributes []string) (shim.StateQueryIteratorInterface, error)
- func (stub *MockStub) GetPrivateDataByRange(collection, startKey, endKey string) (shim.StateQueryIteratorInterface, error)
- func (stub *MockStub) GetPrivateDataHash(collection, key string) ([]byte, error)
- func (stub *MockStub) GetPrivateDataQueryResult(collection, query string) (shim.StateQueryIteratorInterface, error)
- func (stub *MockStub) GetPrivateDataValidationParameter(collection, key string) ([]byte, error)
- func (stub *MockStub) GetQueryResult(query string) (shim.StateQueryIteratorInterface, error)
- func (stub *MockStub) GetQueryResultWithPagination(query string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
- func (stub *MockStub) GetSignedProposal() (*pb.SignedProposal, error)
- func (stub *MockStub) GetState(key string) ([]byte, error)
- func (stub *MockStub) GetStateByPartialCompositeKey(objectType string, attributes []string) (shim.StateQueryIteratorInterface, error)
- func (stub *MockStub) GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
- func (stub *MockStub) GetStateByRange(startKey, endKey string) (shim.StateQueryIteratorInterface, error)
- func (stub *MockStub) GetStateByRangeWithPagination(startKey, endKey string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
- func (stub *MockStub) GetStateValidationParameter(key string) ([]byte, error)
- func (stub *MockStub) GetStringArgs() []string
- func (stub *MockStub) GetTransient() (map[string][]byte, error)
- func (stub *MockStub) GetTxID() string
- func (stub *MockStub) GetTxTimestamp() (*timestamp.Timestamp, error)
- func (stub *MockStub) InvokeChaincode(chaincodeName string, args [][]byte, channel string) pb.Response
- func (stub *MockStub) MockInit(uuid string, args [][]byte) pb.Response
- func (stub *MockStub) MockInvoke(uuid string, args [][]byte) pb.Response
- func (stub *MockStub) MockInvokeWithSignedProposal(uuid string, args [][]byte, sp *pb.SignedProposal) pb.Response
- func (stub *MockStub) MockPeerChaincode(invokableChaincodeName string, otherStub *MockStub, channel string)
- func (stub *MockStub) MockTransactionEnd(uuid string)
- func (stub *MockStub) MockTransactionStart(txid string)
- func (stub *MockStub) PutPrivateData(collection string, key string, value []byte) error
- func (stub *MockStub) PutState(key string, value []byte) error
- func (stub *MockStub) SetEvent(name string, payload []byte) error
- func (stub *MockStub) SetPrivateDataValidationParameter(collection, key string, ep []byte) error
- func (stub *MockStub) SetStateValidationParameter(key string, ep []byte) error
- func (stub *MockStub) SplitCompositeKey(compositeKey string) (string, []string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStateRangeQueryIterator ¶
type MockStateRangeQueryIterator struct { Closed bool Stub *MockStub StartKey string EndKey string Current *list.Element }
func NewMockStateRangeQueryIterator ¶
func NewMockStateRangeQueryIterator(stub *MockStub, startKey string, endKey string) *MockStateRangeQueryIterator
func (*MockStateRangeQueryIterator) Close ¶
func (iter *MockStateRangeQueryIterator) Close() error
func (*MockStateRangeQueryIterator) HasNext ¶
func (iter *MockStateRangeQueryIterator) HasNext() bool
func (*MockStateRangeQueryIterator) Next ¶
func (iter *MockStateRangeQueryIterator) Next() (*queryresult.KV, error)
type MockStub ¶
type MockStub struct { Name string State map[string][]byte Keys *list.List Invokables map[string]*MockStub TxID string TxTimestamp *timestamp.Timestamp ChannelID string PvtState map[string]map[string][]byte EndorsementPolicies map[string]map[string][]byte ChaincodeEventsChannel chan *pb.ChaincodeEvent Creator []byte Decorations map[string][]byte // contains filtered or unexported fields }
func (*MockStub) CreateCompositeKey ¶
func (*MockStub) DelPrivateData ¶
func (*MockStub) GetArgsSlice ¶
func (*MockStub) GetBinding ¶
func (*MockStub) GetChannelID ¶
func (*MockStub) GetCreator ¶
func (*MockStub) GetDecorations ¶
func (*MockStub) GetFunctionAndParameters ¶
func (*MockStub) GetHistoryForKey ¶
func (stub *MockStub) GetHistoryForKey(key string) (shim.HistoryQueryIteratorInterface, error)
func (*MockStub) GetPrivateData ¶
func (*MockStub) GetPrivateDataByPartialCompositeKey ¶
func (*MockStub) GetPrivateDataByRange ¶
func (stub *MockStub) GetPrivateDataByRange(collection, startKey, endKey string) (shim.StateQueryIteratorInterface, error)
func (*MockStub) GetPrivateDataHash ¶
func (*MockStub) GetPrivateDataQueryResult ¶
func (stub *MockStub) GetPrivateDataQueryResult(collection, query string) (shim.StateQueryIteratorInterface, error)
func (*MockStub) GetPrivateDataValidationParameter ¶
func (*MockStub) GetQueryResult ¶
func (stub *MockStub) GetQueryResult(query string) (shim.StateQueryIteratorInterface, error)
func (*MockStub) GetQueryResultWithPagination ¶
func (stub *MockStub) GetQueryResultWithPagination(query string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
func (*MockStub) GetSignedProposal ¶
func (stub *MockStub) GetSignedProposal() (*pb.SignedProposal, error)
func (*MockStub) GetStateByPartialCompositeKey ¶
func (*MockStub) GetStateByPartialCompositeKeyWithPagination ¶
func (stub *MockStub) GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
func (*MockStub) GetStateByRange ¶
func (stub *MockStub) GetStateByRange(startKey, endKey string) (shim.StateQueryIteratorInterface, error)
func (*MockStub) GetStateByRangeWithPagination ¶
func (stub *MockStub) GetStateByRangeWithPagination(startKey, endKey string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
func (*MockStub) GetStateValidationParameter ¶
func (*MockStub) GetStringArgs ¶
func (*MockStub) GetTxTimestamp ¶
func (*MockStub) InvokeChaincode ¶
func (*MockStub) MockInvoke ¶
func (*MockStub) MockInvokeWithSignedProposal ¶
func (*MockStub) MockPeerChaincode ¶
func (*MockStub) MockTransactionEnd ¶
func (*MockStub) MockTransactionStart ¶
func (*MockStub) PutPrivateData ¶
func (*MockStub) SetPrivateDataValidationParameter ¶
func (*MockStub) SetStateValidationParameter ¶
Click to show internal directories.
Click to hide internal directories.