Versions in this module Expand all Collapse all v2 v2.3.2 Nov 21, 2021 Changes in this version + const ApplicationPrefix + const BlockValidation + const ChannelApplicationAdmins + const ChannelApplicationReaders + const ChannelApplicationWriters + const ChannelOrdererAdmins + const ChannelOrdererReaders + const ChannelOrdererWriters + const ChannelPrefix + const ChannelReaders + const ChannelWriters + const OrdererPrefix + const PathSeparator + func ImplicitMetaFromString(input string) (*cb.ImplicitMetaPolicy, error) + func ImplicitMetaPolicyWithSubPolicy(subPolicyName string, rule cb.ImplicitMetaPolicy_Rule) *cb.ConfigPolicy + func SignatureSetToValidIdentities(signedData []*protoutil.SignedData, ...) []mspi.Identity + func TemplateImplicitMetaAllPolicy(path []string, policyName string) *cb.ConfigGroup + func TemplateImplicitMetaAnyPolicy(path []string, policyName string) *cb.ConfigGroup + func TemplateImplicitMetaMajorityPolicy(path []string, policyName string) *cb.ConfigGroup + func TemplateImplicitMetaPolicy(path []string, policyName string, rule cb.ImplicitMetaPolicy_Rule) *cb.ConfigGroup + func TemplateImplicitMetaPolicyWithSubPolicy(path []string, policyName string, subPolicyName string, ...) *cb.ConfigGroup + type ChannelPolicyManagerGetter interface + Manager func(channelID string) Manager + type ConfigPolicy interface + Key func() string + Value func() *cb.Policy + type Converter interface + Convert func() (*cb.SignaturePolicyEnvelope, error) + type ImplicitMetaPolicy struct + SubPolicies []Policy + SubPolicyName string + Threshold int + func NewImplicitMetaPolicy(data []byte, managers map[string]*ManagerImpl) (*ImplicitMetaPolicy, error) + func (imp *ImplicitMetaPolicy) EvaluateIdentities(identities []msp.Identity) error + func (imp *ImplicitMetaPolicy) EvaluateSignedData(signatureSet []*protoutil.SignedData) error + func (p *ImplicitMetaPolicy) Convert() (*cb.SignaturePolicyEnvelope, error) + type InquireablePolicy interface + SatisfiedBy func() []PrincipalSet + type Manager interface + GetPolicy func(id string) (Policy, bool) + Manager func(path []string) (Manager, bool) + type ManagerImpl struct + Policies map[string]Policy + func NewManagerImpl(path string, providers map[int32]Provider, root *cb.ConfigGroup) (*ManagerImpl, error) + func (pm *ManagerImpl) GetPolicy(id string) (Policy, bool) + func (pm *ManagerImpl) Manager(path []string) (Manager, bool) + type Policy interface + EvaluateIdentities func(identities []mspi.Identity) error + EvaluateSignedData func(signatureSet []*protoutil.SignedData) error + type PolicyLogger struct + Policy Policy + func (pl *PolicyLogger) Convert() (*cb.SignaturePolicyEnvelope, error) + func (pl *PolicyLogger) EvaluateIdentities(identities []mspi.Identity) error + func (pl *PolicyLogger) EvaluateSignedData(signatureSet []*protoutil.SignedData) error + type PolicyManagerGetterFunc func(channelID string) Manager + func (p PolicyManagerGetterFunc) Manager(channelID string) Manager + type PrincipalSet []*msp.MSPPrincipal + func (ps PrincipalSet) ContainingOnly(f func(*msp.MSPPrincipal) bool) bool + func (ps PrincipalSet) UniqueSet() map[*msp.MSPPrincipal]int + type PrincipalSets []PrincipalSet + func (psSets PrincipalSets) ContainingOnly(f func(*msp.MSPPrincipal) bool) PrincipalSets + type Provider interface + NewPolicy func(data []byte) (Policy, proto.Message, error) + type StandardConfigPolicy struct + func ImplicitMetaAllPolicy(policyName string) *StandardConfigPolicy + func ImplicitMetaAnyPolicy(policyName string) *StandardConfigPolicy + func ImplicitMetaMajorityPolicy(policyName string) *StandardConfigPolicy + func SignaturePolicy(policyName string, sigPolicy *cb.SignaturePolicyEnvelope) *StandardConfigPolicy + func (scv *StandardConfigPolicy) Key() string + func (scv *StandardConfigPolicy) Value() *cb.Policy Other modules containing this package github.com/waszqt/fabric