package
0.0.0-20180830032904-3da98e966145
Repository: https://github.com/traceabilitychain/tac.git
Documentation: pkg.go.dev
# Functions
ImplicitMetaPolicyWithSubPolicy creates an implicitmeta policy.
NewManagerImpl creates a new ManagerImpl with the given CryptoHelper.
TempateImplicitMetaAnyPolicy returns TemplateImplicitMetaPolicy with cb.ImplicitMetaPolicy_ALL as the rule.
TempateImplicitMetaAnyPolicy returns TemplateImplicitMetaPolicy with cb.ImplicitMetaPolicy_ANY as the rule.
TempateImplicitMetaAnyPolicy returns TemplateImplicitMetaPolicy with cb.ImplicitMetaPolicy_MAJORITY as the rule.
TemplateImplicitMetaPolicy creates a policy at the specified path with the given policyName It utilizes the policyName for the subPolicyName as well, as this is the standard usage pattern.
TemplateImplicitMetaPolicy creates a policy at the specified path with the given policyName and subPolicyName.
# Constants
ApplicationPrefix is used in the path of standard application policy paths.
BlockValidation is the label for the policy which should validate the block signatures for the channel.
ChannelApplicationAdmins is the label for the channel's application admin policy.
ChannelApplicationReaders is the label for the channel's application readers policy.
ChannelApplicationWriters is the label for the channel's application writers policy.
ChannelPrefix is used in the path of standard channel policy managers.
ChannelReaders is the label for the channel's readers policy (encompassing both orderer and application readers).
ChannelWriters is the label for the channel's writers policy (encompassing both orderer and application writers).
OrdererPrefix is used in the path of standard orderer policy paths.
Path separator is used to separate policy names in paths.
# Structs
ManagerImpl is an implementation of Manager and configtx.ConfigHandler In general, it should only be referenced as an Impl for the configtx.ConfigManager.
# Interfaces
ChannelPolicyManagerGetter is a support interface to get access to the policy manager of a given channel.
Manager is a read only subset of the policy ManagerImpl.
Policy is used to determine if a signature is valid.
Proposer is the interface used by the configtx manager for policy management.
Provider provides the backing implementation of a policy.