Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(conf *pvtdatastorage.PrivateDataConfig, ledgerconfig *ledger.Config) (common.Provider, error)
NewProvider instantiates a private data storage provider backed by CouchDB
Types ¶
type NotFoundInIndexErr ¶
type NotFoundInIndexErr struct { }
NotFoundInIndexErr is used to indicate missing entry in the index
func NewErrNotFoundInIndex ¶
func NewErrNotFoundInIndex() *NotFoundInIndexErr
NewErrNotFoundInIndex creates an missing entry in the index error
func (*NotFoundInIndexErr) Error ¶
func (err *NotFoundInIndexErr) Error() string
type StoreEnv ¶
type StoreEnv struct { TestStoreProvider common.Provider TestStore *store // contains filtered or unexported fields }
StoreEnv provides the store env for testing
func NewTestStoreEnv ¶
func NewTestStoreEnv(t *testing.T, ledgerid string, btlPolicy pvtdatapolicy.BTLPolicy, couchDBConfig *ledger.CouchDBConfig) *StoreEnv
NewTestStoreEnv construct a StoreEnv for testing
func NewTestStoreEnvWithConfig ¶ added in v0.1.5
func NewTestStoreEnvWithConfig(t *testing.T, ledgerid string, btlPolicy pvtdatapolicy.BTLPolicy, couchDBConfig *ledger.CouchDBConfig, conf *pvtdatastorage.PrivateDataConfig) *StoreEnv
NewTestStoreEnvWithConfig construct a test StoreEnv with the given cprivate data config
func (*StoreEnv) CloseAndReopen ¶
func (env *StoreEnv) CloseAndReopen()
CloseAndReopen closes and opens the store provider
Click to show internal directories.
Click to hide internal directories.