Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelConfigGetter ¶
type ChannelConfigGetter interface {
GetChannelConfig(cid string) channelconfig.Resources
}
type ChannelConfigGetterFunc ¶
type ChannelConfigGetterFunc func(cid string) channelconfig.Resources
func (ChannelConfigGetterFunc) GetChannelConfig ¶
func (f ChannelConfigGetterFunc) GetChannelConfig(cid string) channelconfig.Resources
type ChannelVerifier ¶
type ChannelVerifier struct { policies.ChannelPolicyManagerGetter Policy string }
func NewChannelVerifier ¶
func NewChannelVerifier(policy string, polMgr policies.ChannelPolicyManagerGetter) *ChannelVerifier
func (*ChannelVerifier) VerifyByChannel ¶
func (cv *ChannelVerifier) VerifyByChannel(channel string, sd *protoutil.SignedData) error
type DiscoverySupport ¶
type DiscoverySupport struct { ChannelConfigGetter Verifier Evaluator }
func NewDiscoverySupport ¶
func NewDiscoverySupport(v Verifier, e Evaluator, chanConf ChannelConfigGetter) *DiscoverySupport
func (*DiscoverySupport) ConfigSequence ¶
func (s *DiscoverySupport) ConfigSequence(channel string) uint64
func (*DiscoverySupport) EligibleForService ¶
func (s *DiscoverySupport) EligibleForService(channel string, data protoutil.SignedData) error
func (*DiscoverySupport) SatisfiesPrincipal ¶
func (s *DiscoverySupport) SatisfiesPrincipal(channel string, rawIdentity []byte, principal *msp.MSPPrincipal) error
type Evaluator ¶
type Evaluator interface {
Evaluate(signatureSet []*protoutil.SignedData) error
}
Click to show internal directories.
Click to hide internal directories.