Documentation ¶
Index ¶
- type ChannelPolicyManagerGetter
- type ChannelResources
- type Context
- type Dispatcher
- type LedgerResources
- type PluginValidator
- type PolicyEvaluator
- type PolicyManager
- type QueryExecutor
- type QueryExecutorCreator
- type ResultsIteratorImpl
- type Semaphore
- type StateFetcherImpl
- type StateImpl
- type TxValidator
- type VsccValidatorImpl
- func (v *VsccValidatorImpl) GetInfoForValidate(chdr *common.ChannelHeader, ccID string) (*sysccprovider.ChaincodeInstance, *sysccprovider.ChaincodeInstance, []byte, ...)
- func (v *VsccValidatorImpl) VSCCValidateTx(seq int, payload *common.Payload, envBytes []byte, block *common.Block) (error, peer.TxValidationCode)
- func (v *VsccValidatorImpl) VSCCValidateTxForCC(ctx *Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelPolicyManagerGetter ¶
type ChannelPolicyManagerGetter interface { policies.ChannelPolicyManagerGetter }
type ChannelResources ¶
type ChannelResources interface { MSPManager() msp.MSPManager Apply(configtx *common.ConfigEnvelope) error GetMSPIDs() []string Capabilities() channelconfig.ApplicationCapabilities }
type Context ¶
type Dispatcher ¶
type LedgerResources ¶
type LedgerResources interface { GetTransactionByID(txID string) (*peer.ProcessedTransaction, error) NewQueryExecutor() (ledger.QueryExecutor, error) }
type PluginValidator ¶
type PluginValidator struct { sync.Mutex vp.Mapper QueryExecutorCreator msp.IdentityDeserializer // contains filtered or unexported fields }
func NewPluginValidator ¶
func NewPluginValidator(pm vp.Mapper, qec QueryExecutorCreator, deserializer msp.IdentityDeserializer, capabilities Capabilities) *PluginValidator
func (*PluginValidator) ValidateWithPlugin ¶
func (pv *PluginValidator) ValidateWithPlugin(ctx *Context) error
type PolicyEvaluator ¶
type PolicyEvaluator struct {
msp.IdentityDeserializer
}
func (*PolicyEvaluator) DeserializeIdentity ¶
func (id *PolicyEvaluator) DeserializeIdentity(serializedIdentity []byte) (Identity, error)
func (*PolicyEvaluator) Evaluate ¶
func (id *PolicyEvaluator) Evaluate(policyBytes []byte, signatureSet []*common.SignedData) error
type PolicyManager ¶
type QueryExecutor ¶
type QueryExecutor interface { ledger.QueryExecutor }
type QueryExecutorCreator ¶
type QueryExecutorCreator interface {
NewQueryExecutor() (ledger.QueryExecutor, error)
}
type ResultsIteratorImpl ¶
type ResultsIteratorImpl struct {
ledger2.ResultsIterator
}
func (*ResultsIteratorImpl) Next ¶
func (it *ResultsIteratorImpl) Next() (QueryResult, error)
type StateFetcherImpl ¶
type StateFetcherImpl struct {
QueryExecutorCreator
}
func (*StateFetcherImpl) FetchState ¶
func (sf *StateFetcherImpl) FetchState() (State, error)
type StateImpl ¶
type StateImpl struct {
ledger.QueryExecutor
}
type TxValidator ¶
type TxValidator struct { ChannelID string Semaphore Semaphore ChannelResources ChannelResources LedgerResources LedgerResources Dispatcher Dispatcher }
func NewTxValidator ¶
func NewTxValidator( channelID string, sem Semaphore, cr ChannelResources, ler LedgerResources, lcr plugindispatcher.LifecycleResources, cor plugindispatcher.CollectionResources, pm plugin.Mapper, channelPolicyManagerGetter policies.ChannelPolicyManagerGetter, ) *TxValidator
type VsccValidatorImpl ¶
type VsccValidatorImpl struct {
// contains filtered or unexported fields
}
func (*VsccValidatorImpl) GetInfoForValidate ¶
func (v *VsccValidatorImpl) GetInfoForValidate(chdr *common.ChannelHeader, ccID string) (*sysccprovider.ChaincodeInstance, *sysccprovider.ChaincodeInstance, []byte, error)
func (*VsccValidatorImpl) VSCCValidateTx ¶
func (v *VsccValidatorImpl) VSCCValidateTx(seq int, payload *common.Payload, envBytes []byte, block *common.Block) (error, peer.TxValidationCode)
func (*VsccValidatorImpl) VSCCValidateTxForCC ¶
func (v *VsccValidatorImpl) VSCCValidateTxForCC(ctx *Context) error
Click to show internal directories.
Click to hide internal directories.