package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Packages
Code generated by counterfeiter.
# Functions
CreateStandardChannelFilters creates the set of filters for a normal (non-system) chain.
NewExpirationRejectRule returns a rule that rejects messages signed by identities who's identities have expired, given the capability is active.
NewMaintenanceFilter creates a new maintenance filter, at every evaluation, the policy manager and orderer config are called to retrieve the latest version of the policy and config.
NewRuleSet creates a new RuleSet with the given ordered list of Rules.
NewSigFilter creates a new signature filter, at every evaluation, the policy manager is called to retrieve the latest version of the policy.
NewSizeFilter creates a size filter which rejects messages larger than maxBytes.
NewStandardChannel creates a new standard message processor.
# Constants
ConfigMsg indicates message of type CONFIG.
ConfigUpdateMsg indicates messages of type CONFIG_UPDATE.
NormalMsg is the class of standard (endorser or otherwise non-config) messages.
UnsupportedMsg indicates a message of type ORDERER_TRANSACTION, which is no longer supported, since support for the system channel was removed.
# Variables
AcceptRule always returns Accept as a result for Apply.
EmptyRejectRule rejects empty messages.
ErrChannelDoesNotExist is returned by the system channel for transactions which are not for the system channel ID and are not attempting to create a new channel.
ErrEmptyMessage is returned by the empty message filter on rejection.
ErrMaintenanceMode is returned when transactions are rejected because the orderer is in "maintenance mode", as defined by ConsensusType.State != NORMAL.
ErrPermissionDenied is returned by errors which are caused by transactions which are not permitted due to an authorization failure.
# Structs
MaintenanceFilter checks whether the orderer config ConsensusType is in maintenance mode, and if it is, validates that the transaction is signed by the orderer org admin.
MaxBytesRule implements the Rule interface.
RuleSet is used to apply a collection of rules.
SigFilter stores the name of the policy to apply to deliver requests to determine whether a client is authorized.
StandardChannel implements the Processor interface for standard extant channels.
# Interfaces
MaintenanceFilterSupport provides the resources required for the maintenance filter.
Processor provides the methods necessary to classify and process any message which arrives through the Broadcast interface.
Rule defines a filter function which accepts, rejects, or forwards (to the next rule) an Envelope.
SigFilterSupport provides the resources required for the signature filter.
SizeFilterResources defines the subset of the channel resources required to create this filter.
StandardChannelSupport includes the resources needed for the StandardChannel processor.
# Type aliases
Classification represents the possible message types for the system.