policy

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: 11 Imported by: 0

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 ChannelPolicyReferenceProvider

type ChannelPolicyReferenceProvider interface {
	NewPolicy(channelConfigPolicyReference string) (policies.Policy, error)
}

type ChannelPolicyReferenceProviderImpl

type ChannelPolicyReferenceProviderImpl struct {
	Manager
}

func (*ChannelPolicyReferenceProviderImpl) NewPolicy

func (c *ChannelPolicyReferenceProviderImpl) NewPolicy(channelConfigPolicyReference string) (policies.Policy, error)

type Identity

type Identity interface {
	msp.Identity
}

type IdentityDeserializer

type IdentityDeserializer interface {
	msp.IdentityDeserializer
}

type Manager

type Manager interface {
	GetPolicy(id string) (policies.Policy, bool)
}

type Policy

type Policy interface {
	policies.Policy
}

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 PolicyManager interface {
	policies.Manager
}

type SignaturePolicyProvider

type SignaturePolicyProvider interface {
	NewPolicy(signaturePolicy *common.SignaturePolicyEnvelope) (policies.Policy, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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