Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(conf *pvtdatastorage.PrivateDataConfig, ledgerconfig *ledger.Config) (pvtdatastorage.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 pvtdatastorage.Provider TestStore pvtdatastorage.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 *couchdb.Config) *StoreEnv
NewTestStoreEnv construct a StoreEnv for testing
func (*StoreEnv) CloseAndReopen ¶
func (env *StoreEnv) CloseAndReopen()
CloseAndReopen closes and opens the store provider
Click to show internal directories.
Click to hide internal directories.