Versions in this module Expand all Collapse all v2 v2.3.2 Nov 21, 2021 Changes in this version + func NewV13Evaluator(policySupport validation.PolicyEvaluator, ...) *policyCheckerFactoryV13 + func NewV20Evaluator(vpmgr KeyLevelValidationParameterManager, ...) *policyCheckerFactoryV20 + type CollectionResources interface + CollectionValidationInfo func(chaincodeName, collectionName string, state s.State) (args []byte, unexpectedErr error, validationErr error) + type KeyLevelValidationParameterManager interface + ExtractValidationParameterDependency func(blockNum, txNum uint64, rwset []byte) + GetValidationParameterForKey func(cc, coll, key string, blockNum, txNum uint64) ([]byte, error) + SetTxValidationResult func(cc string, blockNum, txNum uint64, err error) + type KeyLevelValidationParameterManagerImpl struct + PolicyTranslator PolicyTranslator + StateFetcher validation.StateFetcher + func (m *KeyLevelValidationParameterManagerImpl) ExtractValidationParameterDependency(blockNum, txNum uint64, rwsetBytes []byte) + func (m *KeyLevelValidationParameterManagerImpl) GetValidationParameterForKey(cc, coll, key string, blockNum, txNum uint64) ([]byte, error) + func (m *KeyLevelValidationParameterManagerImpl) SetTxValidationResult(ns string, blockNum, txNum uint64, err error) + type KeyLevelValidator struct + func NewKeyLevelValidator(evaluator RWSetPolicyEvaluatorFactory, ...) *KeyLevelValidator + func (klv *KeyLevelValidator) PostValidate(cc string, blockNum, txNum uint64, err error) + func (klv *KeyLevelValidator) PreValidate(txNum uint64, block *common.Block) + func (klv *KeyLevelValidator) Validate(cc string, blockNum, txNum uint64, rwsetBytes, prp, ccEP []byte, ...) commonerrors.TxValidationError + type PolicyTranslator interface + Translate func([]byte) ([]byte, error) + type RWSetPolicyEvaluator interface + Evaluate func(blockNum, txNum uint64, NsRwSets []*rwsetutil.NsRwSet, ns string, ...) commonerrors.TxValidationError + type RWSetPolicyEvaluatorFactory interface + Evaluator func(ccEP []byte) RWSetPolicyEvaluator + type ValidationParameterUpdatedError struct + CC string + Coll string + Height uint64 + Key string + Txnum uint64 + func (f *ValidationParameterUpdatedError) Error() string Other modules containing this package github.com/waszqt/fabric