acl

package
v0.0.0-...-95b87ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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 ChannelPolicyManagerGetter

type ChannelPolicyManagerGetter interface {
	Manager(channelID string) policies.Manager
}

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
}

type Verifier

type Verifier interface {
	VerifyByChannel(channel string, sd *protoutil.SignedData) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL