stubwrapper

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StubWrapper

type StubWrapper struct {
	Stub        shim.ChaincodeStubInterface
	WriteSet    map[string][]byte
	PvtWriteSet map[string]map[string][]byte
}

func (*StubWrapper) CreateCompositeKey

func (sw *StubWrapper) CreateCompositeKey(objectType string, attributes []string) (string, errors.ICCError)

func (*StubWrapper) DelPrivateData

func (sw *StubWrapper) DelPrivateData(collection, key string) errors.ICCError

func (*StubWrapper) DelState

func (sw *StubWrapper) DelState(key string) errors.ICCError

func (*StubWrapper) GetHistoryForKey

func (sw *StubWrapper) GetHistoryForKey(key string) (shim.HistoryQueryIteratorInterface, errors.ICCError)

GetHistoryForKey does not return non-commited ledger states

func (*StubWrapper) GetPrivateData

func (sw *StubWrapper) GetPrivateData(collection, key string) ([]byte, errors.ICCError)

func (*StubWrapper) GetPrivateDataHash

func (sw *StubWrapper) GetPrivateDataHash(collection, key string) ([]byte, errors.ICCError)

func (*StubWrapper) GetPrivateDataQueryResult

func (sw *StubWrapper) GetPrivateDataQueryResult(collection, query string) (shim.StateQueryIteratorInterface, errors.ICCError)

GetPrivateDataQueryResult does not return non-commited ledger states

func (*StubWrapper) GetQueryResult

func (sw *StubWrapper) GetQueryResult(query string) (shim.StateQueryIteratorInterface, errors.ICCError)

GetQueryResult does not return non-commited ledger states

func (*StubWrapper) GetQueryResultWithPagination

func (sw *StubWrapper) GetQueryResultWithPagination(query string, pageSize int32,
	bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, errors.ICCError)

GetQueryResultWithPagination does not return non-commited ledger states

func (*StubWrapper) GetState

func (sw *StubWrapper) GetState(key string) ([]byte, errors.ICCError)

func (*StubWrapper) GetStateByPartialCompositeKey

func (sw *StubWrapper) GetStateByPartialCompositeKey(objectType string, keys []string) (shim.StateQueryIteratorInterface, errors.ICCError)

GetStateByPartialCompositeKey does not return non-commited ledger states

func (*StubWrapper) PutPrivateData

func (sw *StubWrapper) PutPrivateData(collection, key string, obj []byte) errors.ICCError

func (*StubWrapper) PutState

func (sw *StubWrapper) PutState(key string, obj []byte) errors.ICCError

Jump to

Keyboard shortcuts

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