Documentation ¶
Index ¶
- func New(chainID string, cr ChannelResources, ler LedgerResources, ...) *dispatcherImpl
- type Capabilities
- type ChannelPolicyManagerGetter
- type ChannelResources
- type CollectionAndLifecycleResources
- type CollectionResources
- type Context
- type IdentityDeserializer
- type LedgerResources
- type LifecycleResources
- type Mapper
- type Plugin
- type PluginFactory
- type PluginValidator
- type PolicyEvaluatorWrapper
- type PolicyManager
- type QueryExecutorCreator
- type ResultsIteratorImpl
- type StateFetcherImpl
- type StateImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(chainID string, cr ChannelResources, ler LedgerResources, lcr LifecycleResources, pluginValidator *PluginValidator) *dispatcherImpl
Types ¶
type Capabilities ¶
type Capabilities interface { vc.Capabilities }
type ChannelPolicyManagerGetter ¶
type ChannelPolicyManagerGetter interface { policies.ChannelPolicyManagerGetter }
type ChannelResources ¶
type ChannelResources interface {
GetMSPIDs() []string
}
type CollectionResources ¶
type Context ¶
type IdentityDeserializer ¶
type IdentityDeserializer interface { msp.IdentityDeserializer }
type LedgerResources ¶
type LedgerResources interface {
NewQueryExecutor() (ledger.QueryExecutor, error)
}
type LifecycleResources ¶
type Mapper ¶
type Mapper interface { txvalidatorplugin.Mapper }
type Plugin ¶
type Plugin interface { validation.Plugin }
type PluginFactory ¶
type PluginFactory interface { validation.PluginFactory }
type PluginValidator ¶
type PluginValidator struct { sync.Mutex txvalidatorplugin.Mapper QueryExecutorCreator msp.IdentityDeserializer policies.ChannelPolicyManagerGetter CollectionResources // contains filtered or unexported fields }
func NewPluginValidator ¶
func NewPluginValidator(pm txvalidatorplugin.Mapper, qec QueryExecutorCreator, deserializer msp.IdentityDeserializer, capabilities vc.Capabilities, cpmg policies.ChannelPolicyManagerGetter, cor CollectionResources) *PluginValidator
func (*PluginValidator) ValidateWithPlugin ¶
func (pv *PluginValidator) ValidateWithPlugin(ctx *Context) error
type PolicyEvaluatorWrapper ¶
type PolicyEvaluatorWrapper struct { msp.IdentityDeserializer vp.PolicyEvaluator }
func (*PolicyEvaluatorWrapper) DeserializeIdentity ¶
func (id *PolicyEvaluatorWrapper) DeserializeIdentity(serializedIdentity []byte) (vi.Identity, error)
func (*PolicyEvaluatorWrapper) Evaluate ¶
func (id *PolicyEvaluatorWrapper) Evaluate(policyBytes []byte, signatureSet []*protoutil.SignedData) error
type PolicyManager ¶
type QueryExecutorCreator ¶
type QueryExecutorCreator interface {
NewQueryExecutor() (ledger.QueryExecutor, error)
}
type ResultsIteratorImpl ¶
type ResultsIteratorImpl struct {
ledger2.ResultsIterator
}
func (*ResultsIteratorImpl) Next ¶
func (it *ResultsIteratorImpl) Next() (vs.QueryResult, error)
type StateFetcherImpl ¶
type StateFetcherImpl struct {
QueryExecutorCreator
}
func (*StateFetcherImpl) FetchState ¶
func (sf *StateFetcherImpl) FetchState() (vs.State, error)
type StateImpl ¶
type StateImpl struct {
ledger.QueryExecutor
}
func (*StateImpl) GetStateRangeScanIterator ¶
Click to show internal directories.
Click to hide internal directories.