pvtdatastorage

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

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) Cleanup

func (env *StoreEnv) Cleanup(ledgerid string)

Cleanup env test

func (*StoreEnv) CloseAndReopen

func (env *StoreEnv) CloseAndReopen()

CloseAndReopen closes and opens the store provider

Jump to

Keyboard shortcuts

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