pvtdatastorage

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 23 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) (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) 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