pgresolver

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 NewGroup

func NewGroup(items []api.Item) api.Group

NewGroup creates a new Group

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.

Jump to

Keyboard shortcuts

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