Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationPolicyEvaluator ¶
type ApplicationPolicyEvaluator struct {
// contains filtered or unexported fields
}
func New ¶
func New(deserializer msp.IdentityDeserializer, channel string, channelPolicyManagerGetter policies.ChannelPolicyManagerGetter) (*ApplicationPolicyEvaluator, error)
func (*ApplicationPolicyEvaluator) Evaluate ¶
func (a *ApplicationPolicyEvaluator) Evaluate(policyBytes []byte, signatureSet []*protoutil.SignedData) error
type ChannelPolicyManagerGetter ¶
type ChannelPolicyManagerGetter interface { policies.ChannelPolicyManagerGetter }
type ChannelPolicyReferenceProviderImpl ¶
type ChannelPolicyReferenceProviderImpl struct {
Manager
}
type IdentityDeserializer ¶
type IdentityDeserializer interface { msp.IdentityDeserializer }
type PolicyChecker ¶
type PolicyChecker interface { CheckPolicy(channelID, policyName string, signedProp *pb.SignedProposal) error CheckPolicyBySignedData(channelID, policyName string, sd []*protoutil.SignedData) error CheckPolicyNoChannel(policyName string, signedProp *pb.SignedProposal) error }
func NewPolicyChecker ¶
func NewPolicyChecker(channelPolicyManagerGetter policies.ChannelPolicyManagerGetter, localMSP msp.IdentityDeserializer, principalGetter mgmt.MSPPrincipalGetter) PolicyChecker
type PolicyManager ¶
type SignaturePolicyProvider ¶
type SignaturePolicyProvider interface {
NewPolicy(signaturePolicy *common.SignaturePolicyEnvelope) (policies.Policy, error)
}
Click to show internal directories.
Click to hide internal directories.