Documentation ¶
Index ¶
- func GetPolicies(mspIDs ...string) (signedBy []*common.SignaturePolicy, identities []*mb.MSPPrincipal, err error)
- func NewGroup(items []api.Item) api.Group
- func NewGroupOfGroups(groups []api.Group) api.GroupOfGroups
- func NewMSPPeerGroup(mspID string, peerRetriever api.PeerRetriever) api.PeerGroup
- func NewNOutOfPolicy(n int32, signedBy ...*common.SignaturePolicy) *common.SignaturePolicy
- func NewPeerGroup(peers ...api.ChannelPeer) api.PeerGroup
- func NewPeerGroupResolver(groupHierarchy api.GroupOfGroups, lbp api.LoadBalancePolicy) (api.PeerGroupResolver, error)
- func NewPrincipal(name string, classification mb.MSPPrincipal_Classification) (*mb.MSPPrincipal, error)
- func NewRandomLBP() api.LoadBalancePolicy
- func NewRandomPeerGroupResolver(sigPolicyEnv *common.SignaturePolicyEnvelope, peerRetriever api.PeerRetriever) (api.PeerGroupResolver, error)
- func NewRoundRobinLBP() api.LoadBalancePolicy
- func NewRoundRobinPeerGroupResolver(sigPolicyEnv *common.SignaturePolicyEnvelope, peerRetriever api.PeerRetriever) (api.PeerGroupResolver, error)
- func NewSignaturePolicyCompiler(peerRetriever api.PeerRetriever) api.SignaturePolicyCompiler
- func NewSignedByPolicy(index int32) *common.SignaturePolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPolicies ¶
func GetPolicies(mspIDs ...string) (signedBy []*common.SignaturePolicy, identities []*mb.MSPPrincipal, err error)
GetPolicies creates a set of 'signed by' signature policies and corresponding identities for the given set of MSP IDs
func NewGroupOfGroups ¶
func NewGroupOfGroups(groups []api.Group) api.GroupOfGroups
NewGroupOfGroups returns a new group of groups
func NewMSPPeerGroup ¶
func NewMSPPeerGroup(mspID string, peerRetriever api.PeerRetriever) api.PeerGroup
NewMSPPeerGroup returns a new MSP PeerGroup
func NewNOutOfPolicy ¶
func NewNOutOfPolicy(n int32, signedBy ...*common.SignaturePolicy) *common.SignaturePolicy
NewNOutOfPolicy creates an NOutOf signature policy
func NewPeerGroup ¶
func NewPeerGroup(peers ...api.ChannelPeer) api.PeerGroup
NewPeerGroup returns a new PeerGroup
func NewPeerGroupResolver ¶
func NewPeerGroupResolver(groupHierarchy api.GroupOfGroups, lbp api.LoadBalancePolicy) (api.PeerGroupResolver, error)
NewPeerGroupResolver returns a new PeerGroupResolver
func NewPrincipal ¶
func NewPrincipal(name string, classification mb.MSPPrincipal_Classification) (*mb.MSPPrincipal, error)
NewPrincipal creates a new MSPPrincipal
func NewRandomLBP ¶
func NewRandomLBP() api.LoadBalancePolicy
NewRandomLBP returns a random load-balance policy
func NewRandomPeerGroupResolver ¶
func NewRandomPeerGroupResolver(sigPolicyEnv *common.SignaturePolicyEnvelope, peerRetriever api.PeerRetriever) (api.PeerGroupResolver, error)
NewRandomPeerGroupResolver returns a PeerGroupResolver that chooses peers in a round-robin fashion
func NewRoundRobinLBP ¶
func NewRoundRobinLBP() api.LoadBalancePolicy
NewRoundRobinLBP returns a round-robin load-balance policy
func NewRoundRobinPeerGroupResolver ¶
func NewRoundRobinPeerGroupResolver(sigPolicyEnv *common.SignaturePolicyEnvelope, peerRetriever api.PeerRetriever) (api.PeerGroupResolver, error)
NewRoundRobinPeerGroupResolver returns a PeerGroupResolver that chooses peers in a round-robin fashion
func NewSignaturePolicyCompiler ¶
func NewSignaturePolicyCompiler(peerRetriever api.PeerRetriever) api.SignaturePolicyCompiler
NewSignaturePolicyCompiler returns a new PolicyCompiler
func NewSignedByPolicy ¶
func NewSignedByPolicy(index int32) *common.SignaturePolicy
NewSignedByPolicy creates a SignaturePolicy at the given index
Types ¶
This section is empty.