mocks

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
	mock.Mock
}

func (*Capabilities) ACLs

func (_m *Capabilities) ACLs() bool

func (*Capabilities) CollectionUpgrade

func (_m *Capabilities) CollectionUpgrade() bool

func (*Capabilities) FabToken

func (_m *Capabilities) FabToken() bool

func (*Capabilities) ForbidDuplicateTXIdInBlock

func (_m *Capabilities) ForbidDuplicateTXIdInBlock() bool

func (*Capabilities) KeyLevelEndorsement

func (_m *Capabilities) KeyLevelEndorsement() bool

func (*Capabilities) MetadataLifecycle

func (_m *Capabilities) MetadataLifecycle() bool

func (*Capabilities) PrivateChannelData

func (_m *Capabilities) PrivateChannelData() bool

func (*Capabilities) Supported

func (_m *Capabilities) Supported() error

func (*Capabilities) V1_1Validation

func (_m *Capabilities) V1_1Validation() bool

func (*Capabilities) V1_2Validation

func (_m *Capabilities) V1_2Validation() bool

func (*Capabilities) V1_3Validation

func (_m *Capabilities) V1_3Validation() bool

func (*Capabilities) V2_0Validation

func (_m *Capabilities) V2_0Validation() bool

type ChannelPolicyManagerGetter

type ChannelPolicyManagerGetter struct {
	mock.Mock
}

func (*ChannelPolicyManagerGetter) Manager

func (_m *ChannelPolicyManagerGetter) Manager(channelID string) policies.Manager

type ChannelResources

type ChannelResources struct {
	mock.Mock
}

func (*ChannelResources) Apply

func (_m *ChannelResources) Apply(configtx *common.ConfigEnvelope) error

func (*ChannelResources) Capabilities

func (*ChannelResources) GetMSPIDs

func (_m *ChannelResources) GetMSPIDs() []string

func (*ChannelResources) MSPManager

func (_m *ChannelResources) MSPManager() msp.MSPManager

type CollectionResources

type CollectionResources struct {
	mock.Mock
}

func (*CollectionResources) CollectionValidationInfo

func (_m *CollectionResources) CollectionValidationInfo(chaincodeName string, collectionName string, state validation.State) ([]byte, error, error)

type Dispatcher

type Dispatcher struct {
	mock.Mock
}

func (*Dispatcher) Dispatch

func (_m *Dispatcher) Dispatch(seq int, payload *common.Payload, envBytes []byte, block *common.Block) (error, peer.TxValidationCode)

type IdentityDeserializer

type IdentityDeserializer struct {
	mock.Mock
}

func (*IdentityDeserializer) DeserializeIdentity

func (_m *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)

func (*IdentityDeserializer) IsWellFormed

func (_m *IdentityDeserializer) IsWellFormed(identity *protosmsp.SerializedIdentity) error

type LedgerResources

type LedgerResources struct {
	mock.Mock
}

func (*LedgerResources) GetTransactionByID

func (_m *LedgerResources) GetTransactionByID(txID string) (*peer.ProcessedTransaction, error)

func (*LedgerResources) NewQueryExecutor

func (_m *LedgerResources) NewQueryExecutor() (ledger.QueryExecutor, error)

type Mapper

type Mapper struct {
	mock.Mock
}

func (*Mapper) FactoryByName

func (_m *Mapper) FactoryByName(name plugin.Name) validation.PluginFactory

type Plugin

type Plugin struct {
	mock.Mock
}

func (*Plugin) Init

func (_m *Plugin) Init(dependencies ...validation.Dependency) error

func (*Plugin) Validate

func (_m *Plugin) Validate(block *common.Block, namespace string, txPosition int, actionPosition int, contextData ...validation.ContextDatum) error

type PluginFactory

type PluginFactory struct {
	mock.Mock
}

func (*PluginFactory) New

func (_m *PluginFactory) New() validation.Plugin

type PolicyManager

type PolicyManager struct {
	mock.Mock
}

func (*PolicyManager) GetPolicy

func (_m *PolicyManager) GetPolicy(id string) (policies.Policy, bool)

func (*PolicyManager) Manager

func (_m *PolicyManager) Manager(path []string) (policies.Manager, bool)

type QueryExecutor

type QueryExecutor struct {
	mock.Mock
}

func (*QueryExecutor) Done

func (_m *QueryExecutor) Done()

func (*QueryExecutor) ExecuteQuery

func (_m *QueryExecutor) ExecuteQuery(namespace string, query string) (ledger.ResultsIterator, error)

func (*QueryExecutor) ExecuteQueryOnPrivateData

func (_m *QueryExecutor) ExecuteQueryOnPrivateData(namespace string, collection string, query string) (ledger.ResultsIterator, error)

func (*QueryExecutor) ExecuteQueryWithMetadata

func (_m *QueryExecutor) ExecuteQueryWithMetadata(namespace string, query string, metadata map[string]interface{}) (coreledger.QueryResultsIterator, error)

func (*QueryExecutor) GetPrivateData

func (_m *QueryExecutor) GetPrivateData(namespace string, collection string, key string) ([]byte, error)

func (*QueryExecutor) GetPrivateDataHash

func (_m *QueryExecutor) GetPrivateDataHash(namespace string, collection string, key string) ([]byte, error)

func (*QueryExecutor) GetPrivateDataMetadata

func (_m *QueryExecutor) GetPrivateDataMetadata(namespace string, collection string, key string) (map[string][]byte, error)

func (*QueryExecutor) GetPrivateDataMetadataByHash

func (_m *QueryExecutor) GetPrivateDataMetadataByHash(namespace string, collection string, keyhash []byte) (map[string][]byte, error)

func (*QueryExecutor) GetPrivateDataMultipleKeys

func (_m *QueryExecutor) GetPrivateDataMultipleKeys(namespace string, collection string, keys []string) ([][]byte, error)

func (*QueryExecutor) GetPrivateDataRangeScanIterator

func (_m *QueryExecutor) GetPrivateDataRangeScanIterator(namespace string, collection string, startKey string, endKey string) (ledger.ResultsIterator, error)

func (*QueryExecutor) GetState

func (_m *QueryExecutor) GetState(namespace string, key string) ([]byte, error)

func (*QueryExecutor) GetStateMetadata

func (_m *QueryExecutor) GetStateMetadata(namespace string, key string) (map[string][]byte, error)

func (*QueryExecutor) GetStateMultipleKeys

func (_m *QueryExecutor) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)

func (*QueryExecutor) GetStateRangeScanIterator

func (_m *QueryExecutor) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (ledger.ResultsIterator, error)

func (*QueryExecutor) GetStateRangeScanIteratorWithMetadata

func (_m *QueryExecutor) GetStateRangeScanIteratorWithMetadata(namespace string, startKey string, endKey string, metadata map[string]interface{}) (coreledger.QueryResultsIterator, error)

type QueryExecutorCreator

type QueryExecutorCreator struct {
	mock.Mock
}

func (*QueryExecutorCreator) NewQueryExecutor

func (_m *QueryExecutorCreator) NewQueryExecutor() (ledger.QueryExecutor, error)

Jump to

Keyboard shortcuts

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